Expand or collapse a page in the page tree through its toggle (.node-toggle). Does nothing when the page is already in the wanted state. A path expands the pages before it first.
Examples
When I expand the "Congratulations" page in the page tree
When I collapse the "Congratulations" page in the page tree
When we expand the "Congratulations > Content Examples" page in the page tree
And I collapse the "Congratulations > Pages" page in the page tree
When expand the "Congratulations > Pages" page in the page tree
Pattern
When(/^(I |we )*(expand|collapse) the "([^"]*)?" page in the page tree$/, …)
Part of @webship-js/typo3-steps (github.com/webship/typo3-steps), a step pack for Webship-js 2.0.x.