index.js 547 B

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