Then I should see an login error

Assert the login screen is, or is not, showing an error, optionally with a text. Matches the .alert-danger message the login form renders after a wrong login or password ("Wrong login/password").

Examples

Then I should see an login error
And I should see a sign in error
Then we should see a login error "Wrong login/password"
And should not see a login error
Then I should see an authentication error message

Pattern

Then(/^(I |we )*should( not)* see an? (?:login|sign[- ]?in|authentication) error(?: message)?(?: "([^"]*)")?$/, …)

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