Given there is no entry titled "Draft idea"

Make sure no element with a title is left, live or in the trash: the cleanup of the content a scenario created. The step opens the index of the element type (entries, categories or assets), deletes every item with exactly that title, then deletes them permanently from the trash. It passes when there is nothing to delete.

Examples

Given there is no entry titled "Draft idea"
Given there is no asset titled "Pixel"
Given there is no category titled "Temporary topic"
Then there is no entry titled "A scenario wrote this"
And there is no entry titled "Copy of About"

Pattern

Given(/^there is no (entry|category|asset) titled "([^"]*)"$/, …)

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