mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-28 02:17:53 +00:00
parent
ea904817e8
commit
b8aac8b4e3
@ -19,12 +19,6 @@ const MONTHLY_TEMPERATURE_DATASET_URN =
|
||||
describe("lineage_graph", () => {
|
||||
beforeEach(() => {
|
||||
cy.setIsThemeV2Enabled(true);
|
||||
const resizeObserverLoopErrRe = "ResizeObserver loop limit exceeded";
|
||||
cy.on("uncaught:exception", (err) => {
|
||||
if (err.message.includes(resizeObserverLoopErrRe)) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
it("can see full history", () => {
|
||||
cy.login();
|
||||
|
||||
@ -33,14 +33,6 @@ describe("siblings", () => {
|
||||
});
|
||||
|
||||
it("can view individual nodes", () => {
|
||||
const resizeObserverLoopErrRe = /^[^(ResizeObserver loop limit exceeded)]/;
|
||||
cy.on("uncaught:exception", (err) => {
|
||||
/* returning false here prevents Cypress from failing the test */
|
||||
if (resizeObserverLoopErrRe.test(err.message)) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
cy.visitWithLogin(`/dataset/${DBT_URN}/?is_lineage_mode=false`);
|
||||
cy.get(".ant-table-row").should("be.visible");
|
||||
// navigate to the bq entity
|
||||
|
||||
@ -1,12 +1,6 @@
|
||||
describe("siblings", () => {
|
||||
beforeEach(() => {
|
||||
cy.setIsThemeV2Enabled(true);
|
||||
const resizeObserverLoopErrRe = "ResizeObserver loop limit exceeded";
|
||||
cy.on("uncaught:exception", (err) => {
|
||||
if (err.message.includes(resizeObserverLoopErrRe)) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
it("will merge metadata to non-primary sibling", () => {
|
||||
@ -52,13 +46,6 @@ describe("siblings", () => {
|
||||
cy.login();
|
||||
cy.visit("/");
|
||||
cy.skipIntroducePage();
|
||||
const resizeObserverLoopErrRe = /^[^(ResizeObserver loop limit exceeded)]/;
|
||||
cy.on("uncaught:exception", (err) => {
|
||||
/* returning false here prevents Cypress from failing the test */
|
||||
if (resizeObserverLoopErrRe.test(err.message)) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
cy.visit(
|
||||
"/dataset/urn:li:dataset:(urn:li:dataPlatform:dbt,cypress_project.jaffle_shop.customers,PROD)/?is_lineage_mode=false",
|
||||
@ -123,12 +110,6 @@ describe("siblings", () => {
|
||||
});
|
||||
|
||||
it.only("separates siblings in lineage", () => {
|
||||
Cypress.on("uncaught:exception", (err, runnable) => {
|
||||
if (err.message.includes("ResizeObserver loop limit exceeded")) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
cy.login();
|
||||
cy.visit("/");
|
||||
cy.skipIntroducePage();
|
||||
|
||||
@ -15,13 +15,6 @@ describe("view select", () => {
|
||||
const newViewName = `New View Name ${randomNumber}`;
|
||||
|
||||
// Resize Observer Loop warning can be safely ignored - ref. https://github.com/cypress-io/cypress/issues/22113
|
||||
const resizeObserverLoopErrRe = "ResizeObserver loop limit exceeded";
|
||||
cy.on("uncaught:exception", (err) => {
|
||||
if (err.message.includes(resizeObserverLoopErrRe)) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
cy.visit("/");
|
||||
cy.skipIntroducePage();
|
||||
cy.goToStarSearchList();
|
||||
|
||||
@ -13,12 +13,6 @@ describe("view select", () => {
|
||||
const newViewName = `New View Name ${randomNumber}`;
|
||||
|
||||
// Resize Observer Loop warning can be safely ignored - ref. https://github.com/cypress-io/cypress/issues/22113
|
||||
const resizeObserverLoopErrRe = "ResizeObserver loop limit exceeded";
|
||||
cy.on(
|
||||
"uncaught:exception",
|
||||
(err) => !err.message.includes(resizeObserverLoopErrRe),
|
||||
);
|
||||
|
||||
cy.goToStarSearchList();
|
||||
|
||||
cy.log("Create a View from the select");
|
||||
|
||||
@ -558,12 +558,21 @@ Cypress.Commands.add("setIsThemeV2Enabled", (isEnabled) => {
|
||||
});
|
||||
|
||||
Cypress.on("uncaught:exception", (err) => {
|
||||
const resizeObserverLoopErrMessage = "ResizeObserver loop limit exceeded";
|
||||
const resizeObserverLoopLimitErrMessage =
|
||||
"ResizeObserver loop limit exceeded";
|
||||
const resizeObserverLoopErrMessage =
|
||||
"ResizeObserver loop completed with undelivered notifications.";
|
||||
|
||||
/* returning false here prevents Cypress from failing the test */
|
||||
if (err.message.includes(resizeObserverLoopErrMessage)) {
|
||||
if (
|
||||
err.message.includes(resizeObserverLoopLimitErrMessage) ||
|
||||
err.message.includes(resizeObserverLoopErrMessage)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Allow other uncaught exceptions to fail the test
|
||||
return true;
|
||||
});
|
||||
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user