Given there is no post titled "A post from the suite"

Make sure no post or page with a title exists, whatever its status: for the start of a scenario that creates one and for cleaning up after it. It asks the Admin API with the session of the browser, so somebody who may delete the post must be signed in. It passes when there is nothing to delete.

Examples

Given there is no post titled "A post from the suite"
Given there is no page titled "A page from the suite"
And there is no post titled "Changed title"
Then there is no post titled "A scheduled post from the suite"
Given there is no page titled "Another page"

Pattern

Given(/^there is no (post|page) titled "([^"]*)"$/, …)

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