Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(plugin): replace old browser args with a new launch options (#32)
BREAKING CHANGE: The `ensureRequiredBrowserFlags` method is no longer supported. It was renamed the `ensureBrowserFlags` and now it accepts the second argument as an [options](cypress-io/cypress#6306) object with an args property instead of an array of browser arguments. Before: ```js // cypress/plugins/index.js const { install, ensureRequiredBrowserFlags } = require('@neuralegion/cypress-har-generator'); module.exports = (on, config) => { install(on, config); on('before:browser:launch', (browser = {}, args) => ensureRequiredBrowserFlags(browser, args) ); }; ``` After: ```js // cypress/plugins/index.js const { install, ensureBrowserFlags } = require('@neuralegion/cypress-har-generator'); module.exports = (on, config) => { install(on, config); on('before:browser:launch', (browser = {}, launchOptions) => { ensureBrowserFlags(browser, launchOptions); return launchOptions; }); }; ``` closes #31
- Loading branch information