Then I should be on the login page

Assert that the page is the login page (its heading "Log into my account"), with a message on it when one is named. An old address of the login page (with a "#/" part) lands there too, the "#" part gone.

Examples

Then I should be on the login page
Then we should be on the login page
And I should be on the login page
Then I should be on the login page saying "Email or password is incorrect."
Then we should be on the login page saying "incorrect"

Pattern

Then(/^(I |we )*should be on the login page(?: saying "([^"]*)")?$/, …)

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