A field is shown as valid or invalid: a server marked it (is-valid, is-invalid), or the form was checked in the browser (was-validated) and the field is valid or not. The step waits for the state and for the field's transition to end.
Examples
Then the "City" field should be shown as invalid
Then the "First name" field should be shown as valid
Then the "Username" field should be shown as invalid
Then the "Agree to terms and conditions" field should be shown as invalid
Then the "State" field should be shown as valid
Pattern
Then(/^the "([^"]*)" field should be shown as (valid|invalid)$/, …)
Part of @webship-js/bootstrap-steps (github.com/webship/bootstrap-steps), a step pack for Webship-js 2.0.x.