When I add the "Favorite files" widget to the dashboard

Add a widget to the dashboard, or remove one, as a person does: "Customize", the widget ticked or unticked, "Close". The step waits for the server to save the layout; the layout the account had is put back after the scenario.

Examples

When I add the "Favorite files" widget to the dashboard
When I add the "Recent activity" widget to the dashboard
When I remove the "Recommended files" widget from the dashboard
When we add the "Favorite files" widget to the dashboard
When I remove the "Favorite files" widget from the dashboard

Pattern

When(/^(?:I|we) (add|remove) the "([^"]*)" widget (?:to|from) the dashboard$/, …)

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