playwright 1.57.0-alpha-2025-10-30 → 1.57.0-alpha-2025-10-31
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/ThirdPartyNotices.txt +202 -282
- package/lib/common/expectBundle.js +0 -9
- package/lib/common/expectBundleImpl.js +267 -249
- package/lib/matchers/expect.js +2 -0
- package/lib/mcp/sdk/server.js +6 -1
- package/package.json +2 -2
- package/types/test.d.ts +22 -0
package/lib/matchers/expect.js
CHANGED
|
@@ -190,6 +190,8 @@ class ExpectMetaInfoProxyHandler {
|
|
|
190
190
|
this._prefix = prefix;
|
|
191
191
|
}
|
|
192
192
|
get(target, matcherName, receiver) {
|
|
193
|
+
if (matcherName === "toThrowError")
|
|
194
|
+
matcherName = "toThrow";
|
|
193
195
|
let matcher = Reflect.get(target, matcherName, receiver);
|
|
194
196
|
if (typeof matcherName !== "string")
|
|
195
197
|
return matcher;
|
package/lib/mcp/sdk/server.js
CHANGED
|
@@ -156,7 +156,12 @@ function firstRootPath(clientInfo) {
|
|
|
156
156
|
return void 0;
|
|
157
157
|
const firstRootUri = clientInfo.roots[0]?.uri;
|
|
158
158
|
const url = firstRootUri ? new URL(firstRootUri) : void 0;
|
|
159
|
-
|
|
159
|
+
try {
|
|
160
|
+
return url ? (0, import_url.fileURLToPath)(url) : void 0;
|
|
161
|
+
} catch (error) {
|
|
162
|
+
serverDebug(error);
|
|
163
|
+
return void 0;
|
|
164
|
+
}
|
|
160
165
|
}
|
|
161
166
|
function mergeTextParts(result) {
|
|
162
167
|
const content = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playwright",
|
|
3
|
-
"version": "1.57.0-alpha-2025-10-
|
|
3
|
+
"version": "1.57.0-alpha-2025-10-31",
|
|
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.57.0-alpha-2025-10-
|
|
67
|
+
"playwright-core": "1.57.0-alpha-2025-10-31"
|
|
68
68
|
},
|
|
69
69
|
"optionalDependencies": {
|
|
70
70
|
"fsevents": "2.3.2"
|
package/types/test.d.ts
CHANGED
|
@@ -7728,6 +7728,27 @@ interface AsymmetricMatchers {
|
|
|
7728
7728
|
* @param expected Expected array that is a subset of the received value.
|
|
7729
7729
|
*/
|
|
7730
7730
|
arrayContaining(sample: Array<unknown>): AsymmetricMatcher;
|
|
7731
|
+
/**
|
|
7732
|
+
* `expect.arrayOf()` matches array of objects created from the
|
|
7733
|
+
* [`constructor`](https://playwright.dev/docs/api/class-genericassertions#generic-assertions-array-of-option-constructor)
|
|
7734
|
+
* or a corresponding primitive type. Use it inside
|
|
7735
|
+
* [expect(value).toEqual(expected)](https://playwright.dev/docs/api/class-genericassertions#generic-assertions-to-equal)
|
|
7736
|
+
* to perform pattern matching.
|
|
7737
|
+
*
|
|
7738
|
+
* **Usage**
|
|
7739
|
+
*
|
|
7740
|
+
* ```js
|
|
7741
|
+
* // Match instance of a class.
|
|
7742
|
+
* class Example {}
|
|
7743
|
+
* expect([new Example(), new Example()]).toEqual(expect.arrayOf(Example));
|
|
7744
|
+
*
|
|
7745
|
+
* // Match any string.
|
|
7746
|
+
* expect(['a', 'b', 'c']).toEqual(expect.arrayOf(String));
|
|
7747
|
+
* ```
|
|
7748
|
+
*
|
|
7749
|
+
* @param constructor Constructor of the expected object like `ExampleClass`, or a primitive boxed type like `Number`.
|
|
7750
|
+
*/
|
|
7751
|
+
arrayOf(sample: unknown): AsymmetricMatcher;
|
|
7731
7752
|
/**
|
|
7732
7753
|
* Compares floating point numbers for approximate equality. Use this method inside
|
|
7733
7754
|
* [expect(value).toEqual(expected)](https://playwright.dev/docs/api/class-genericassertions#generic-assertions-to-equal)
|
|
@@ -8111,6 +8132,7 @@ interface GenericAssertions<R> {
|
|
|
8111
8132
|
* - [expect(value).any(constructor)](https://playwright.dev/docs/api/class-genericassertions#generic-assertions-any)
|
|
8112
8133
|
* - [expect(value).anything()](https://playwright.dev/docs/api/class-genericassertions#generic-assertions-anything)
|
|
8113
8134
|
* - [expect(value).arrayContaining(expected)](https://playwright.dev/docs/api/class-genericassertions#generic-assertions-array-containing)
|
|
8135
|
+
* - [expect(value).arrayOf(constructor)](https://playwright.dev/docs/api/class-genericassertions#generic-assertions-array-of)
|
|
8114
8136
|
* - [expect(value).closeTo(expected[, numDigits])](https://playwright.dev/docs/api/class-genericassertions#generic-assertions-close-to)
|
|
8115
8137
|
* - [expect(value).objectContaining(expected)](https://playwright.dev/docs/api/class-genericassertions#generic-assertions-object-containing)
|
|
8116
8138
|
* - [expect(value).stringContaining(expected)](https://playwright.dev/docs/api/class-genericassertions#generic-assertions-string-containing)
|