A field is shown as valid or as invalid: Headless UI's invalid sets aria-invalid and data-invalid on it.
Examples
Then the "Full name" field should be shown as invalid
And the "Country" field should be shown as invalid
Then the "Full name" field should be shown as valid
And the "Delivery notes" field should be shown as invalid
Then the "Delivery notes" field should be shown as valid
Pattern
Then(/^the "([^"]*)" field should be shown as (valid|invalid)$/, …)
Part of @webship-js/headless-ui-steps (github.com/webship/headless-ui-steps), a step pack for Webship-js 2.0.x.