Assert that the login page refused the login with an error message (or a part of it), and that nobody is signed in.
Examples
Then the login should be refused with "Incorrect username or password entered. Please try again."
Then the login should be refused with "Incorrect username or password entered."
And the login should be refused with "Please try again."
Then the login should be refused with "Incorrect username or password"
Then the login should be refused with "You have made too many recent login attempts."
Pattern
Then(/^the login should be refused with "([^"]*)"$/, …)
Part of @webship-js/mediawiki-steps (github.com/webship/mediawiki-steps), a step pack for Webship-js 2.0.x.