Then I should be on the login page

Assert that the browser is on the login page of the administration, saying a message (or a part of it) when one is given.

Examples

Then I should be on the login page
Then we should be on the login page
Then I should be on the login page saying "A new password has been generated and will be emailed to you"
And I should be on the login page saying "you have successfully reset your password"
Then we should be on the login page saying "Invalid login"

Pattern

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

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