Then the newsletter form should show the error "Email Address is required."

Assert the newsletter block shows (or does not show) an error message with exactly this text, such as "Email Address is required.".

Examples

Then the newsletter form should show the error "Email Address is required."
And the newsletter form should show the error "Email Address is required."
But the newsletter form should not show the error "Email Address is required."
Then the newsletter form should show the error "Email Address is not valid."
And the newsletter form should not show the error "Name is required."

Pattern

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

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