Upload a file to the assets index with its "Upload files" button: the file lands in the volume and the folder the index shows. When the volume already has a file of that name the control panel asks what to do: answer with I answer the file conflict with "Keep both".
Examples
When I upload the file "tests/fixtures/pixel.png" to the assets index
When we upload the file "tests/fixtures/pixel.png" to the assets index
And I upload the file "tests/fixtures/photo.jpg" to the assets index
When I upload the file "tests/fixtures/report.pdf" to the assets index
And we upload the file "tests/fixtures/logo.png" to the assets index
Pattern
When(/^(I |we )*upload the file "([^"]*)" to the assets index$/, …)
Part of @webship-js/craft-cms-steps (github.com/webship/craft-cms-steps), a step pack for Webship-js 2.0.x.