mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-07 23:40:21 -05:00
0366d4fa89
* 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
24 lines
662 B
JavaScript
24 lines
662 B
JavaScript
const la = require('lazy-ass')
|
|
|
|
module.exports = {
|
|
'e2e': {
|
|
'supportFile': false,
|
|
setupNodeEvents (on, config) {
|
|
on('before:browser:launch', (browser = {}, options) => {
|
|
la(browser.family === 'chromium', 'this test can only be run with a chromium-family browser')
|
|
|
|
// remove debugging port so that the browser connection fails
|
|
const newArgs = options.args.filter((arg) => !arg.startsWith('--remote-debugging-port='))
|
|
|
|
la(newArgs.length === options.args.length - 1, 'exactly one argument should have been removed')
|
|
|
|
options.args = newArgs
|
|
|
|
return options
|
|
})
|
|
|
|
return config
|
|
},
|
|
},
|
|
}
|