2020-05-13 15:29:54 +03:00
|
|
|
// ***********************************************************
|
|
|
|
// This file is processed and loaded automatically before your test files.
|
|
|
|
//
|
|
|
|
// You can read more here:
|
|
|
|
// https://on.cypress.io/configuration
|
|
|
|
// ***********************************************************
|
|
|
|
|
2023-05-09 20:33:55 +03:00
|
|
|
import './commands'
|
|
|
|
import './setupTests'
|
|
|
|
|
|
|
|
// Squelch logs from fetches, as they clutter the logs so much as to make them unusable.
|
|
|
|
// See https://docs.cypress.io/api/commands/intercept#Disabling-logs-for-a-request.
|
|
|
|
// TODO(https://github.com/cypress-io/cypress/issues/26069): Squelch only wildcard logs once Cypress allows it.
|
|
|
|
const log = Cypress.log
|
|
|
|
Cypress.log = function (options, ...args) {
|
|
|
|
if (options.displayName === 'script' || options.name === 'request') return
|
|
|
|
return log(options, ...args)
|
|
|
|
} as typeof log
|
2022-07-18 16:46:31 +03:00
|
|
|
|
2022-12-21 02:08:20 +03:00
|
|
|
Cypress.on('uncaught:exception', () => {
|
|
|
|
// returning false here prevents Cypress from failing the test
|
2022-07-18 16:46:31 +03:00
|
|
|
return false
|
|
|
|
})
|