Then the file "pixel.png" should exist

Assert the site stores (or does not store) a file with a name, read from the file listing.

Examples

Then the file "pixel.png" should exist
Then the file "pixel.png" should not exist
And the file "card1-layout.png" should exist
Then the file "hive.jpg" should not exist
And the file "report.pdf" should exist

Pattern

Then(/^the file "([^"]*)" should( not)* exist$/, …)

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