The login form says why it refused a sign-in, in its alert.
Examples
Then the login form should say "Incorrect username or password."
And the login form should say "Incorrect username or password."
Then the login form should say "Incorrect username or password."
And the login form should say "Incorrect username or password."
Then the login form should say "Incorrect username or password."
Pattern
Then(/^the login form should say "([^"]*)"$/, …)
Part of @webship-js/uptime-kuma-steps (github.com/webship/uptime-kuma-steps), a step pack for Webship-js 2.0.x.