When I expand row 1 of "Nav Items"

Expand or collapse a row of a blocks or array field (its toggle).

Examples

When I expand row 1 of "Nav Items"
When I collapse row 1 of "Nav Items"
And I expand row 2 of "Layout"
When I collapse row 2 of "Layout"
When I expand row 1 of "Columns"

Pattern

When(/^I (expand|collapse) row (\d+) of "([^"]*)"$/, …)

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