When I subscribe "reader@example.com" to the newsletter

Subscribe an email address to the newsletter with the form of the footer. Follow it with a message or a field error assertion.

Examples

When I subscribe "reader@example.com" to the newsletter
When I subscribe "not-an-email" to the newsletter
And I subscribe "customer@example.com" to the newsletter
When we subscribe "reader@example.com" to the newsletter
When subscribe "another.reader@example.com" to the newsletter

Pattern

When(/^(I |we )*subscribe "([^"]*)" to the newsletter$/, …)

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