Skip to content

Commit 38094e1

Browse files
committed
tmp(cypress): ignore circles cannot read protoype error
Circles try to extend the FileList prototype which does not exist anymore since 28. See also nextcloud/circles#1377 .
1 parent ec1da8f commit 38094e1

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

cypress/support/e2e.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,16 @@ import chaiExtension from './chai.js'
77
before(() => {
88
chai.use(chaiExtension)
99
})
10+
11+
Cypress.on('uncaught:exception', (err, runnable) => {
12+
// Circles try to extend the FileList prototype
13+
// which does not exist anymore since 28.
14+
// TODO: Remove this once
15+
// https://github.com/nextcloud/circles/issues/1377
16+
// is fixed.
17+
if (err.message.includes('Cannot read properties of undefined (reading \'prototype\')')) {
18+
return false
19+
}
20+
// we still want to ensure there are no other unexpected
21+
// errors, so we let them fail the test
22+
})

0 commit comments

Comments
 (0)