Add a file or folder of the list to the favorites, or remove it, with its "Actions" menu; the step waits for the server (its favorites call) and for the star of the row.
Examples
When I add "meeting-notes.md" to the favorites
When I add "Project files" to the favorites
When I remove "meeting-notes.md" from the favorites
When we add "budget.txt" to the favorites
When I remove "Project files" from the favorites
Pattern
When(/^(?:I|we) (add|remove) "([^"]*)" (?:to|from) the favorites$/, …)
Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.