Skip to content

Commit 51b66dc

Browse files
committed
tmp(cypress): ignore files cannot read views error
See also nextcloud/server#40065
1 parent d943659 commit 51b66dc

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+
// Old files scripts attempt to iterate through views
13+
// which do not exist anymore since 28.
14+
// TODO: Remove this once
15+
// https://github.com/nextcloud/server/pull/40065
16+
// is merged.
17+
if (err.message.includes('Cannot read properties of undefined (reading \'views\')')) {
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)