playwright
Advanced tools
Comparing version 1.49.0-alpha-2024-10-29 to 1.49.0-alpha-2024-10-30
@@ -75,6 +75,15 @@ "use strict"; | ||
}); | ||
const typedReceived = received; | ||
const messagePrefix = (0, _matcherHint.matcherHint)(this, receiver, matcherName, 'locator', undefined, matcherOptions, timedOut ? timeout : undefined); | ||
const notFound = received === _matcherHint.kNoElementsFoundError; | ||
const notFound = typedReceived === _matcherHint.kNoElementsFoundError; | ||
if (notFound) { | ||
return { | ||
pass: this.isNot, | ||
message: () => messagePrefix + `Expected: ${this.utils.printExpected(expected)}\nReceived: ${(0, _expectBundle.EXPECTED_COLOR)('not found')}` + (0, _util.callLogText)(log), | ||
name: 'toMatchAriaSnapshot', | ||
expected | ||
}; | ||
} | ||
const escapedExpected = escapePrivateUsePoints(expected); | ||
const escapedReceived = escapePrivateUsePoints(received); | ||
const escapedReceived = escapePrivateUsePoints(typedReceived.raw); | ||
const message = () => { | ||
@@ -93,3 +102,3 @@ if (pass) { | ||
// Only rebaseline failed snapshots. | ||
const suggestedRebaseline = `toMatchAriaSnapshot(\`\n${indent(received, '${indent} ')}\n\${indent}\`)`; | ||
const suggestedRebaseline = `toMatchAriaSnapshot(\`\n${indent(typedReceived.regex, '${indent} ')}\n\${indent}\`)`; | ||
return { | ||
@@ -96,0 +105,0 @@ pass: this.isNot, |
{ | ||
"name": "playwright", | ||
"version": "1.49.0-alpha-2024-10-29", | ||
"version": "1.49.0-alpha-2024-10-30", | ||
"description": "A high-level API to automate web browsers", | ||
@@ -59,3 +59,3 @@ "repository": { | ||
"dependencies": { | ||
"playwright-core": "1.49.0-alpha-2024-10-29" | ||
"playwright-core": "1.49.0-alpha-2024-10-30" | ||
}, | ||
@@ -62,0 +62,0 @@ "optionalDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3138344
35524
+ Addedplaywright-core@1.49.0-alpha-2024-10-30(transitive)
- Removedplaywright-core@1.49.0-alpha-2024-10-29(transitive)