mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-12 02:00:06 -06:00
* feat: use supportFile by testingType * Fix defaults * Start renaming files, and updating system-tests * Fix some tests * Fix some tests * Fix more tests * Try to fix CI * Fix more tests * Fix some tests * Revert changes * Revert supportFile defaultValue * Fix some tests * Fix some tests * Fix some tests * Fix some tests * Update supportFile example * Update snapshots * Remove scaffold support * Handle config errors * Remove scaffold * Fix tests * Fix test * Update test * Fix test * Update supportFile template * Fix template
27 lines
610 B
JavaScript
27 lines
610 B
JavaScript
module.exports = {
|
|
'e2e': {
|
|
'supportFile': false,
|
|
setupNodeEvents (on, config) {
|
|
on('before:browser:launch', (browser) => {
|
|
const { name } = browser
|
|
|
|
switch (name) {
|
|
case 'chrome':
|
|
return [name, 'foo', 'bar', 'baz']
|
|
case 'electron':
|
|
return {
|
|
preferences: {
|
|
browser: 'electron',
|
|
foo: 'bar',
|
|
},
|
|
}
|
|
default:
|
|
throw new Error(`unrecognized browser name: '${name}' for before:browser:launch`)
|
|
}
|
|
})
|
|
|
|
return config
|
|
},
|
|
},
|
|
}
|