github.com/rancher/elemental/tests@v0.0.0-20240517125144-ae048c615b3f/cypress/latest/cypress.config.ts (about)

     1  import { defineConfig } from 'cypress'
     2  
     3  const qaseAPIToken = process.env.QASE_API_TOKEN
     4  
     5  export default defineConfig({
     6    defaultCommandTimeout: 10000,
     7    reporter: 'cypress-qase-reporter',
     8    reporterOptions: {
     9      'apiToken': qaseAPIToken,
    10      'projectCode': 'ELEMENTAL',
    11      'logging': true,
    12    },
    13    video: true,
    14    e2e: {
    15      // We've imported your old cypress plugins here.
    16      // You may want to clean this up later by importing these.
    17      setupNodeEvents(on, config) {
    18        // eslint-disable-next-line @typescript-eslint/no-var-requires
    19        return require('./plugins/index.ts')(on, config)
    20      },
    21      supportFile: './support/e2e.ts',
    22      fixturesFolder: './fixtures',
    23      screenshotsFolder: './screenshots',
    24      videosFolder: './videos',
    25      downloadsFolder: './downloads',
    26      specPattern: 'e2e/unit_tests/*.spec.ts',
    27    },
    28  })