Then the registration should be refused with "Email already used"

Assert that the registration form refused what it was given, with a message (or a part of it): an error under a field, while the page stays the registration form.

Examples

Then the registration should be refused with "Email already used"
Then the registration should be refused with "Enter a valid email please"
And the registration should be refused with "Email does not match the invitation."
Then the registration should be refused with "Password should at least be 8 characters"
Then the registration should be refused with "already used"

Pattern

Then(/^the registration should be refused with "([^"]*)"$/, …)

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