Skip to content

Commit 3a54e3f

Browse files
committed
detect CI env and go in headless mode
1 parent ef0e408 commit 3a54e3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playwright.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ module.exports = {
3737
timeout: 60000,
3838
retries: 1,
3939
use: {
40-
headless: false,
40+
headless: process.env.CI ? true : false,
4141
},
4242
};

0 commit comments

Comments
 (0)