Then the login should be refused with "Invalid user or password"

Assert that the login form refused the last login with a message that holds the text (the site's error banner). Give such a scenario @js-off: the browser logs the refused request.

Examples

Then the login should be refused with "Invalid user or password"
Then the login should be refused with "Invalid user"
And the login should be refused with "password"
But the login should be refused with "Invalid user or password"
Then the login should be refused with "Invalid user"

Pattern

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

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