When I create a public link for "team-photo.png"

Make a public link for a file or folder of the list ("Create a new share link" in its Sharing tab); the step waits for the server and for the link. The link is removed after the scenario.

Examples

When I create a public link for "team-photo.png"
When I create a public link for "Project files"
When we create a public link for "meeting-notes.md"
And I create a public link for "annual-report.pdf"
When I create a public link for "budget.txt"

Pattern

When(/^(?:I|we) create a public link for "([^"]*)"$/, …)

Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.