Then the login should be refused with "Invalid login. Please verify credentials."

Assert that the login page refused the login with a message (or a part of it), and that nobody is logged in. The site says the same for an unknown account and a wrong password: "Invalid login. Please verify credentials."

Examples

Then the login should be refused with "Invalid login. Please verify credentials."
Then the login should be refused with "Invalid login"
And the login should be refused with "Please verify credentials."
Then the login should be refused with "verify credentials"
Then the login should be refused with "Invalid login. Please verify credentials."

Pattern

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

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