ci(cypress): resize observer fix (#6263) (#14157)

This commit is contained in:
Ben Blazke 2025-07-21 16:55:26 -07:00 committed by GitHub
parent ea904817e8
commit b8aac8b4e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 11 additions and 48 deletions

View File

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

View File

@ -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

View File

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

View File

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

View File

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

View File

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