Then the login should be refused with "Bad username or password"

The login form stayed, with the site's message: the account was refused.

Examples

Then the login should be refused with "Bad username or password"
Then the login should be refused with "Bad username"
And the login should be refused with "Bad username or password"
But the login should be refused with "Bad username"
Given the login should be refused with "Bad username or password"

Pattern

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

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