Skip to content

Commit

Permalink
fix(ui): bring back the headed param
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed Oct 9, 2024
1 parent bc30cc7 commit 4110013
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/playwright/src/runner/testServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,14 @@ export class TestServerDispatcher implements TestServerInterface {
...(this._configCLIOverrides.use || {}),
trace: params.trace === 'on' ? { mode: 'on', sources: false, _live: true } : (params.trace === 'off' ? 'off' : undefined),
video: params.video === 'on' ? 'on' : (params.video === 'off' ? 'off' : undefined),
headless: params.headed ? false : undefined,
_optionContextReuseMode: params.reuseContext ? 'when-possible' : undefined,
_optionConnectOptions: params.connectWsEndpoint ? { wsEndpoint: params.connectWsEndpoint } : undefined,
},
...(params.updateSnapshots ? { updateSnapshots: params.updateSnapshots } : {}),
...(params.workers ? { workers: params.workers } : {}),
};
if (params.headed !== undefined)
overrides.use.headless = !params.headed;
if (params.trace === 'on')
process.env.PW_LIVE_TRACE_STACKS = '1';
else
Expand Down

0 comments on commit 4110013

Please sign in to comment.