Then the inspect panel "Size and position" should show "Width" as "300px"

Assert a row of a panel of the Inspect tab (or of the view mode's inspect) for the selection: the panel by its title ("Size and position", "Fill", "Stroke", "Shadow", "Blur"), the row by its name ("Width", "Background", "Border width"), its value (or a part of it).

Examples

Then the inspect panel "Size and position" should show "Width" as "300px"
Then the inspect panel "Fill" should show "Background" as "#B1B2B5 100%"
And the inspect panel "Stroke" should show "Border width" as "1px"
Then the inspect panel "Shadow" should show "Drop shadow" as "4px 4px 4px 0px"
Then the inspect panel "Blur" should show "Filter" as "blur(4px)"

Pattern

Then(/^the inspect panel "([^"]*)" should show "([^"]*)" as "([^"]*)"$/, …)

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