Skip to content

Commit

Permalink
tmp(cypress): ignore files cannot read views error
Browse files Browse the repository at this point in the history
See also nextcloud/server#40065

Signed-off-by: Max <max@nextcloud.com>
  • Loading branch information
max-nextcloud committed Aug 27, 2023
1 parent d943659 commit dc29ff9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,16 @@ import chaiExtension from './chai.js'
before(() => {
chai.use(chaiExtension)
})

Cypress.on('uncaught:exception', (err, runnable) => {
// Old files scripts attempt to iterate through views
// which do not exist anymore since 28.
// TODO: Remove this once
// https://github.com/nextcloud/server/pull/40065
// is merged.
if (err.message.includes('Cannot read properties of undefined (reading \'views\')')) {
return false
}
// we still want to ensure there are no other unexpected
// errors, so we let them fail the test
})

0 comments on commit dc29ff9

Please sign in to comment.