Given there is no product "TEST-SKU-1"

Make sure no record of a kind matches a text: a product (by SKU or name), a customer (by email), a page or a block (by title), a cart price rule (by name), a review (by its summary) or a newsletter subscriber (by email). What is found is deleted through the admin panel. It is the clean-up of what a scenario creates: use it before the scenario (a failed run may have left the record behind) and at its end. Needs a logged-in admin user.

Examples

Given there is no product "TEST-SKU-1"
Given there is no customer "new.customer@example.com"
And there is no page "Test Page"
Given there is no cart price rule "Test Rule"
And there is no review "Test review summary"

Pattern

Given(/^there is no (product|customer|page|block|cart price rule|review|newsletter subscriber) "([^"]*)"$/, …)

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