1
0

e2e.ts 700 B

123456789101112131415
  1. /**
  2. * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: AGPL-3.0-or-later
  4. */
  5. import 'cypress-axe'
  6. import './commands.ts'
  7. // Remove with Node 22
  8. // Ensure that we can use `Promise.withResolvers` - works in browser but on Node we need Node 22+
  9. import 'core-js/actual/promise/with-resolvers.js'
  10. // Fix ResizeObserver loop limit exceeded happening in Cypress only
  11. // @see https://github.com/cypress-io/cypress/issues/20341
  12. Cypress.on('uncaught:exception', err => !err.message.includes('ResizeObserver loop limit exceeded'))
  13. Cypress.on('uncaught:exception', err => !err.message.includes('ResizeObserver loop completed with undelivered notifications'))