Expand or collapse an item of a tree, and wait until it has opened or closed.
Examples
When I expand the "Blog" item of the "pages" tree
And we collapse the "Website" item of the tree
When I expand the "Store" item of the "pages" tree
And I collapse the "Blog" item of the "pages" tree
When we expand the "Blog" item of the tree
Pattern
When(/^(?:I |we )?(expand|collapse) the "([^"]*)" item of the (?:"([^"]*)" )?tree$/, …)
Part of @webship-js/material-ui-steps (github.com/webship/material-ui-steps), a step pack for Webship-js 2.0.x.