Then the login should be refused with "You have specified an incorrect password."

Assert that the login page refused the login with an error (or a part of it), and that nobody is logged in. The board says which of the two was wrong ("You have specified an incorrect password.", "… an incorrect username."), and "You cannot login without a password." for an empty one.

Examples

Then the login should be refused with "You have specified an incorrect password."
Then the login should be refused with "You have specified an incorrect username."
And the login should be refused with "incorrect password"
Then the login should be refused with "You cannot login without a password."
Then the login should be refused with "Please check your username and try again."

Pattern

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

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