Assert an image or file field of a form holds (or does not hold) a file, by its name. A name that was taken is stored with a number ("pixel_0.png"): it counts as the same file.
Examples
Then the "Image" field should hold the file "pixel.png"
Then the "Image" field should not hold the file "pixel.png"
And the "Image" field should hold the file "hive.jpg"
Then the "Attachment" field should hold the file "report.pdf"
And the "Picture" field should not hold the file "old.png"
Pattern
Then(/^the "([^"]*)" field should( not)* hold the file "([^"]*)"$/, …)
Part of @webship-js/backdrop-cms-steps (github.com/webship/backdrop-cms-steps), a step pack for Webship-js 2.0.x.