Given I am a logged in user with the "user" user

Sign in to the app as an account of the users registry (worldParameters.users) and end on the app: an account that signed in earlier in the run gets its session at the server back; otherwise the app's sign-in button sends the browser to the server's login form, the form is filled in and sent, and an account with a one-time code types the code its secret gives. The browser ends back in the app.

Examples

Given I am a logged in user with the "user" user
Given I am a logged in user with the "editor" user
Given I am a logged in user with the "administrator" user
Given I am a logged in user with the "otpuser" user
Given we are a logged in user with the "user" user

Pattern

Given(/^(?:I am|we are) a logged in user with the "([^"]*)" user$/, …)

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