Sign an account of the users registry (worldParameters.users) in through the API's token address (the OAuth2 password flow its schema declares), and sign every request webship-js's API steps send after it with the bearer token. The token is also the placeholder {{access_token}}. The API base URL is the scenario's: Given the API base URL is "/" sends the requests to the app.
Examples
Given I am signed in to the API as "admin"
Given we are signed in to the API as "user"
And I am signed in to the API as "editor"
Given I am signed in to the API as "manager"
Given we are signed in to the API as "admin"
Pattern
Given(/^(?:I am|we are) signed in to the API as "([^"]+)"$/, …)
Part of @webship-js/fastapi-steps (github.com/webship/fastapi-steps), a step pack for Webship-js 2.0.x.