Assert a top-level menu item does (or does not) have a submenu link, in the nested list HubSpot renders (li.hs-item-has-children > ul).
Examples
Then the menu item "Services" should have a submenu link "Google Ads Management"
And the menu item "Resources" should have a submenu link "Blog"
Then the menu item "Industries" should have a submenu link "Ecommerce"
But the menu item "Pricing" should not have a submenu link "Blog"
Then menu item "Resources" should have a submenu link "Guides"
Pattern
Then(/^(?:the )?menu item "([^"]*)" should( not)* have a submenu link "([^"]*)"$/, …)
Part of @webship-js/hubspot-cms-steps (github.com/webship/hubspot-cms-steps), a step pack for Webship-js 2.0.x.