Skip to content

Commit

Permalink
Cypress: ignore unrelated ResizeObserver client errors
Browse files Browse the repository at this point in the history
  • Loading branch information
robdiciuccio committed Jan 6, 2021
1 parent 553b440 commit 91d52ed
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions superset-frontend/cypress-base/cypress/support/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ import readResponseBlob from '../utils/readResponseBlob';

const BASE_EXPLORE_URL = '/superset/explore/?form_data=';

/* eslint-disable consistent-return */
Cypress.on('uncaught:exception', err => {
// ignore ResizeObserver client errors, as they are unrelated to operation
// and causing flaky test failures in CI
if (err.message && /ResizeObserver loop limit exceeded/.test(err.message)) {
// returning false here prevents Cypress from failing the test
return false;
}
});
/* eslint-enable consistent-return */

Cypress.Commands.add('login', () => {
cy.request({
method: 'POST',
Expand Down

0 comments on commit 91d52ed

Please sign in to comment.