mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 22:25:41 -04:00
build(deps): bump playwright from 1.49.1 to 1.50.1
This commit is contained in:
64
node_modules/playwright/lib/matchers/matchers.js
generated
vendored
64
node_modules/playwright/lib/matchers/matchers.js
generated
vendored
@@ -16,6 +16,7 @@ exports.toBeOK = toBeOK;
|
||||
exports.toBeVisible = toBeVisible;
|
||||
exports.toContainText = toContainText;
|
||||
exports.toHaveAccessibleDescription = toHaveAccessibleDescription;
|
||||
exports.toHaveAccessibleErrorMessage = toHaveAccessibleErrorMessage;
|
||||
exports.toHaveAccessibleName = toHaveAccessibleName;
|
||||
exports.toHaveAttribute = toHaveAttribute;
|
||||
exports.toHaveCSS = toHaveCSS;
|
||||
@@ -58,9 +59,8 @@ var _config = require("../common/config");
|
||||
function toBeAttached(locator, options) {
|
||||
const attached = !options || options.attached === undefined || options.attached;
|
||||
const expected = attached ? 'attached' : 'detached';
|
||||
const unexpected = attached ? 'detached' : 'attached';
|
||||
const arg = attached ? '' : '{ attached: false }';
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeAttached', locator, 'Locator', expected, unexpected, arg, async (isNot, timeout) => {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeAttached', locator, 'Locator', expected, arg, async (isNot, timeout) => {
|
||||
return await locator._expect(attached ? 'to.be.attached' : 'to.be.detached', {
|
||||
isNot,
|
||||
timeout
|
||||
@@ -68,19 +68,31 @@ function toBeAttached(locator, options) {
|
||||
}, options);
|
||||
}
|
||||
function toBeChecked(locator, options) {
|
||||
const checked = !options || options.checked === undefined || options.checked;
|
||||
const expected = checked ? 'checked' : 'unchecked';
|
||||
const unexpected = checked ? 'unchecked' : 'checked';
|
||||
const arg = checked ? '' : '{ checked: false }';
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeChecked', locator, 'Locator', expected, unexpected, arg, async (isNot, timeout) => {
|
||||
return await locator._expect(checked ? 'to.be.checked' : 'to.be.unchecked', {
|
||||
const checked = options === null || options === void 0 ? void 0 : options.checked;
|
||||
const indeterminate = options === null || options === void 0 ? void 0 : options.indeterminate;
|
||||
const expectedValue = {
|
||||
checked,
|
||||
indeterminate
|
||||
};
|
||||
let expected;
|
||||
let arg;
|
||||
if (options !== null && options !== void 0 && options.indeterminate) {
|
||||
expected = 'indeterminate';
|
||||
arg = `{ indeterminate: true }`;
|
||||
} else {
|
||||
expected = (options === null || options === void 0 ? void 0 : options.checked) === false ? 'unchecked' : 'checked';
|
||||
arg = (options === null || options === void 0 ? void 0 : options.checked) === false ? `{ checked: false }` : '';
|
||||
}
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeChecked', locator, 'Locator', expected, arg, async (isNot, timeout) => {
|
||||
return await locator._expect('to.be.checked', {
|
||||
isNot,
|
||||
timeout
|
||||
timeout,
|
||||
expectedValue
|
||||
});
|
||||
}, options);
|
||||
}
|
||||
function toBeDisabled(locator, options) {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeDisabled', locator, 'Locator', 'disabled', 'enabled', '', async (isNot, timeout) => {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeDisabled', locator, 'Locator', 'disabled', '', async (isNot, timeout) => {
|
||||
return await locator._expect('to.be.disabled', {
|
||||
isNot,
|
||||
timeout
|
||||
@@ -90,9 +102,8 @@ function toBeDisabled(locator, options) {
|
||||
function toBeEditable(locator, options) {
|
||||
const editable = !options || options.editable === undefined || options.editable;
|
||||
const expected = editable ? 'editable' : 'readOnly';
|
||||
const unexpected = editable ? 'readOnly' : 'editable';
|
||||
const arg = editable ? '' : '{ editable: false }';
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeEditable', locator, 'Locator', expected, unexpected, arg, async (isNot, timeout) => {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeEditable', locator, 'Locator', expected, arg, async (isNot, timeout) => {
|
||||
return await locator._expect(editable ? 'to.be.editable' : 'to.be.readonly', {
|
||||
isNot,
|
||||
timeout
|
||||
@@ -100,7 +111,7 @@ function toBeEditable(locator, options) {
|
||||
}, options);
|
||||
}
|
||||
function toBeEmpty(locator, options) {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeEmpty', locator, 'Locator', 'empty', 'notEmpty', '', async (isNot, timeout) => {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeEmpty', locator, 'Locator', 'empty', '', async (isNot, timeout) => {
|
||||
return await locator._expect('to.be.empty', {
|
||||
isNot,
|
||||
timeout
|
||||
@@ -110,9 +121,8 @@ function toBeEmpty(locator, options) {
|
||||
function toBeEnabled(locator, options) {
|
||||
const enabled = !options || options.enabled === undefined || options.enabled;
|
||||
const expected = enabled ? 'enabled' : 'disabled';
|
||||
const unexpected = enabled ? 'disabled' : 'enabled';
|
||||
const arg = enabled ? '' : '{ enabled: false }';
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeEnabled', locator, 'Locator', expected, unexpected, arg, async (isNot, timeout) => {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeEnabled', locator, 'Locator', expected, arg, async (isNot, timeout) => {
|
||||
return await locator._expect(enabled ? 'to.be.enabled' : 'to.be.disabled', {
|
||||
isNot,
|
||||
timeout
|
||||
@@ -120,7 +130,7 @@ function toBeEnabled(locator, options) {
|
||||
}, options);
|
||||
}
|
||||
function toBeFocused(locator, options) {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeFocused', locator, 'Locator', 'focused', 'inactive', '', async (isNot, timeout) => {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeFocused', locator, 'Locator', 'focused', '', async (isNot, timeout) => {
|
||||
return await locator._expect('to.be.focused', {
|
||||
isNot,
|
||||
timeout
|
||||
@@ -128,7 +138,7 @@ function toBeFocused(locator, options) {
|
||||
}, options);
|
||||
}
|
||||
function toBeHidden(locator, options) {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeHidden', locator, 'Locator', 'hidden', 'visible', '', async (isNot, timeout) => {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeHidden', locator, 'Locator', 'hidden', '', async (isNot, timeout) => {
|
||||
return await locator._expect('to.be.hidden', {
|
||||
isNot,
|
||||
timeout
|
||||
@@ -138,9 +148,8 @@ function toBeHidden(locator, options) {
|
||||
function toBeVisible(locator, options) {
|
||||
const visible = !options || options.visible === undefined || options.visible;
|
||||
const expected = visible ? 'visible' : 'hidden';
|
||||
const unexpected = visible ? 'hidden' : 'visible';
|
||||
const arg = visible ? '' : '{ visible: false }';
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeVisible', locator, 'Locator', expected, unexpected, arg, async (isNot, timeout) => {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeVisible', locator, 'Locator', expected, arg, async (isNot, timeout) => {
|
||||
return await locator._expect(visible ? 'to.be.visible' : 'to.be.hidden', {
|
||||
isNot,
|
||||
timeout
|
||||
@@ -148,7 +157,7 @@ function toBeVisible(locator, options) {
|
||||
}, options);
|
||||
}
|
||||
function toBeInViewport(locator, options) {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeInViewport', locator, 'Locator', 'in viewport', 'outside viewport', '', async (isNot, timeout) => {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toBeInViewport', locator, 'Locator', 'in viewport', '', async (isNot, timeout) => {
|
||||
return await locator._expect('to.be.in.viewport', {
|
||||
isNot,
|
||||
expectedNumber: options === null || options === void 0 ? void 0 : options.ratio,
|
||||
@@ -216,6 +225,19 @@ function toHaveAccessibleName(locator, expected, options) {
|
||||
});
|
||||
}, expected, options);
|
||||
}
|
||||
function toHaveAccessibleErrorMessage(locator, expected, options) {
|
||||
return _toMatchText.toMatchText.call(this, 'toHaveAccessibleErrorMessage', 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.error.message', {
|
||||
expectedText: expectedText,
|
||||
isNot,
|
||||
timeout
|
||||
});
|
||||
}, expected, options);
|
||||
}
|
||||
function toHaveAttribute(locator, name, expected, options) {
|
||||
if (!options) {
|
||||
// Update params for the case toHaveAttribute(name, options);
|
||||
@@ -225,7 +247,7 @@ function toHaveAttribute(locator, name, expected, options) {
|
||||
}
|
||||
}
|
||||
if (expected === undefined) {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toHaveAttribute', locator, 'Locator', 'have attribute', 'not have attribute', '', async (isNot, timeout) => {
|
||||
return _toBeTruthy.toBeTruthy.call(this, 'toHaveAttribute', locator, 'Locator', 'have attribute', '', async (isNot, timeout) => {
|
||||
return await locator._expect('to.have.attribute', {
|
||||
expressionArg: name,
|
||||
isNot,
|
||||
|
||||
Reference in New Issue
Block a user