Given there is a document "Table test post" in "Posts" with:

Make a test document with fields of its collection (a table with the columns field and value), and delete it after the scenario. A relationship names its documents by their titles (comma separated); a rich text is written as paragraphs; "status" is draft or published.

Examples

Given there is a document "Table test post" in "Posts" with:
Given there is a document "Category test post" in "Posts" with:
And there is a document "A second table post" in "Posts" with:
Given there is a document "Search test post" in "Posts" with:
Given there is a document "A test page with fields" in "Pages" with:

Pattern

Given(/^there is a document "([^"]*)" in "([^"]*)" with:$/, …)

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