Assert that the login form refused the last login with a message that holds the text (the forge's error banner, "Username or password is incorrect.").
Examples
Then the login should be refused with "Username or password is incorrect."
Then the login should be refused with "incorrect"
And the login should be refused with "Username or password"
But the login should be refused with "Username or password is incorrect."
Then the login should be refused with "password is incorrect"
Pattern
Then(/^the login should be refused with "([^"]*)"$/, …)
Part of @webship-js/gitea-steps (github.com/webship/gitea-steps), a step pack for Webship-js 2.0.x.