Then the login should be refused with "Email or password is incorrect."

Assert that the login form refused the login, with a message (or a part of it): the message the login page writes above its fields, or the error under a field. Nobody is logged in and the page is still the login page.

Examples

Then the login should be refused with "Email or password is incorrect."
Then the login should be refused with "Enter a valid email please"
And the login should be refused with "is incorrect"
Then the login should be refused with "Email or password"
Then the login should be refused with "valid email"

Pattern

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

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