Skip to content

Commit

Permalink
fix: e2e tests failing [#282]
Browse files Browse the repository at this point in the history
  • Loading branch information
cristian-ungureanu committed Sep 21, 2023
1 parent edf5988 commit 315a3d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions e2e-tests/cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ module.exports = (on) => {
if (browser.name === 'chrome' && browser.isHeadless) {
launchOptions.args.push('--window-size=1366,768');
launchOptions.args.push('--force-device-scale-factor=1');
launchOptions.args = launchOptions.args.map((arg) => {
if (arg === '--headless') {
return '--headless=new'
}

return arg
})
return launchOptions;
}
});
Expand Down

0 comments on commit 315a3d9

Please sign in to comment.