The error a field shows: the text of the element its aria-describedby (or aria-errormessage) names, as a screen reader reads it with the field; for a group of radio buttons named by its legend, the messages of the group. The step waits for the error to appear ("should not" for it to go).
Examples
Then the field "Choose customer" should show the error "Please select a customer."
And the field "Choose an amount" should show the error "Please enter an amount greater than $0."
And the field "Set the invoice status" should show the error "Please select an invoice status."
Then the field "Choose customer" should not show the error "Please select a customer."
Then field "Choose an amount" should not show the error "Please enter an amount greater than $0."
Pattern
Then(/^(?:the )?field "([^"]*)?" should( not)* show the error "([^"]*)?"$/, …)
Part of @webship-js/nextjs-steps (github.com/webship/nextjs-steps), a step pack for Webship-js 2.0.x.