Send the login form with an address and a password as typed: for the refusals (a wrong password, an address the app does not know). The step does not fail when the app refuses; the next steps say what it shows.
Examples
When I log in with the email "administrator@example.com" and the password "wrong-password"
When we log in with the email "nobody@example.com" and the password "wrong-password"
And I log in with the email "editor@example.com" and the password "not-the-password"
When I log in with the email "administrator@example.com" and the password "123"
When I log in with the email "not-an-address" and the password "wrong-password"
Pattern
When(/^(I |we )*log in with the email "([^"]*)" and the password "([^"]*)"$/, …)
Part of @webship-js/nextjs-steps (github.com/webship/nextjs-steps), a step pack for Webship-js 2.0.x.