Then the "Images" field should hold the file "test-panel-photo.jpg"

Assert that an upload field holds a file whose upload finished, or that it refused the file with a message (the type or the size it takes).

Examples

Then the "Images" field should hold the file "test-panel-photo.jpg"
Then the "Images" field should refuse the file "test-panel-image.png" with "File of invalid type"
And the "Attachments" field should hold the file "test-panel-photo.jpg"
Then the "Images" field should not hold the file "test-panel-photo.jpg"
And the "Receipt" field should hold the file "test-panel-photo.jpg"

Pattern

Then(/^the "([^"]*)" field should( not)* (hold|refuse) the file "([^"]*)"(?: with "([^"]*)")?$/, …)

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