Skip to content

Commit

Permalink
Fix for missing cypress command methos
Browse files Browse the repository at this point in the history
  • Loading branch information
kkorchak committed Sep 7, 2023
1 parent 9deb4d0 commit 5d890ec
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
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", () => {
//create a new term group and term, move term to the group
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();
Expand Down

0 comments on commit 5d890ec

Please sign in to comment.