playwright 1.56.0-alpha-2025-08-27 → 1.56.0-alpha-2025-08-29
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
|
-
[](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[](https://webkit.org/)<!-- GEN:stop --> [](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.
|
|
11
|
+
| Chromium <!-- GEN:chromium-version -->140.0.7339.24<!-- 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
|
|
|
@@ -31,7 +31,10 @@ async function toBeTruthy(matcherName, receiver, receiverType, expected, arg, qu
|
|
|
31
31
|
promise: this.promise
|
|
32
32
|
};
|
|
33
33
|
const timeout = options.timeout ?? this.timeout;
|
|
34
|
-
const { matches: pass, log, timedOut, received } = await query(!!this.isNot, timeout)
|
|
34
|
+
const { matches: pass, log, timedOut, received } = await query(!!this.isNot, timeout).catch(async (error) => {
|
|
35
|
+
await (0, import_backend.runBrowserBackendOnError)(receiver.page(), () => error.message);
|
|
36
|
+
throw error;
|
|
37
|
+
});
|
|
35
38
|
if (pass === !this.isNot) {
|
|
36
39
|
return {
|
|
37
40
|
name: matcherName,
|
package/lib/matchers/toEqual.js
CHANGED
|
@@ -35,7 +35,10 @@ async function toEqual(matcherName, receiver, receiverType, query, expected, opt
|
|
|
35
35
|
promise: this.promise
|
|
36
36
|
};
|
|
37
37
|
const timeout = options.timeout ?? this.timeout;
|
|
38
|
-
const { matches: pass, received, log, timedOut } = await query(!!this.isNot, timeout)
|
|
38
|
+
const { matches: pass, received, log, timedOut } = await query(!!this.isNot, timeout).catch(async (error) => {
|
|
39
|
+
await (0, import_backend.runBrowserBackendOnError)(receiver.page(), () => error.message);
|
|
40
|
+
throw error;
|
|
41
|
+
});
|
|
39
42
|
if (pass === !this.isNot) {
|
|
40
43
|
return {
|
|
41
44
|
name: matcherName,
|
|
@@ -41,7 +41,11 @@ async function toMatchText(matcherName, receiver, receiverType, query, expected,
|
|
|
41
41
|
].join("\n\n"));
|
|
42
42
|
}
|
|
43
43
|
const timeout = options.timeout ?? this.timeout;
|
|
44
|
-
const { matches: pass, received, log, timedOut } = await query(!!this.isNot, timeout)
|
|
44
|
+
const { matches: pass, received, log, timedOut } = await query(!!this.isNot, timeout).catch(async (error) => {
|
|
45
|
+
if (receiverType === "Locator")
|
|
46
|
+
await (0, import_backend.runBrowserBackendOnError)(receiver.page(), () => error.message);
|
|
47
|
+
throw error;
|
|
48
|
+
});
|
|
45
49
|
if (pass === !this.isNot) {
|
|
46
50
|
return {
|
|
47
51
|
name: matcherName,
|
package/lib/reporters/merge.js
CHANGED
|
@@ -216,7 +216,9 @@ function mergeConfigureEvents(configureEvents, rootDirOverride) {
|
|
|
216
216
|
metadata: {},
|
|
217
217
|
rootDir: "",
|
|
218
218
|
version: "",
|
|
219
|
-
workers: 0
|
|
219
|
+
workers: 0,
|
|
220
|
+
globalSetup: null,
|
|
221
|
+
globalTeardown: null
|
|
220
222
|
};
|
|
221
223
|
for (const event of configureEvents)
|
|
222
224
|
config = mergeConfigs(config, event.params.config);
|
|
@@ -152,7 +152,9 @@ class TeleReporterEmitter {
|
|
|
152
152
|
metadata: config.metadata,
|
|
153
153
|
rootDir: config.rootDir,
|
|
154
154
|
version: config.version,
|
|
155
|
-
workers: config.workers
|
|
155
|
+
workers: config.workers,
|
|
156
|
+
globalSetup: config.globalSetup,
|
|
157
|
+
globalTeardown: config.globalTeardown
|
|
156
158
|
};
|
|
157
159
|
}
|
|
158
160
|
_serializeProject(suite) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playwright",
|
|
3
|
-
"version": "1.56.0-alpha-2025-08-
|
|
3
|
+
"version": "1.56.0-alpha-2025-08-29",
|
|
4
4
|
"description": "A high-level API to automate web browsers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"license": "Apache-2.0",
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"playwright-core": "1.56.0-alpha-2025-08-
|
|
63
|
+
"playwright-core": "1.56.0-alpha-2025-08-29"
|
|
64
64
|
},
|
|
65
65
|
"optionalDependencies": {
|
|
66
66
|
"fsevents": "2.3.2"
|