When I upload "test-panel-photo.jpg" to the "Images" field

Upload a file to an upload field, as a person picks it, and wait for the upload to finish (or to be refused: assert it with the next step). The file is named by its path, or found in tests/assets/ (of the project, then of this pack).

Examples

When I upload "test-panel-photo.jpg" to the "Images" field
When I upload "test-panel-image.png" to the "Images" field
And we upload "test-panel-photo.jpg" to the "Attachments" field
When I upload "tests/assets/test-panel-photo.jpg" to the "Images" field
When I upload "test-panel-photo.jpg" to the "Receipt" field

Pattern

When(/^(I |we )*upload "([^"]*)" to the "([^"]*)" field$/, …)

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