Check, as the data administrator, whether the Media Library has a file with that name (in any folder).
Examples
Then there should be a file "test-lighthouse.png" in the media library
Then there should be no file "test-lighthouse.png" in the media library
And there should be a file "meadow.png" in the media library
Then there should be no file "broken-image.png" in the media library
And there should be a file "harbour-cover.png" in the media library
Pattern
Then(/^there should be (a|no) file "([^"]*)" in the media library$/, …)
Part of @webship-js/strapi-steps (github.com/webship/strapi-steps), a step pack for Webship-js 2.0.x.