2022-10-20 10:03:19 -04:00
|
|
|
/**
|
2024-05-24 13:43:47 -04:00
|
|
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2022-10-20 10:03:19 -04:00
|
|
|
*/
|
2023-11-30 17:27:44 -05:00
|
|
|
import 'cypress-axe'
|
2023-07-23 16:12:41 -04:00
|
|
|
import './commands.ts'
|
2023-09-27 04:30:55 -04:00
|
|
|
|
2024-08-22 20:16:02 -04:00
|
|
|
// Remove with Node 22
|
2024-08-28 11:14:08 -04:00
|
|
|
// Ensure that we can use `Promise.withResolvers` - works in browser but on Node we need Node 22+
|
2024-08-22 20:16:02 -04:00
|
|
|
import 'core-js/actual/promise/with-resolvers.js'
|
|
|
|
|
|
2023-09-27 04:30:55 -04:00
|
|
|
// Fix ResizeObserver loop limit exceeded happening in Cypress only
|
|
|
|
|
// @see https://github.com/cypress-io/cypress/issues/20341
|
|
|
|
|
Cypress.on('uncaught:exception', err => !err.message.includes('ResizeObserver loop limit exceeded'))
|
2024-03-12 17:25:41 -04:00
|
|
|
Cypress.on('uncaught:exception', err => !err.message.includes('ResizeObserver loop completed with undelivered notifications'))
|