UNPKG

@kmcid/cypress-parallel-cli

Version:

CLI app for running parallel cypress tests

44 lines (41 loc) 1.3 kB
const fs = require('fs-extra') const path = require('path') const { defineConfig } = require('cypress') exports.default = defineConfig({ e2e: { //set default environment to qa projectId: 'og62rw', baseUrl: 'https://cupacanvas-qa.instructure.com/login/canvas', env: { environment: 'qa', a11yd: { project: '639c0be33be685be43384e76', url: 'https://a11yd-api.aop.cambridge.org/', enabled: true, env: 'si' } }, chromeWebSecurity: false, defaultCommandTimeout: 30000, responseTimeout: 60000, taskTimeout: 300000, viewportHeight: 1080, viewportWidth: 1920, videoUploadOnPasses: false, numTestsKeptInMemory: 50, video: false, retries: 0, // TODO: expertimental flags here // webkit guide: https://docs.cypress.io/guides/guides/launching-browsers#WebKit-Experimental experimentalWebKitSupport: true, setupNodeEvents(on, config) { const getConfigurationByFile = (file) => { const pathToConfigFile = path.resolve('cypress/config', `${file}.json`) return fs.readJsonSync(pathToConfigFile) } // default config is for QA environment const file = config.env.configFile || 'qa' return getConfigurationByFile(file) }, }, })