playwright 1.48.0 → 1.48.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -328,14 +328,23 @@ class TestServerDispatcher {
328
328
  preserveOutputDir: true,
329
329
  reporter: params.reporters ? params.reporters.map(r => [r]) : undefined,
330
330
  use: {
331
- ...(this._configCLIOverrides.use || {}),
332
- trace: params.trace === 'on' ? {
333
- mode: 'on',
334
- sources: false,
335
- _live: true
336
- } : params.trace === 'off' ? 'off' : undefined,
337
- video: params.video === 'on' ? 'on' : params.video === 'off' ? 'off' : undefined,
338
- headless: params.headed ? false : undefined,
331
+ ...this._configCLIOverrides.use,
332
+ ...(params.trace === 'on' ? {
333
+ trace: {
334
+ mode: 'on',
335
+ sources: false,
336
+ _live: true
337
+ }
338
+ } : {}),
339
+ ...(params.trace === 'off' ? {
340
+ trace: 'off'
341
+ } : {}),
342
+ ...(params.video === 'on' || params.video === 'off' ? {
343
+ video: params.video
344
+ } : {}),
345
+ ...(params.headed !== undefined ? {
346
+ headless: !params.headed
347
+ } : {}),
339
348
  _optionContextReuseMode: params.reuseContext ? 'when-possible' : undefined,
340
349
  _optionConnectOptions: params.connectWsEndpoint ? {
341
350
  wsEndpoint: params.connectWsEndpoint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright",
3
- "version": "1.48.0",
3
+ "version": "1.48.1",
4
4
  "description": "A high-level API to automate web browsers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "license": "Apache-2.0",
58
58
  "dependencies": {
59
- "playwright-core": "1.48.0"
59
+ "playwright-core": "1.48.1"
60
60
  },
61
61
  "optionalDependencies": {
62
62
  "fsevents": "2.3.2"