Upload a file to an image or file field of a form, by the label of the field, and wait until the site has taken it (the field then shows the file with a "Remove" button). The file comes from tests/fixtures.
Examples
When I upload the file "pixel.png" to the "Image" field
When I upload the file "hive.jpg" to the "Image" field
When we upload the file "pixel.png" to the "Picture" field
And I upload the file "report.pdf" to the "Attachment" field
When upload the file "pixel.png" to the "Image" field
Pattern
When(/^(I |we )*upload the file "([^"]*)" to the "([^"]*)" field$/, …)
Part of @webship-js/backdrop-cms-steps (github.com/webship/backdrop-cms-steps), a step pack for Webship-js 2.0.x.