Upload a file through the page's Upload button and its file chooser, as a person does; the step waits until the library has taken it and finished with it (its details read, its thumbnail made). The file is from the project's fixtures folder (worldParameters.immich.fixtures), else from the pack's own: webship-test-red.jpg (taken on May 1, 2024), webship-test-blue.jpg (August 15, 2023), webship-test-green.jpg (December 24, 2022).
Examples
When I upload "webship-test-red.jpg" to the library
When we upload "webship-test-blue.jpg" to the library
And I upload "webship-test-green.jpg" to the library
When I upload "holiday-2024.jpg" to the library
Given I upload "webship-test-red.jpg" to the library
Pattern
When(/^(?:I|we) upload "([^"]+)" to the library$/, …)
Part of @webship-js/immich-steps (github.com/webship/immich-steps), a step pack for Webship-js 2.0.x.