When I change the role of the member "viewer" to "Editor"

Change the role of a member on the Members section: its list of roles, then the new role. The role goes back after the scenario, whatever its outcome.

Examples

When I change the role of the member "viewer" to "Editor"
When we change the role of the member "editor" to "Viewer"
And I change the role of the member "viewer" to "Viewer"
When I change the role of the member "admin" to "Editor"
When I change the role of the member "viewer" to "Admin"

Pattern

When(/^(?:I|we) change the role of the member "([^"]*)" to "([^"]*)"$/, …)

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