Assert a customer is (or is not) logged in to the store, optionally by the name the header greets ("Welcome, Casey Customer!").
Examples
Then I should be logged in to the store
Then I should not be logged in to the store
Then I should be logged in to the store as "Casey Customer"
Then we should be logged in to the store as "Sam Shopper"
And I should not be logged in to the store
Pattern
Then(/^(I |we )*should( not)* be logged in to the store(?: as "([^"]*)")?$/, …)
Part of @webship-js/magento-steps (github.com/webship/magento-steps), a step pack for Webship-js 2.0.x.