From 5d890ecbfc6d2faef87f7e167ed7184717383830 Mon Sep 17 00:00:00 2001 From: Kos Korchak Date: Thu, 7 Sep 2023 16:07:11 -0400 Subject: [PATCH] Fix for missing cypress command methos --- .../cypress/e2e/glossary/glossary_navigation.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 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 72be83f33aa2b..cd5622d0cd903 100644 --- a/smoke-test/tests/cypress/cypress/e2e/glossary/glossary_navigation.js +++ b/smoke-test/tests/cypress/cypress/e2e/glossary/glossary_navigation.js @@ -1,6 +1,6 @@ const glossaryTerm = "CypressGlosssaryNavigationTerm"; const glossaryTermGroup = "CypressGlosssaryNavigationGroup"; -const glossaryParentGroup = "CypressGlosssaryGroup"; +const glossaryParentGroup = "Cypress"; describe("glossary sidebar navigation test", () => { it("create term and term parent group, move and delete term group", () => { @@ -8,10 +8,14 @@ describe("glossary sidebar navigation test", () => { cy.loginWithCredentials(); cy.goToGlossaryList(); cy.clickOptionWithText("Add Term Group"); - cy.addViaModal(glossaryTermGroup, "Create Term Group"); + cy.waitTextVisible("Create Term Group"); + cy.get(".ant-input-affix-wrapper > input[type='text']").first().type(glossaryTermGroup); + cy.get(".ant-modal-footer > button:last-child").click(); cy.get('*[class^="GlossaryBrowser"]').contains(glossaryTermGroup).should("be.visible"); cy.clickOptionWithText("Add Term"); - cy.addViaModal(glossaryTerm, "Create Glossary Term"); + cy.waitTextVisible("Create Glossary Term"); + cy.get(".ant-input-affix-wrapper > input[type='text']").first().type(glossaryTerm); + cy.get(".ant-modal-footer > button:last-child").click(); cy.get('*[class^="GlossaryBrowser"]').contains(glossaryTerm).click(); cy.waitTextVisible("No documentation yet"); cy.openThreeDotDropdown();