Assert the collection an image or a document is in (on its edit page).
Examples
Then the image "Webship test loaf" should be in the collection "Other"
Then the document "Webship test recipe" should be in the collection "Recipes"
And the image "Webship test loaf" should be in the collection "Root"
Then the document "Cookbook: Skillet Cornbread" should be in the collection "Recipes"
Then the image "Muddy Waters" should be in the collection "Root"
Pattern
Then(/^the (image|document) "([^"]*)" should be in the collection "([^"]*)"$/, …)
Part of @webship-js/wagtail-steps (github.com/webship/wagtail-steps), a step pack for Webship-js 2.0.x.