Then the login should be refused with "Please enter the correct username and password for a staff account."

Assert that the login page refused the login with an error (or a part of it), and that nobody is signed in. The admin writes one error for a wrong password, an unknown user name and an account that is not staff alike.

Examples

Then the login should be refused with "Please enter the correct username and password for a staff account."
Then the login should be refused with "Note that both fields may be case-sensitive."
And the login should be refused with "Please enter the correct username and password"
Then the login should be refused with "for a staff account"
Then the login should be refused with "Please enter the correct username and password for a staff account. Note that both fields may be case-sensitive."

Pattern

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

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