Given I am signed in to the backend as "admin"

Sign an account of the users registry (worldParameters.users) in through the backend's sign-in address (worldParameters.nestjs.signIn), and sign every request webship-js's API steps send after it with its bearer token. The token is also the placeholder {{access_token}}.

Examples

Given I am signed in to the backend as "admin"
Given we are signed in to the backend as "editor"
And I am signed in to the backend as "editor"
Given I am signed in to the backend as "manager"
And we are signed in to the backend as "admin"

Pattern

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

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