Then the newsletter sign-up should be refused

The newsletter sign-up was refused: by the browser (an address it does not accept, the field shows as invalid) or by the store (the form comes back with its error). A message can be named: the store's error, or the browser's own words.

Examples

Then the newsletter sign-up should be refused
Then the newsletter sign-up should be refused with "Email is invalid."
And the newsletter sign-up should be refused
Then the newsletter sign-up should be refused with "Email can't be blank."
But the newsletter sign-up should be refused with "invalid"

Pattern

Then(/^the newsletter sign-up should be refused(?: with "([^"]*)")?$/, …)

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