From d3c50f85d08eced0dd8463788433e0aac9a48ab2 Mon Sep 17 00:00:00 2001 From: Kos Korchak Date: Wed, 13 Sep 2023 15:33:09 -0400 Subject: [PATCH] Fix for glossary_navigation test --- .../cypress/cypress/e2e/glossary/glossary_navigation.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/smoke-test/tests/cypress/cypress/e2e/glossary/glossary_navigation.js b/smoke-test/tests/cypress/cypress/e2e/glossary/glossary_navigation.js index cd5622d0cd903..de9fa7ecda1f0 100644 --- a/smoke-test/tests/cypress/cypress/e2e/glossary/glossary_navigation.js +++ b/smoke-test/tests/cypress/cypress/e2e/glossary/glossary_navigation.js @@ -28,8 +28,6 @@ describe("glossary sidebar navigation test", () => { //ensure the new term is under the parent term group in the navigation sidebar cy.get('*[class^="GlossaryBrowser"]').contains(glossaryTermGroup).click(); cy.get('*[class^="GlossaryEntitiesList"]').contains(glossaryTerm).should("be.visible"); - cy.get('*[class^="GlossaryBrowser"] [aria-label="down"]').click().wait(1000); - cy.get('*[class^="GlossaryBrowser"]').contains(glossaryTerm).should("not.exist"); //move a term group from the root level to be under a parent term group cy.goToGlossaryList(); cy.clickOptionWithText(glossaryTermGroup); @@ -41,8 +39,8 @@ describe("glossary sidebar navigation test", () => { cy.get("button").contains("Move").click(); cy.waitTextVisible("Moved Term Group!"); //ensure it is no longer on the sidebar navigator at the top level but shows up under the new parent - cy.get('*[class^="GlossaryBrowser"] [aria-label="down"]').click().wait(1000); - cy.get('*[class^="GlossaryBrowser"]').contains(glossaryTermGroup).should("not.exist"); + cy.get('*[class^="GlossaryBrowser"]').contains(glossaryParentGroup).click(); + cy.get('*[class^="GlossaryEntitiesList"]').contains(glossaryTermGroup).should("be.visible"); //delete a term group cy.goToGlossaryList(); cy.clickOptionWithText(glossaryParentGroup);