Given I am signed in to the library as "user"

Sign an account in through the API (faster than the form) and open the library in the browser with its session: its cookies go to the browser, then its timeline opens. An account that has not met the first-run wizard lands on it: When I get past the library's first-run wizard.

Examples

Given I am signed in to the library as "user"
Given we are signed in to the library as "admin"
And I am signed in to the library as "newcomer"
Given I am signed in to the library as "editor"
Given we are signed in to the library as "user"

Pattern

Given(/^(?:I am|we are) signed in to the library as "([^"]+)"$/, …)

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