-
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.
- Loading branch information
John Joyce
committed
Feb 10, 2024
1 parent
3721d39
commit 3427be8
Showing
2 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
22 changes: 17 additions & 5 deletions
22
smoke-test/tests/cypress/cypress/e2e/mutations/dataset_health.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,17 +1,29 @@ | ||
const urn = "urn:li:dataset:(urn:li:dataPlatform:hdfs,SampleCypressHdfsDataset,PROD)"; | ||
const datasetName = "SampleCypressHdfsDataset"; | ||
const urn1 = "urn:li:dataset:(urn:li:dataPlatform:hdfs,SampleCypressHdfsDataset,PROD)"; | ||
const datasetName1 = "SampleCypressHdfsDataset"; | ||
|
||
const urn2 = "urn:li:dataset:(urn:li:dataPlatform:hive,cypress_health_test,PROD)"; | ||
const datasetName2 = "cypress_health_test"; | ||
|
||
describe("dataset health test", () => { | ||
it("go to dataset with failing assertions and verify health of dataset", () => { | ||
cy.login(); | ||
cy.goToDataset(urn, datasetName); | ||
cy.goToDataset(urn1, datasetName1); | ||
// Ensure that the “Health” badge is present and there is an active incident warning | ||
cy.get(`[href="/dataset/${urn}/Validation"]`).should("be.visible"); | ||
cy.get(`[href="/dataset/${urn}/Validation"] span`).trigger("mouseover", { force: true }); | ||
cy.get(`[href="/dataset/${urn1}/Validation"]`).should("be.visible"); | ||
cy.get(`[href="/dataset/${urn1}/Validation"] span`).trigger("mouseover", { force: true }); | ||
cy.waitTextVisible("This asset may be unhealthy"); | ||
cy.waitTextVisible("Assertions 1 of 1 assertions are failing"); | ||
cy.get('[data-testid="assertions-details"]').click(); | ||
// cy.clickOptionWithText("details"); | ||
cy.waitTextVisible("1 failed assertions"); | ||
}); | ||
it("go to dataset with active incidents and verify health of dataset", () => { | ||
cy.login(); | ||
cy.goToDataset(urn2, datasetName2); | ||
// Ensure that the “Health” badge is present and there is an active incident warning | ||
cy.get(`[href="/dataset/${urn2}/Validation"]`).should("be.visible"); | ||
cy.get(`[href="/dataset/${urn2}/Validation"] span`).trigger("mouseover", { force: true }); | ||
cy.waitTextVisible("This asset may be unhealthy"); | ||
cy.waitTextVisible("1 active incident"); | ||
}); | ||
}); |
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