playwright 1.44.0 → 1.44.1-beta-1716449392000

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.
package/lib/index.js CHANGED
@@ -549,8 +549,8 @@ const playwrightFixtures = {
549
549
  _optionContextReuseMode
550
550
  }, use) => {
551
551
  let mode = _optionContextReuseMode;
552
- if (process.env.PW_TEST_REUSE_CONTEXT) mode = process.env.PW_TEST_REUSE_CONTEXT === 'when-possible' ? 'when-possible' : process.env.PW_TEST_REUSE_CONTEXT ? 'force' : 'none';
553
- const reuse = mode === 'force' || mode === 'when-possible' && normalizeVideoMode(video) === 'off';
552
+ if (process.env.PW_TEST_REUSE_CONTEXT) mode = 'when-possible';
553
+ const reuse = mode === 'when-possible' && normalizeVideoMode(video) === 'off';
554
554
  await use(reuse);
555
555
  }, {
556
556
  scope: 'worker',
@@ -151,11 +151,12 @@ async function showHTMLReport(reportFolder, host = 'localhost', port, testId) {
151
151
  return;
152
152
  }
153
153
  const server = startHtmlReportServer(folder);
154
- let url = await server.start({
154
+ await server.start({
155
155
  port,
156
156
  host,
157
157
  preferredPort: port ? undefined : 9323
158
158
  });
159
+ let url = server.urlPrefix('human-readable');
159
160
  console.log('');
160
161
  console.log(_base.colors.cyan(` Serving HTML report at ${url}. Press Ctrl+C to quit.`));
161
162
  if (testId) url += `#?testId=${testId}`;
@@ -392,6 +392,7 @@ class TestServerDispatcher {
392
392
  sources: false,
393
393
  _live: true
394
394
  } : params.trace === 'off' ? 'off' : undefined,
395
+ video: params.video === 'on' ? 'on' : params.video === 'off' ? 'off' : undefined,
395
396
  headless: params.headed ? false : undefined,
396
397
  _optionContextReuseMode: params.reuseContext ? 'when-possible' : undefined,
397
398
  _optionConnectOptions: params.connectWsEndpoint ? {
@@ -512,9 +513,9 @@ async function runUIMode(configFile, options) {
512
513
  webApp: 'uiMode.html'
513
514
  });
514
515
  if (options.host !== undefined || options.port !== undefined) {
515
- await (0, _server.openTraceInBrowser)(server.urlPrefix());
516
+ await (0, _server.openTraceInBrowser)(server.urlPrefix('human-readable'));
516
517
  } else {
517
- const page = await (0, _server.openTraceViewerApp)(server.urlPrefix(), 'chromium', {
518
+ const page = await (0, _server.openTraceViewerApp)(server.urlPrefix('precise'), 'chromium', {
518
519
  headless: (0, _utils.isUnderTest)() && process.env.PWTEST_HEADED_FOR_TEST !== '1',
519
520
  persistentContextOptions: {
520
521
  handleSIGINT: false
@@ -528,7 +529,7 @@ async function runTestServer(configFile, options) {
528
529
  const configLocation = (0, _configLoader.resolveConfigLocation)(configFile);
529
530
  return await innerRunTestServer(configLocation, options, async server => {
530
531
  // eslint-disable-next-line no-console
531
- console.log('Listening on ' + server.urlPrefix().replace('http:', 'ws:') + '/' + server.wsGuid());
532
+ console.log('Listening on ' + server.urlPrefix('precise').replace('http:', 'ws:') + '/' + server.wsGuid());
532
533
  });
533
534
  }
534
535
  async function innerRunTestServer(configLocation, options, openUI) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright",
3
- "version": "1.44.0",
3
+ "version": "1.44.1-beta-1716449392000",
4
4
  "description": "A high-level API to automate web browsers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "license": "Apache-2.0",
60
60
  "dependencies": {
61
- "playwright-core": "1.44.0"
61
+ "playwright-core": "1.44.1-beta-1716449392000"
62
62
  },
63
63
  "optionalDependencies": {
64
64
  "fsevents": "2.3.2"