Given I am on the login page

Be a visitor on the server's login form: the browser's cookies dropped, then a sign-in started from the app (its start page and its sign-in button).

            When I log in as "user" with the login form
            Then the login should be refused with "Invalid username or password."
            And I go to "/"

Examples

Given I am on the login page
Given we are on the login page
Given I am on the login page
Given I am on the login page
Given I am on the login page

Pattern

Given(/^(?:I am|we are) on the login page$/, …)

Part of @webship-js/keycloak-steps (github.com/webship/keycloak-steps), a step pack for Webship-js 2.0.x.