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.

This commit is contained in:
Ximon Eighteen
2021-07-29 17:01:51 +02:00
committed by GitHub
parent 4d5c6c5147
commit f504d00a84
+1 -1
View File
@@ -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")