Skip to content

Commit dc571f6

Browse files
Merge pull request #13502 from The-Anton/resizeobserver-fix
OCPBUGS-27016: fix resizeObserver limit exceed for dev-console
2 parents 3e46a5a + 4851a77 commit dc571f6

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

  • frontend/packages/dev-console/integration-tests/support/commands

frontend/packages/dev-console/integration-tests/support/commands/hooks.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
import { guidedTour } from '@console/cypress-integration-tests/views/guided-tour';
22

3+
// To ignore the resizeObserverLoopErrors on CI, adding below code
4+
const resizeObserverLoopErrRe = /^[^(ResizeObserver loop limit exceeded)]/;
5+
/* eslint-disable consistent-return */
6+
Cypress.on('uncaught:exception', (err, runnable, promise) => {
7+
/* returning false here prevents Cypress from failing the test */
8+
if (resizeObserverLoopErrRe.test(err.message)) {
9+
return false;
10+
}
11+
cy.log('uncaught:exception', err, runnable, promise);
12+
});
13+
314
before(() => {
415
cy.exec('../../../../contrib/create-user.sh');
516
const bridgePasswordIDP: string = Cypress.env('BRIDGE_HTPASSWD_IDP') || 'test';

0 commit comments

Comments
 (0)