Then I should be signed in to the shop

Assert that a customer is signed in to the shop, optionally by the name the header shows, or that nobody is. The shop itself is asked (prestashop.customer.is_logged).

Examples

Then I should be signed in to the shop
Then I should be signed in to the shop as "Clara Customer"
Then I should not be signed in to the shop
And we should be signed in to the shop as "Simon Shopper"
Then we should not be signed in to the shop

Pattern

Then(/^(I |we )*should( not)* be signed in to the shop(?: as "([^"]*)")?$/, …)

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