Assert that somebody is, or nobody is, logged in. The step opens a page only a signed-in account may open (worldParameters.protectedPath): a visitor is sent to the login page instead.
Examples
Then I should be logged in
Then I should not be logged in
Then we should be logged in
And we should not be logged in
But I should not be logged in
Pattern
Then(/^(I |we )*should( not)* be logged in$/, …)
Part of @webship-js/spring-boot-steps (github.com/webship/spring-boot-steps), a step pack for Webship-js 2.0.x.