The login page shows the forum's refusal, with its message.
And I should not be logged in
Examples
Then the login should be refused with "Incorrect username, email or password"
Then the login should be refused with "Incorrect username"
Then the login should be refused with "Incorrect username, email or password"
Then the login should be refused with "email or password"
Then the login should be refused with "Please enter your email or username"
Pattern
Then(/^the login should be refused with "([^"]*)"$/, …)
Part of @webship-js/discourse-steps (github.com/webship/discourse-steps), a step pack for Webship-js 2.0.x.