Skip to content

Commit

Permalink
fix: set headless mode on Fargate if not already set (#2465)
Browse files Browse the repository at this point in the history
  • Loading branch information
hassy authored Feb 3, 2024
1 parent cb320f9 commit 5e061cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/artillery-engine-playwright/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class PlaywrightEngine {
);

if (process.env.WORKER_ID) {
if (launchOptions.headless) {
if (!launchOptions.headless) {
// Running inside a cloud worker, e.g. on AWS Fargate. Force headless mode
console.log('Running inside a cloud worker. Forcing Playwright headless mode to true');
launchOptions.headless = true;
Expand Down

0 comments on commit 5e061cf

Please sign in to comment.