Skip to content

Commit

Permalink
change command name
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal committed Oct 20, 2022
1 parent d0b8f1e commit 8753b35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ describe("glossary", () => {
cy.deleteFromDropdown();

cy.goToDataset(urn);
cy.ensureNotPresent(glossaryTerm);
cy.ensureTextNotPresent(glossaryTerm);

cy.goToGlossaryList();
cy.clickOptionWithText(glossaryTermGroup);
cy.deleteFromDropdown();

cy.goToGlossaryList();
cy.ensureNotPresent(glossaryTermGroup);
cy.ensureTextNotPresent(glossaryTermGroup);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ describe("deprecation", () => {

cy.openThreeDotDropdown();
cy.clickOptionWithText("Mark as un-deprecated");
cy.ensureNotPresent("Deprecated");
cy.ensureTextNotPresent("Deprecated");
});
});
2 changes: 1 addition & 1 deletion smoke-test/tests/cypress/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Cypress.Commands.add("addViaModel", (text) => {
cy.get(".ant-modal-footer > button:nth-child(2)").click();
});

Cypress.Commands.add("ensureNotPresent", (text) => {
Cypress.Commands.add("ensureTextNotPresent", (text) => {
cy.contains(text).should("not.exist");
});

Expand Down

0 comments on commit 8753b35

Please sign in to comment.