Skip to content

Commit

Permalink
Fix headless mode in E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stephank committed Apr 7, 2024
1 parent 7d6d014 commit 732cdc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ const createDriver = async () => {
const firefoxOptions = new firefox.Options().windowSize(windowSize);
const chromeOptions = new chrome.Options().windowSize(windowSize);
if (HEADLESS === "1") {
firefoxOptions.headless();
chromeOptions.headless();
firefoxOptions.addArguments("-headless");
chromeOptions.addArguments("--headless=new");
}

const builder = new Builder();
Expand Down

0 comments on commit 732cdc1

Please sign in to comment.