The public link of a file or folder expires on the day a number of days from today: the date its entry shows ("Share expiration: …"), as the browser writes that day.
Examples
Then the public link of "team-photo.png" should expire in 30 days
Then the public link of "Project files" should expire in 7 days
And the public link of "meeting-notes.md" should expire in 30 days
Then the public link of "annual-report.pdf" should expire in 1 day
Then the public link of "budget.txt" should expire in 14 days
Pattern
Then(/^the public link of "([^"]*)" should expire in (\d+) days?$/, …)
Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.