Skip to content

Commit 5e061cf

Browse files
authored
fix: set headless mode on Fargate if not already set (#2465)
1 parent cb320f9 commit 5e061cf

File tree

1 file changed

+1
-1
lines changed
  • packages/artillery-engine-playwright

1 file changed

+1
-1
lines changed

packages/artillery-engine-playwright/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class PlaywrightEngine {
6969
);
7070

7171
if (process.env.WORKER_ID) {
72-
if (launchOptions.headless) {
72+
if (!launchOptions.headless) {
7373
// Running inside a cloud worker, e.g. on AWS Fargate. Force headless mode
7474
console.log('Running inside a cloud worker. Forcing Playwright headless mode to true');
7575
launchOptions.headless = true;

0 commit comments

Comments
 (0)