Upload a file into the folder on screen, as a person does: "New", "Upload files" and the file chosen. The file is one of the project's (tests/assets/, tests/fixtures/, or a path from the project) or one of the pack's own: meeting-notes.md, budget.txt, team-photo.png, annual-report.pdf. The step waits for the server to store it (its WebDAV PUT) and for the list to show it. What the scenario uploads is removed after it.
Examples
When I upload the file "meeting-notes.md"
When I upload the file "team-photo.png"
When I upload the file "annual-report.pdf"
When we upload the file "budget.txt"
When I upload the file "tests/assets/report.pdf"
Pattern
When(/^(?:I|we) upload the file "([^"]*)"$/, …)
Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.