The site refused the login: the login form is on the page again, with the message (the words given, as a part of the message under the fields).
And I should not be logged in
Examples
Then the login should be refused with "Wrong login or password."
Then the login should be refused with "Wrong login or password"
And the login should be refused with "Wrong login or password."
Then the login should be refused with "Wrong login or password."
But the login should be refused with "Wrong login"
Pattern
Then(/^the login should be refused with "([^"]*)"$/, …)
Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.