Skip to content

Commit

Permalink
test(): Add test case for dataset deprecation test (#8646)
Browse files Browse the repository at this point in the history
Co-authored-by: John Joyce <[email protected]>
  • Loading branch information
kkorchak and jjoyce0510 authored Aug 17, 2023
1 parent 5f5f51f commit 10d3edc
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions smoke-test/tests/cypress/cypress/e2e/mutations/deprecations.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
describe("deprecation", () => {
describe("dataset deprecation", () => {
it("go to dataset and check deprecation works", () => {
const urn = "urn:li:dataset:(urn:li:dataPlatform:hive,cypress_logging_events,PROD)";
const datasetName = "cypress_logging_events";
cy.login();

cy.goToDataset(urn, datasetName);
cy.openThreeDotDropdown();
cy.clickOptionWithText("Mark as deprecated");
cy.addViaFormModal("test deprecation", "Add Deprecation Details");

cy.goToDataset(urn, datasetName);
cy.contains("DEPRECATED");

cy.waitTextVisible("Deprecation Updated");
cy.waitTextVisible("DEPRECATED")
cy.openThreeDotDropdown();
cy.clickOptionWithText("Mark as un-deprecated");
cy.waitTextVisible("Deprecation Updated");
cy.ensureTextNotPresent("DEPRECATED");
cy.openThreeDotDropdown();
cy.clickOptionWithText("Mark as deprecated");
cy.addViaFormModal("test deprecation", "Add Deprecation Details");
cy.waitTextVisible("Deprecation Updated");
cy.waitTextVisible("DEPRECATED");
cy.contains("DEPRECATED").trigger("mouseover", { force: true });
cy.waitTextVisible("Deprecation note");
cy.get("[role='tooltip']").contains("Mark as un-deprecated").click();
cy.waitTextVisible("Confirm Mark as un-deprecated");
cy.get("button").contains("Yes").click();
cy.waitTextVisible("Marked assets as un-deprecated!");
cy.ensureTextNotPresent("DEPRECATED");
});
});
});

0 comments on commit 10d3edc

Please sign in to comment.