Assert the size the canvas shows under the selection (its badge, "width x height").
Examples
Then the selection should measure "300 x 200"
Then the selection should measure "220 x 80"
And the selection should measure "300 x 60"
Then the selection should measure "120 x 80"
Then the selection should measure "300 x 200"
Pattern
Then(/^the selection should measure "([^"]*)"$/, …)
Part of @webship-js/penpot-steps (github.com/webship/penpot-steps), a step pack for Webship-js 2.0.x.