-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(): Add test case for dataset deprecation test (#8646)
Co-authored-by: John Joyce <[email protected]>
- Loading branch information
1 parent
5f5f51f
commit 10d3edc
Showing
1 changed file
with
17 additions
and
7 deletions.
There are no files selected for viewing
24 changes: 17 additions & 7 deletions
24
smoke-test/tests/cypress/cypress/e2e/mutations/deprecations.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
}); | ||
}); | ||
}); |