From f123c5e129f2888cbbd8e0abd856797a4c2fec92 Mon Sep 17 00:00:00 2001 From: Florian Giroud <6267288+fgiroud@users.noreply.github.com> Date: Mon, 30 Aug 2021 13:35:03 +0200 Subject: [PATCH] Cypress Testing, Edge error message about window changed, updated exeption handler (#4131) --- main/tests/cypress/cypress/support/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/tests/cypress/cypress/support/index.js b/main/tests/cypress/cypress/support/index.js index 06e27deb1..3edc8d365 100644 --- a/main/tests/cypress/cypress/support/index.js +++ b/main/tests/cypress/cypress/support/index.js @@ -55,7 +55,9 @@ before(() => { Cypress.on('uncaught:exception', (err, runnable) => { // This message occasionally appears with edge // Doesn't seems like a blocket, and the test should not fail - if (err.message.includes("Cannot read property 'offsetTop' of undefined")) { + if (err.message.includes("Cannot read property 'offsetTop' of undefined") + || err.message.includes("Cannot read properties of undefined (reading 'offsetTop')") + ) { return false } // we still want to ensure there are no other unexpected