Log in as an account of the users registry with the login form, always (no session taken over): the browser's cookies are dropped first, the login page opened, the form filled in and sent; the step fails when the site refuses the login.
Then I should be logged in as "user"
Examples
When I log in as "user" with the login form
When I log in as "editor" with the login form
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
Pattern
When(/^(?:I|we) log in as "([^"]*)" with the login form$/, …)
Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.