Open the view mode of the open file (the button "View mode" at the top right of the workspace): it opens in a new tab, which the steps after work in.
Examples
When I open the view mode
When we open the view mode
And I open the view mode
Then I open the view mode
When I open the view mode
Pattern
When(/^(?:I|we) open the view mode$/, …)
Part of @webship-js/penpot-steps (github.com/webship/penpot-steps), a step pack for Webship-js 2.0.x.