Upload a file to the media library, on the Add Media File screen: the file is given to the uploader and the step waits until WordPress lists it.
Examples
When I upload the media file "webshipco.png"
When we upload the media file "test-document.pdf"
And I upload the media file "webshipco.png"
When I upload the media file "/tmp/photo.jpg"
And we upload the media file "test-document.pdf"
Pattern
When(/^(I |we )*upload the media file "([^"]*)"$/, …)
Part of @webship-js/wordpress-steps (github.com/webship/wordpress-steps), a step pack for Webship-js 2.0.x.