Log in to the admin as an account of the users registry (worldParameters.users in cucumber.js), by its handle. An account that logged in earlier in the run takes its session over; otherwise the step logs in through the login form. The step ends on the admin index.
Examples
Given I am a logged in user with the "editor" user
Given we are a logged in user with the "administrator" user
Given I am a logged in user with "viewer"
And I am a logged in user with the "viewer" user
Given we are a logged in user with the "editor" user
Pattern
Given(/^(I am |we are )*a logged in user with( the)* "([^"]*)"( user)*$/, …)
Part of @webship-js/django-steps (github.com/webship/django-steps), a step pack for Webship-js 2.0.x.