playwright
Advanced tools
Comparing version 1.50.0-alpha-2024-11-18 to 1.50.0-alpha-2024-11-19
@@ -206,14 +206,28 @@ "use strict"; | ||
} | ||
function toHaveAccessibleName(locator, expected, options) { | ||
return _toMatchText.toMatchText.call(this, 'toHaveAccessibleName', locator, 'Locator', async (isNot, timeout) => { | ||
const expectedText = (0, _utils.serializeExpectedTextValues)([expected], { | ||
ignoreCase: options === null || options === void 0 ? void 0 : options.ignoreCase, | ||
normalizeWhiteSpace: true | ||
}); | ||
return await locator._expect('to.have.accessible.name', { | ||
expectedText, | ||
isNot, | ||
timeout | ||
}); | ||
}, expected, options); | ||
function toHaveAccessibleName(locator, expected, options = {}) { | ||
if (Array.isArray(expected)) { | ||
return _toEqual.toEqual.call(this, 'toHaveAccessibleName', locator, 'Locator', async (isNot, timeout) => { | ||
const expectedText = (0, _utils.serializeExpectedTextValues)(expected, { | ||
ignoreCase: options === null || options === void 0 ? void 0 : options.ignoreCase, | ||
normalizeWhiteSpace: true | ||
}); | ||
return await locator._expect('to.have.accessible.name.array', { | ||
expectedText, | ||
isNot, | ||
timeout | ||
}); | ||
}, expected, options); | ||
} else { | ||
return _toMatchText.toMatchText.call(this, 'toHaveAccessibleName', locator, 'Locator', async (isNot, timeout) => { | ||
const expectedText = (0, _utils.serializeExpectedTextValues)([expected], { | ||
ignoreCase: options === null || options === void 0 ? void 0 : options.ignoreCase, | ||
normalizeWhiteSpace: true | ||
}); | ||
return await locator._expect('to.have.accessible.name', { | ||
expectedText, | ||
isNot, | ||
timeout | ||
}); | ||
}, expected, options); | ||
} | ||
} | ||
@@ -220,0 +234,0 @@ function toHaveAttribute(locator, name, expected, options) { |
{ | ||
"name": "playwright", | ||
"version": "1.50.0-alpha-2024-11-18", | ||
"version": "1.50.0-alpha-2024-11-19", | ||
"description": "A high-level API to automate web browsers", | ||
@@ -59,3 +59,3 @@ "repository": { | ||
"dependencies": { | ||
"playwright-core": "1.50.0-alpha-2024-11-18" | ||
"playwright-core": "1.50.0-alpha-2024-11-19" | ||
}, | ||
@@ -62,0 +62,0 @@ "optionalDependencies": { |
Sorry, the diff of this file is too big to display
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
3150723
35676
+ Addedplaywright-core@1.50.0-alpha-2024-11-19(transitive)
- Removedplaywright-core@1.50.0-alpha-2024-11-18(transitive)