When I log in with the username "user" and the password "Wrong-password-1"

Submit the login form with a username and a password. The step does not expect the login to succeed: assert the outcome with the next step (the refusal of the login page, the page it sends to).

Examples

When I log in with the username "user" and the password "Wrong-password-1"
When we log in with the username "nobody" and the password "Whatever-123"
And I log in with the username "administrator" and the password "not-the-password"
When I log in with the username "no-such-account" and the password "Wrong-password-1"
When we log in with the username "user" and the password ""

Pattern

When(/^(I |we )*log in with the username "([^"]*)" and the password "([^"]*)"$/, …)

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