Skip to content

Commit

Permalink
fix: make changes in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Salman-Apptware committed Dec 4, 2023
1 parent ea8eac7 commit 5f04767
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,11 @@ describe("glossary sidebar navigation test", () => {
cy.deleteFromDropdown();
cy.waitTextVisible("Deleted Glossary Term!");
cy.clickOptionWithText(glossaryParentGroup);
cy.clickOptionWithText(glossaryTermGroup).wait(3000);
cy.deleteFromDropdown();
cy.waitTextVisible("Deleted Term Group!");
cy.clickOptionWithText(glossaryParentGroup);
cy.deleteFromDropdown();
cy.waitTextVisible("Deleted Term Group!");
cy.removeTermGroup(glossaryTermGroup);
cy.removeTermGroup(glossaryParentGroup);

// Ensure it is no longer in the sidebar navigator
cy.ensureTextNotPresent(glossaryTerm);
cy.ensureTextNotPresent(glossaryTermGroup);
cy.ensureTextNotPresent(glossaryParentGroup);

});
});
7 changes: 7 additions & 0 deletions smoke-test/tests/cypress/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,13 @@ Cypress.Commands.add("addGroupMember", (group_name, group_urn, member_name) => {
cy.contains(member_name, {timeout: 10000}).should("be.visible");
})

Cypress.Commands.add("removeTermGroup", (termGroup) => {
cy.clickOptionWithText(termGroup).wait(10000);
cy.deleteFromDropdown();
cy.waitTextVisible("Deleted Term Group!");
})


//
//
// -- This is a child command --
Expand Down

0 comments on commit 5f04767

Please sign in to comment.