When I log in as "administrator" with the login form

Log in through the login form as an account of the users registry, as a person does: the login page on screen (so the page asked for before it opens after the login), or the login page opened for it. A checkbox of the form can be ticked or unticked on the way; the generated page's "Remember me on this computer." has no label and is found by its words. The step fails when the app refuses the login.

Examples

When I log in as "administrator" with the login form
When we log in as "user" with the login form
When I log in as "user" with the login form and "Remember me on this computer." checked
And I log in as "administrator" with the login form and "Remember me on this computer." unchecked
When we log in as "administrator" with the login form

Pattern

When(/^(I |we )*log in as "([^"]*)" with the login form(?: and "([^"]*)" (checked|unchecked))?$/, …)

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