Then the sign-in should be remembered

The server's session of the browser was made with "Remember me" (its session cookie has an expiry, so it outlives the browser), or not (it ends with the browser).

            And I should be logged in as "user"

Examples

Then the sign-in should be remembered
Then the sign-in should not be remembered
And the sign-in should be remembered
But the sign-in should not be remembered
Then the sign-in should be remembered

Pattern

Then(/^the sign-in should( not)? be remembered$/, …)

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