Then I should be on the login page

Assert the browser is on the login page, or not. An anonymous visitor who opens an administration screen is redirected there.

Examples

Then I should be on the login page
And we should be on the login page
Then I should not be on the login page
And we should not be on the sign in page
Then I should be on the sign-in page

Pattern

Then(/^(I |we )*should( not)* be on the (?:sign[- ]?in|login) page$/, …)

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