Then the inspect code should contain "width: 120px;"

Assert that the code the Inspect tab shows (its CSS and its HTML) contains a text.

Examples

Then the inspect code should contain "width: 120px;"
Then the inspect code should contain "background: #B1B2B5FF;"
And the inspect code should contain "<div class=\"shape rect"
Then the inspect code should contain "height: 80px;"
Then the inspect code should contain "position: absolute;"

Pattern

Then(/^the inspect code should contain "((?:[^"\\]|\\.)*)"$/, …)

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