Assert that the login was refused: the browser is back on the login page, which says why. The generated page says "Invalid credentials" (Spring Security 7; 6 said "Bad credentials") for a wrong password and an unknown account alike.
Examples
Then the login should be refused with "Invalid credentials"
And the login should be refused with "Invalid credentials"
Then the login should be refused with "Bad credentials"
Then the login should be refused with "User account is locked"
Then the login should be refused with "Invalid credentials"
Pattern
Then(/^the login should be refused with "([^"]*)"$/, …)
Part of @webship-js/spring-boot-steps (github.com/webship/spring-boot-steps), a step pack for Webship-js 2.0.x.