When I choose "Rename" in the menu

Choose an item of the open menu by its words; an item that holds a menu of its own ("Move to") opens it.

Examples

When I choose "Rename" in the menu
When I choose "Move to" in the menu
And I choose "Delete 2 files" in the menu
When we choose "Duplicate" in the menu
When I choose "Pin/Unpin" in the menu

Pattern

When(/^(?:I|we) choose "([^"]*)" in the menu$/, …)

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