index.js 499 B

123456789101112131415161718192021
  1. // Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. import './prepare.js'
  3. import '#mobile/styles/main.scss'
  4. import '#shared/components/CommonIcon/injectIcons.ts'
  5. import './commands.js'
  6. // @testing-library/cypress uses env to display errors
  7. globalThis.process.env = {
  8. DEBUG_PRINT_LIMIT: 5000,
  9. }
  10. Cypress.Screenshot.defaults({ capture: 'viewport' })
  11. if (Cypress.env('CY_CI')) {
  12. Cypress.config('defaultCommandTimeout', 20000)
  13. }
  14. beforeEach(() => document.fonts.ready)