Then the registration should be refused with "Sorry, that username already exists!"

Assert the registration form refused what it got, with its message ("Sorry, that username already exists!", "Sorry, that email address is already used!", "Please check your email address.").

Examples

Then the registration should be refused with "Sorry, that username already exists!"
And the registration should be refused with "Sorry, that email address is already used!"
Then the registration should be refused with "username already exists"
And the registration should be refused with "Please check your email address."
Then the registration should be refused with "email address is already used"

Pattern

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

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