diff --git a/cypress/support/commands.js b/cypress/support/commands.js index e5f6a7e1a9ed..f2f15b9fd86d 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -70,6 +70,7 @@ Cypress.Commands.add("menu", (...items) => { // cy.menuItems() - returns an array of top level menu items with {title, href, items (array of children)} Cypress.Commands.add("menuItems", () => { + cy.get('#main-menu nav.primary'); // Wait for menu to appear return cy.window().then((window) => window.ManageIQ.menu); });