Upload a file through the API, signed as the API steps are (a token or an API key): no browser, so it runs in the lane without JavaScript too. The file is found as the page's upload finds it.
Examples
When I upload "webship-test-red.jpg" to the library through the API
When we upload "webship-test-blue.jpg" to the library through the API
And I upload "webship-test-green.jpg" to the library through the API
When I upload "holiday-2024.jpg" to the library through the API
Given I upload "webship-test-red.jpg" to the library through the API
Pattern
When(/^(?:I|we) upload "([^"]+)" to the library through the API$/, …)
Part of @webship-js/immich-steps (github.com/webship/immich-steps), a step pack for Webship-js 2.0.x.