When I rename the file "New File 1" to "Webship test file"

Rename a file: from the dashboard, "Rename" in its menu; in the workspace, a double click on its name at the top of the left side bar. The new name typed in place of the old one, Enter.

Examples

When I rename the file "New File 1" to "Webship test file"
When we rename the file "Webship test file" to "Webship test home"
And I rename the file "Webship test home" to "Webship test file"
When I rename the file "Webship test file" to "Webship test renamed file"
When I rename the file "Webship test renamed file" to "Webship test file"

Pattern

When(/^(?:I|we) rename the file "([^"]*)" to "([^"]*)"$/, …)

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