When I share "meeting-notes.md" with "editor"

Share a file or folder of the list with an account of the site (a handle of the users registry), as a person does in the Sharing tab of its details: the account searched, chosen, its permission ("View only", "Allow editing", or the server's default when none is given), "Save share". The share is removed after the scenario.

Examples

When I share "meeting-notes.md" with "editor"
When I share "meeting-notes.md" with "editor" as "View only"
When I share "Project files" with "editor" as "Allow editing"
When we share "team-photo.png" with "user"
When I share "budget.txt" with "administrator" as "View only"

Pattern

When(/^(?:I|we) share "([^"]*)" with "([^"]*)"(?: as "([^"]*)")?$/, …)

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