When I log in to the store as "customer"

Log in with the login form of the store's account page ("My account"), as an account of the users registry; the step waits for the account's dashboard. With "with the password", the password is the one given (a refused login, whose message the next step reads).

Examples

When I log in to the store as "customer"
When we log in to the store as "customer"
And I log in to the store as "shop_manager"
When I log in to the store as "customer" with the password "wrong-password"
When we log in to the store as "customer" with the password "not-the-password"

Pattern

When(/^(I |we )*log in to the store as "([^"]*)"(?: with the password "([^"]*)")?$/, …)

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