playwright 1.51.0 → 1.51.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.
- package/lib/matchers/expect.js +4 -2
- package/package.json +2 -2
package/lib/matchers/expect.js
CHANGED
|
@@ -146,6 +146,8 @@ function takeMatcherCallContext() {
|
|
|
146
146
|
try {
|
|
147
147
|
return matcherCallContext;
|
|
148
148
|
} finally {
|
|
149
|
+
// Any subsequent matcher following the first is assumed to be an unsupported legacy asymmetric matcher.
|
|
150
|
+
// Lacking call context in these scenarios is not particularly important.
|
|
149
151
|
matcherCallContext = undefined;
|
|
150
152
|
}
|
|
151
153
|
}
|
|
@@ -159,13 +161,13 @@ function wrapPlaywrightMatcherToPassNiceThis(matcher) {
|
|
|
159
161
|
utils
|
|
160
162
|
} = this;
|
|
161
163
|
const context = takeMatcherCallContext();
|
|
162
|
-
const timeout = (_ref = (_context$expectInfo$t = context.expectInfo.timeout) !== null && _context$expectInfo$t !== void 0 ? _context$expectInfo$t : (_context$testInfo = context.testInfo) === null || _context$testInfo === void 0 || (_context$testInfo = _context$testInfo._projectInternal) === null || _context$testInfo === void 0 || (_context$testInfo = _context$testInfo.expect) === null || _context$testInfo === void 0 ? void 0 : _context$testInfo.timeout) !== null && _ref !== void 0 ? _ref : defaultExpectTimeout;
|
|
164
|
+
const timeout = (_ref = (_context$expectInfo$t = context === null || context === void 0 ? void 0 : context.expectInfo.timeout) !== null && _context$expectInfo$t !== void 0 ? _context$expectInfo$t : context === null || context === void 0 || (_context$testInfo = context.testInfo) === null || _context$testInfo === void 0 || (_context$testInfo = _context$testInfo._projectInternal) === null || _context$testInfo === void 0 || (_context$testInfo = _context$testInfo.expect) === null || _context$testInfo === void 0 ? void 0 : _context$testInfo.timeout) !== null && _ref !== void 0 ? _ref : defaultExpectTimeout;
|
|
163
165
|
const newThis = {
|
|
164
166
|
isNot,
|
|
165
167
|
promise,
|
|
166
168
|
utils,
|
|
167
169
|
timeout,
|
|
168
|
-
_stepInfo: context.step
|
|
170
|
+
_stepInfo: context === null || context === void 0 ? void 0 : context.step
|
|
169
171
|
};
|
|
170
172
|
newThis.equals = throwUnsupportedExpectMatcherError;
|
|
171
173
|
return matcher.call(newThis, ...args);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playwright",
|
|
3
|
-
"version": "1.51.
|
|
3
|
+
"version": "1.51.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.51.
|
|
59
|
+
"playwright-core": "1.51.1"
|
|
60
60
|
},
|
|
61
61
|
"optionalDependencies": {
|
|
62
62
|
"fsevents": "2.3.2"
|