Assert that somebody is, or nobody is, logged in. The step opens the page signed-in users land on (homePath, /dashboard): a visitor is sent to the login form 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/laravel-steps (github.com/webship/laravel-steps), a step pack for Webship-js 2.0.x.