diff --git a/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/GlobalSearch/GlobalSearch_spec.js b/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/GlobalSearch/GlobalSearch_spec.js index 19986c87ad..3a6d2b3531 100644 --- a/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/GlobalSearch/GlobalSearch_spec.js +++ b/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/GlobalSearch/GlobalSearch_spec.js @@ -13,17 +13,15 @@ describe("GlobalSearch", function() { }); it("showsAndHidesUsingKeyboardShortcuts", () => { + // wait for the page to load + cy.get(commonlocators.canvas); const isMac = Cypress.platform === "darwin"; if (isMac) { - // eslint-disable-next-line cypress/no-unnecessary-waiting - cy.wait(2000); cy.get("body").type("{cmd}{k}"); cy.get(commonlocators.globalSearchModal); cy.get("body").type("{esc}"); cy.get(commonlocators.globalSearchModal).should("not.exist"); } else { - // eslint-disable-next-line cypress/no-unnecessary-waiting - cy.wait(2000); cy.get("body").type("{ctrl}{k}"); cy.get(commonlocators.globalSearchModal); cy.get("body").type("{esc}");