Then I should be on an Odoo product page

Assert the current page is, or is not, an eCommerce product page. Matches .o_wsale_product_page, rendered by "website_sale" for every product detail page.

Examples

Then I should be on an Odoo product page
And I should be on a shop product page
Then we should be on the Odoo product detail page
And should not be on a product page
Then I should not be on the product detail page

Pattern

Then(/^(I |we )*should( not)* be on (?:an?|the) (?:Odoo )?(?:shop )?product(?: detail)? page$/, …)

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