Make a test document in a collection, by its title, and delete it after the scenario. In a collection with drafts it is a draft.
Examples
Given there is a document "Data step post" in "Posts"
Given there is a document "Bulk test post one" in "Posts"
And there is a document "Bulk test post two" in "Posts"
Given there is a document "Test category" in "Categories"
Given there is a document "A test page" in "Pages"
Pattern
Given(/^there is a document "([^"]*)" in "([^"]*)"$/, …)
Part of @webship-js/payload-steps (github.com/webship/payload-steps), a step pack for Webship-js 2.0.x.