Given I am signed in as "alex"

Sign in with an account of the users registry in cucumber.js (worldParameters.users), by its handle, and make sure the session is that account's. An account that is already signed in is kept. The first time in a run the account goes through the sign-in form; after that its session is put back, so switching accounts inside a scenario is quick. The help tips and flags that cover the page after signing in are closed.

Examples

Given I am signed in as "alex"
Given I am signed in as "admin"
Given we are signed in as "sam"
And I am signed in as "alex"
Given I am signed in with the "admin" account

Pattern

Given(/^(I am|we are) signed in (as|with the) "([^"]*)"( account)?$/, …)

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