Then I should see a login error

Assert the login screen shows, or does not show, its error notice (#login_error), optionally containing a text such as "incorrect" or "not registered". A wrong password, an unknown user and an empty form each produce it.

Examples

Then I should see a login error
And we should see a sign-in error message
Then should see a login error "incorrect"
Then I should not see a login error
But we should not see an error message "incorrect"

Pattern

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

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