mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-03 12:16:10 +00:00
adding cypress tests
This commit is contained in:
parent
0a0c263be0
commit
e6d27d92ea
@ -0,0 +1,13 @@
|
||||
describe("applications", () => {
|
||||
beforeEach(() => {
|
||||
cy.setIsThemeV2Enabled(true);
|
||||
Cypress.on("uncaught:exception", (err, runnable) => false);
|
||||
});
|
||||
|
||||
it("can see elements inside the application", () => {
|
||||
cy.login();
|
||||
cy.goToApplication("urn:li:application:d63587c6-cacc-4590-851c-4f51ca429b51/Assets");
|
||||
cy.contains("cypress_logging_events");
|
||||
cy.contains("1 - 1 of 1");
|
||||
});
|
||||
});
|
||||
@ -206,6 +206,10 @@ Cypress.Commands.add("goToDomain", (urn) => {
|
||||
cy.visit(`/domain/${urn}`);
|
||||
});
|
||||
|
||||
Cypress.Commands.add("goToApplication", (urn) => {
|
||||
cy.visit(`/application/${urn}`);
|
||||
});
|
||||
|
||||
Cypress.Commands.add("goToAnalytics", () => {
|
||||
cy.visit("/analytics");
|
||||
cy.contains("Data Landscape Summary", { timeout: 10000 });
|
||||
|
||||
@ -2744,5 +2744,40 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"entityType": "application",
|
||||
"entityUrn": "urn:li:application:d63587c6-cacc-4590-851c-4f51ca429b51",
|
||||
"changeType": "UPSERT",
|
||||
"aspectName": "applicationProperties",
|
||||
"aspect": {
|
||||
"json": {
|
||||
"name": "Cypress Accounts Application",
|
||||
"description": "Application for banking accounts for tables, dashboards, APIs, and streaming endpoints."
|
||||
}
|
||||
},
|
||||
"systemMetadata": {
|
||||
"lastObserved": 1711490515885,
|
||||
"runId": "accounts-application-ingestion",
|
||||
"lastRunId": "no-run-id-provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"entityType": "dataset",
|
||||
"entityUrn": "urn:li:dataset:(urn:li:dataPlatform:hive,cypress_logging_events,PROD)",
|
||||
"changeType": "UPSERT",
|
||||
"aspectName": "applications",
|
||||
"aspect": {
|
||||
"json": {
|
||||
"applications": [
|
||||
"urn:li:application:d63587c6-cacc-4590-851c-4f51ca429b51"
|
||||
]
|
||||
}
|
||||
},
|
||||
"systemMetadata": {
|
||||
"lastObserved": 1711491453928,
|
||||
"runId": "accounts-application-ingestion",
|
||||
"lastRunId": "no-run-id-provided"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user