Skip to content

Commit

Permalink
try something new
Browse files Browse the repository at this point in the history
  • Loading branch information
ob6160 committed Sep 22, 2023
1 parent 3522402 commit 4d84652
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ export default defineConfig({
return launchOptions;
}

if (browser.name === 'chrome' && browser.isHeadless) {
const headlessIndex = launchOptions.args.indexOf('--headless');
if (headlessIndex > -1) {
launchOptions.args[headlessIndex] = '--headless=new';
}
}

// whatever you return here becomes the launchOptions
return launchOptions;
});
Expand Down

0 comments on commit 4d84652

Please sign in to comment.