Make a link that shares the view mode of the file with anyone: "Share", then "Get link". The link is kept for the steps after.
Examples
When I create a share link
When we create a share link
And I create a share link
Then I create a share link
When I create a share link
Pattern
When(/^(?:I|we) create a share link$/, …)
Part of @webship-js/penpot-steps (github.com/webship/penpot-steps), a step pack for Webship-js 2.0.x.