Assert that the library on screen (or opened when another page is on screen) lists an item by its title, or does not.
Examples
Then the image library should list "Webship test loaf"
Then the document library should list "Webship test recipe"
And the image library should not list "Webship test loaf"
Then the document library should not list "Webship test recipe"
Then the image library should list "Muddy Waters"
Pattern
Then(/^the (image|document) library should( not)* list "([^"]*)"$/, …)
Part of @webship-js/wagtail-steps (github.com/webship/wagtail-steps), a step pack for Webship-js 2.0.x.