Make a published test document in a collection with drafts, and delete it after the scenario.
Examples
Given there is a published document "Published test post" in "Posts"
Given there is a published document "Version test post" in "Posts"
And there is a published document "Front end test post" in "Posts"
Given there is a published document "A published test page" in "Pages"
Given there is a published document "Preview test post" in "Posts"
Pattern
Given(/^there is a published document "([^"]*)" in "([^"]*)"$/, …)
Part of @webship-js/payload-steps (github.com/webship/payload-steps), a step pack for Webship-js 2.0.x.