From 3a1cceb31544267657957aa1959502370a1a544a Mon Sep 17 00:00:00 2001 From: Nick LaMuro Date: Fri, 10 Jul 2020 11:31:21 -0500 Subject: [PATCH] [REMOVEME][search_box.spec.js] Fix failing specs For both specs, they suffered from the menu changes ManageIQ/manageiq-ui-classic PR 6963, so those have been addressed to use some form of an equivalent. For the first spec ("is present"), it also had a random "div click" in there that either doesn't make sense any more, is entirely unnecessary, or there is a disconnect between the author of this commit (me) and the original author of the spec. Regardless, commenting out the line in question allows the spec to pass. --- cypress/integration/ui/searchbox.spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cypress/integration/ui/searchbox.spec.js b/cypress/integration/ui/searchbox.spec.js index 8d74e54a93ef..64a7d5d020c7 100644 --- a/cypress/integration/ui/searchbox.spec.js +++ b/cypress/integration/ui/searchbox.spec.js @@ -4,13 +4,14 @@ describe('Search box', () => { }); it("is present", () => { - cy.menu("Configuration"); + cy.menu("Overview", "Dashboard"); + cy.menu("Compute", "Infrastructure", "Virtual Machines"); cy.get('div[class=panel-heading]').first().click(); cy.search_box(); }); it("is not present", () => { - cy.menu("Overview"); + cy.menu("Overview", "Dashboard"); cy.no_search_box(); }); });