Set the zoom of the view mode from its list (the zoom in the header): "Fit" (scale down to fit), "Fill" (scale to fill), and the like. The address keeps it.
Examples
When I set the zoom of the view mode to "Fit"
When I set the zoom of the view mode to "Fill"
And we set the zoom of the view mode to "Fit"
When I set the zoom of the view mode to "Fill"
When I set the zoom of the view mode to "Fit"
Pattern
When(/^(?:I|we) set the zoom of the view mode to "([^"]*)"$/, …)
Part of @webship-js/penpot-steps (github.com/webship/penpot-steps), a step pack for Webship-js 2.0.x.