Upload a file straight into an assets field, by the label of the field: the file lands in the upload location of the field and is selected.
Examples
When I upload the file "tests/fixtures/pixel.png" to the "Hero image" field
When we upload the file "tests/fixtures/pixel.png" to the "Hero image" field
And I upload the file "tests/fixtures/photo.jpg" to the "Gallery" field
When I upload the file "tests/fixtures/logo.png" to the "Logo" field
And we upload the file "tests/fixtures/pixel.png" to the "Photo" field
Pattern
When(/^(I |we )*upload the file "([^"]*)" to the "([^"]*)" field$/, …)
Part of @webship-js/craft-cms-steps (github.com/webship/craft-cms-steps), a step pack for Webship-js 2.0.x.