Send the login form of an account with a password that is not its own, to see what the library says. The step passes when the library refuses it; read its message with: Then the library should say "Incorrect email or password".
Examples
When I sign in to the library as "user" with a wrong password
When we sign in to the library as "admin" with a wrong password
And I sign in to the library as "newcomer" with a wrong password
When I sign in to the library as "editor" with a wrong password
Given I sign in to the library as "user" with a wrong password
Pattern
When(/^(?:I|we) sign in to the library as "([^"]+)" with a wrong password$/, …)
Part of @webship-js/immich-steps (github.com/webship/immich-steps), a step pack for Webship-js 2.0.x.