From f504d00a8454a5409f54e8b05ef3229f096754a8 Mon Sep 17 00:00:00 2001 From: Ximon Eighteen <3304436+ximon18@users.noreply.github.com> Date: Thu, 29 Jul 2021 17:01:51 +0200 Subject: [PATCH] FIX: Don't assume err.description is non-null as since the ugprade from Cypress 6.8.0 to 8.0.0 sometimes it isn't. --- tests/ui/cypress/support/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ui/cypress/support/index.js b/tests/ui/cypress/support/index.js index 775c7834..69a9987d 100644 --- a/tests/ui/cypress/support/index.js +++ b/tests/ui/cypress/support/index.js @@ -33,7 +33,7 @@ Cypress.on('uncaught:exception', (err, runnable) => { console.log("Krill UI Test: err: ", err) console.log("Krill UI Test: runnable: ", runnable) - if (err.description.includes('ResizeObserver loop limit exceeded')) { + if (err && err.description && err.description.includes('ResizeObserver loop limit exceeded')) { // returning false here prevents Cypress from // failing the test console.log("Krill UI Test: Ignoring 'ResizeObserver loop limit exceeded' error")