Then the form should show the message "Missing Fields. Failed to Create Invoice."

A message of the form as a whole, in one of its live regions (aria-live, an alert, a status): what the form's action sent back. The step waits for it to appear ("should not" for it to go).

Examples

Then the form should show the message "Missing Fields. Failed to Create Invoice."
And the form should show the message "Invalid credentials."
Then the form should not show the message "Invalid credentials."
Then form should show the message "Missing Fields. Failed to Update Invoice."
And the form should not show the message "Missing Fields. Failed to Create Invoice."

Pattern

Then(/^(?:the )?form should( not)* show the message "([^"]*)?"$/, …)

Part of @webship-js/nextjs-steps (github.com/webship/nextjs-steps), a step pack for Webship-js 2.0.x.