adding cypress tests

This commit is contained in:
Gabe Lyons 2025-06-05 18:38:07 -07:00
parent 0a0c263be0
commit e6d27d92ea
3 changed files with 52 additions and 0 deletions

View File

@ -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");
});
});

View File

@ -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 });

View File

@ -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"
}
}
]