The login form refused the login and shows why: its alert ("Invalid credentials") or a field's own error ("This value is required.").
Examples
Then the login should be refused with "Invalid credentials"
Then the login should be refused with "This value is required."
Then the login should be refused with "This is not a valid email."
And the login should be refused with "Invalid credentials"
Then the login should be refused with "Invalid credentials"
Pattern
Then(/^the login should be refused with "([^"]*)"$/, …)
Part of @webship-js/strapi-steps (github.com/webship/strapi-steps), a step pack for Webship-js 2.0.x.