Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,20 @@ import './commands.js'

Cypress.on('uncaught:exception', (err) => {
return !err.message.includes('ResizeObserver loop limit exceeded') &&
!err.message.includes('ResizeObserver loop completed with undelivered notifications')
!err.message.includes('ResizeObserver loop completed with undelivered notifications') &&
!err.message.includes("Cannot read properties of undefined (reading 'from')") &&
!err.message.includes("Cannot read properties of undefined (reading 'createEditor')")
})

// Handle unsupported browser dialog that appears on page load
Cypress.Commands.overwrite('visit', (originalVisit, url, options) => {
return originalVisit(url, options).then(() => {
// Wait a moment for the dialog to appear if needed
cy.get('body', { timeout: 1000 }).then(($body) => {
const button = $body.find('button:contains("Continue with this unsupported browser")')
if (button.length > 0) {
cy.contains('button', 'Continue with this unsupported browser').click()
}
})
})
})
137 changes: 43 additions & 94 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@nextcloud/auth": "^2.5.3",
"@nextcloud/axios": "^2.5.2",
"@nextcloud/capabilities": "^1.2.1",
"@nextcloud/dialogs": "^6.4.1",
"@nextcloud/dialogs": "^6.4.2",
"@nextcloud/event-bus": "^3.3.3",
"@nextcloud/files": "^3.12.0",
"@nextcloud/initial-state": "^3.0.0",
Expand Down
Loading