Then I should be able to edit the website

Assert the current user can, or cannot, edit the website: the website preview of the web client shows the "Edit" button (.o_edit_website_container) to the users of the "Restricted Editor" and "Editor and Designer" groups. With on "<path>" the check runs on that page; the front page otherwise.

Examples

Then I should be able to edit the website
And I should not be able to edit the website
Then we should be able to edit the website
And I should be able to edit the website on "/contactus"
Then we should not be able to edit the website on "/shop"

Pattern

Then(/^(I |we )*should( not)* be able to edit the website(?: on "([^"]*)")?$/, …)

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