Assert the level of an item in a structure: an entry of a structure section or a category, 1 at the top.
Examples
Then "Team" should be at level 2 in the index
Then "About" should be at level 1 in the index
Then "Contact" should be at level 1 in the index
And "Product" should be at level 1 in the index
Then "Pricing" should be at level 3 in the index
Pattern
Then(/^"([^"]*)" should be at level (\d+) in the index$/, …)
Part of @webship-js/craft-cms-steps (github.com/webship/craft-cms-steps), a step pack for Webship-js 2.0.x.