playwright 1.56.0-alpha-2025-09-07 → 1.56.0-alpha-2025-09-09

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # 🎭 Playwright
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-140.0.7339.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-141.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-26.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop --> [![Join Discord](https://img.shields.io/badge/join-discord-informational)](https://aka.ms/playwright/discord)
3
+ [![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-141.0.7390.7-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-141.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-26.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop --> [![Join Discord](https://img.shields.io/badge/join-discord-informational)](https://aka.ms/playwright/discord)
4
4
 
5
5
  ## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)
6
6
 
@@ -8,7 +8,7 @@ Playwright is a framework for Web Testing and Automation. It allows testing [Chr
8
8
 
9
9
  | | Linux | macOS | Windows |
10
10
  | :--- | :---: | :---: | :---: |
11
- | Chromium <!-- GEN:chromium-version -->140.0.7339.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
11
+ | Chromium <!-- GEN:chromium-version -->141.0.7390.7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
12
12
  | WebKit <!-- GEN:webkit-version -->26.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
13
13
  | Firefox <!-- GEN:firefox-version -->141.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
14
14
 
@@ -363,7 +363,7 @@ class JobDispatcher {
363
363
  }
364
364
  }
365
365
  _onDone(params) {
366
- if (!this._remainingByTestId.size && !this._failedTests.size && !params.fatalErrors.length && !params.skipTestsDueToSetupFailure.length && !params.fatalUnknownTestIds && !params.unexpectedExitError) {
366
+ if (!this._remainingByTestId.size && !this._failedTests.size && !params.fatalErrors.length && !params.skipTestsDueToSetupFailure.length && !params.fatalUnknownTestIds && !params.unexpectedExitError && !params.stoppedDueToUnhandledErrorInTestFail) {
367
367
  this._finished({ didFail: false });
368
368
  return;
369
369
  }
@@ -43,6 +43,9 @@ class WorkerMain extends import_process.ProcessRunner {
43
43
  this._fatalErrors = [];
44
44
  // The stage of the full cleanup. Once "finished", we can safely stop running anything.
45
45
  this._didRunFullCleanup = false;
46
+ // Whether the worker was stopped due to an unhandled error in a test marked with test.fail().
47
+ // This should force dispatcher to use a new worker instead.
48
+ this._stoppedDueToUnhandledErrorInTestFail = false;
46
49
  // Whether the worker was requested to stop.
47
50
  this._isStopped = false;
48
51
  // This promise resolves once the single "run test group" call finishes.
@@ -154,8 +157,10 @@ class WorkerMain extends import_process.ProcessRunner {
154
157
  }
155
158
  const isExpectError = error instanceof Error && !!error.matcherResult;
156
159
  const shouldContinueInThisWorker = this._currentTest.expectedStatus === "failed" && isExpectError;
157
- if (!shouldContinueInThisWorker)
160
+ if (!shouldContinueInThisWorker) {
161
+ this._stoppedDueToUnhandledErrorInTestFail = true;
158
162
  void this._stop();
163
+ }
159
164
  }
160
165
  async _loadIfNeeded() {
161
166
  if (this._config)
@@ -204,7 +209,8 @@ class WorkerMain extends import_process.ProcessRunner {
204
209
  const donePayload = {
205
210
  fatalErrors: this._fatalErrors,
206
211
  skipTestsDueToSetupFailure: [],
207
- fatalUnknownTestIds
212
+ fatalUnknownTestIds,
213
+ stoppedDueToUnhandledErrorInTestFail: this._stoppedDueToUnhandledErrorInTestFail
208
214
  };
209
215
  for (const test of this._skipRemainingTestsInSuite?.allTests() || []) {
210
216
  if (entries.has(test.id))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright",
3
- "version": "1.56.0-alpha-2025-09-07",
3
+ "version": "1.56.0-alpha-2025-09-09",
4
4
  "description": "A high-level API to automate web browsers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "license": "Apache-2.0",
66
66
  "dependencies": {
67
- "playwright-core": "1.56.0-alpha-2025-09-07"
67
+ "playwright-core": "1.56.0-alpha-2025-09-09"
68
68
  },
69
69
  "optionalDependencies": {
70
70
  "fsevents": "2.3.2"