@skbkontur/playwright-react-ui-components 1.13.0
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/build/index.d.ts +1 -0
- package/build/index.js +17 -0
- package/build/src/assertions/AutocompleteAssertions.d.ts +19 -0
- package/build/src/assertions/AutocompleteAssertions.js +177 -0
- package/build/src/assertions/BaseComponentAssertions.d.ts +15 -0
- package/build/src/assertions/BaseComponentAssertions.js +158 -0
- package/build/src/assertions/ButtonAssertions.d.ts +15 -0
- package/build/src/assertions/ButtonAssertions.js +162 -0
- package/build/src/assertions/CheckboxAssertions.d.ts +19 -0
- package/build/src/assertions/CheckboxAssertions.js +210 -0
- package/build/src/assertions/ComboBoxAssertions.d.ts +19 -0
- package/build/src/assertions/ComboBoxAssertions.js +304 -0
- package/build/src/assertions/ComponentListAssertions.d.ts +13 -0
- package/build/src/assertions/ComponentListAssertions.js +126 -0
- package/build/src/assertions/CurrencyInputAssertions.d.ts +15 -0
- package/build/src/assertions/CurrencyInputAssertions.js +212 -0
- package/build/src/assertions/DateInputAssertions.d.ts +15 -0
- package/build/src/assertions/DateInputAssertions.js +162 -0
- package/build/src/assertions/DatePickerAssertions.d.ts +15 -0
- package/build/src/assertions/DatePickerAssertions.js +162 -0
- package/build/src/assertions/DateRangePickerAssertions.d.ts +11 -0
- package/build/src/assertions/DateRangePickerAssertions.js +111 -0
- package/build/src/assertions/DropdownAssertions.d.ts +19 -0
- package/build/src/assertions/DropdownAssertions.js +260 -0
- package/build/src/assertions/DropdownMenuAssertions.d.ts +17 -0
- package/build/src/assertions/DropdownMenuAssertions.js +236 -0
- package/build/src/assertions/FileUploaderAssertions.d.ts +14 -0
- package/build/src/assertions/FileUploaderAssertions.js +119 -0
- package/build/src/assertions/FxInputAssertions.d.ts +17 -0
- package/build/src/assertions/FxInputAssertions.js +189 -0
- package/build/src/assertions/InputAssertions.d.ts +19 -0
- package/build/src/assertions/InputAssertions.js +177 -0
- package/build/src/assertions/KebabAssertions.d.ts +13 -0
- package/build/src/assertions/KebabAssertions.js +189 -0
- package/build/src/assertions/LabelAssertions.d.ts +19 -0
- package/build/src/assertions/LabelAssertions.js +144 -0
- package/build/src/assertions/LinkAssertions.d.ts +17 -0
- package/build/src/assertions/LinkAssertions.js +187 -0
- package/build/src/assertions/LoaderAssertions.d.ts +8 -0
- package/build/src/assertions/LoaderAssertions.js +78 -0
- package/build/src/assertions/MenuItemAssertations.d.ts +11 -0
- package/build/src/assertions/MenuItemAssertations.js +114 -0
- package/build/src/assertions/PagingAssertions.d.ts +15 -0
- package/build/src/assertions/PagingAssertions.js +149 -0
- package/build/src/assertions/PortalAssertions.d.ts +9 -0
- package/build/src/assertions/PortalAssertions.js +90 -0
- package/build/src/assertions/RadioAssertions.d.ts +19 -0
- package/build/src/assertions/RadioAssertions.js +210 -0
- package/build/src/assertions/RadioGroupAssertions.d.ts +15 -0
- package/build/src/assertions/RadioGroupAssertions.js +233 -0
- package/build/src/assertions/SelectAssertions.d.ts +15 -0
- package/build/src/assertions/SelectAssertions.js +211 -0
- package/build/src/assertions/SpinnerAssertions.d.ts +8 -0
- package/build/src/assertions/SpinnerAssertions.js +78 -0
- package/build/src/assertions/TabAssertions.d.ts +17 -0
- package/build/src/assertions/TabAssertions.js +187 -0
- package/build/src/assertions/TabsAssertions.d.ts +11 -0
- package/build/src/assertions/TabsAssertions.js +130 -0
- package/build/src/assertions/TextareaAssertions.d.ts +15 -0
- package/build/src/assertions/TextareaAssertions.js +162 -0
- package/build/src/assertions/ToastAssertions.d.ts +8 -0
- package/build/src/assertions/ToastAssertions.js +78 -0
- package/build/src/assertions/ToggleAssertions.d.ts +17 -0
- package/build/src/assertions/ToggleAssertions.js +186 -0
- package/build/src/assertions/TokenAssertions.d.ts +17 -0
- package/build/src/assertions/TokenAssertions.js +159 -0
- package/build/src/assertions/TokenInputAssertions.d.ts +16 -0
- package/build/src/assertions/TokenInputAssertions.js +170 -0
- package/build/src/assertions/TooltipAssertions.d.ts +11 -0
- package/build/src/assertions/TooltipAssertions.js +114 -0
- package/build/src/assertions/index.d.ts +34 -0
- package/build/src/assertions/index.js +71 -0
- package/build/src/components/Autocomplete.d.ts +25 -0
- package/build/src/components/Autocomplete.js +256 -0
- package/build/src/components/BaseComponent.d.ts +18 -0
- package/build/src/components/BaseComponent.js +159 -0
- package/build/src/components/Button.d.ts +21 -0
- package/build/src/components/Button.js +146 -0
- package/build/src/components/Checkbox.d.ts +21 -0
- package/build/src/components/Checkbox.js +161 -0
- package/build/src/components/ComboBox.d.ts +41 -0
- package/build/src/components/ComboBox.js +292 -0
- package/build/src/components/ComponentList.d.ts +21 -0
- package/build/src/components/ComponentList.js +203 -0
- package/build/src/components/CurrencyInput.d.ts +21 -0
- package/build/src/components/CurrencyInput.js +201 -0
- package/build/src/components/DateInput.d.ts +18 -0
- package/build/src/components/DateInput.js +195 -0
- package/build/src/components/DatePicker.d.ts +20 -0
- package/build/src/components/DatePicker.js +205 -0
- package/build/src/components/DateRangePicker.d.ts +20 -0
- package/build/src/components/DateRangePicker.js +111 -0
- package/build/src/components/Dropdown.d.ts +35 -0
- package/build/src/components/Dropdown.js +322 -0
- package/build/src/components/DropdownMenu.d.ts +40 -0
- package/build/src/components/DropdownMenu.js +321 -0
- package/build/src/components/FileUploader.d.ts +54 -0
- package/build/src/components/FileUploader.js +213 -0
- package/build/src/components/FxInput.d.ts +23 -0
- package/build/src/components/FxInput.js +217 -0
- package/build/src/components/Input.d.ts +21 -0
- package/build/src/components/Input.js +192 -0
- package/build/src/components/Kebab.d.ts +27 -0
- package/build/src/components/Kebab.js +247 -0
- package/build/src/components/Label.d.ts +13 -0
- package/build/src/components/Label.js +94 -0
- package/build/src/components/Link.d.ts +16 -0
- package/build/src/components/Link.js +130 -0
- package/build/src/components/Loader.d.ts +11 -0
- package/build/src/components/Loader.js +103 -0
- package/build/src/components/MenuItem.d.ts +13 -0
- package/build/src/components/MenuItem.js +84 -0
- package/build/src/components/Paging.d.ts +25 -0
- package/build/src/components/Paging.js +249 -0
- package/build/src/components/Portal.d.ts +11 -0
- package/build/src/components/Portal.js +112 -0
- package/build/src/components/Radio.d.ts +19 -0
- package/build/src/components/Radio.js +156 -0
- package/build/src/components/RadioGroup.d.ts +21 -0
- package/build/src/components/RadioGroup.js +232 -0
- package/build/src/components/Select.d.ts +43 -0
- package/build/src/components/Select.js +384 -0
- package/build/src/components/Spinner.d.ts +12 -0
- package/build/src/components/Spinner.js +103 -0
- package/build/src/components/Tab.d.ts +16 -0
- package/build/src/components/Tab.js +126 -0
- package/build/src/components/Tabs.d.ts +18 -0
- package/build/src/components/Tabs.js +136 -0
- package/build/src/components/Textarea.d.ts +21 -0
- package/build/src/components/Textarea.js +186 -0
- package/build/src/components/Toast.d.ts +10 -0
- package/build/src/components/Toast.js +79 -0
- package/build/src/components/Toggle.d.ts +19 -0
- package/build/src/components/Toggle.js +151 -0
- package/build/src/components/Token.d.ts +13 -0
- package/build/src/components/Token.js +106 -0
- package/build/src/components/TokenInput.d.ts +44 -0
- package/build/src/components/TokenInput.js +319 -0
- package/build/src/components/Tooltip.d.ts +14 -0
- package/build/src/components/Tooltip.js +98 -0
- package/build/src/components/index.d.ts +34 -0
- package/build/src/components/index.js +71 -0
- package/build/src/index.d.ts +5 -0
- package/build/src/index.js +21 -0
- package/build/src/matchers/formattedMatchers.d.ts +37 -0
- package/build/src/matchers/formattedMatchers.js +125 -0
- package/build/src/matchers/index.d.ts +2 -0
- package/build/src/matchers/index.js +20 -0
- package/build/src/matchers/mergedExpects.d.ts +25 -0
- package/build/src/matchers/mergedExpects.js +6 -0
- package/build/src/options/AssertionOptions.d.ts +82 -0
- package/build/src/options/AssertionOptions.js +2 -0
- package/build/src/options/LocatorOptions.d.ts +342 -0
- package/build/src/options/LocatorOptions.js +2 -0
- package/build/src/options/index.d.ts +2 -0
- package/build/src/options/index.js +18 -0
- package/build/src/utils/constants.d.ts +10 -0
- package/build/src/utils/constants.js +15 -0
- package/build/src/utils/dataTidSelector.d.ts +1 -0
- package/build/src/utils/dataTidSelector.js +6 -0
- package/build/src/utils/index.d.ts +2 -0
- package/build/src/utils/index.js +20 -0
- package/build/src/utils/tooltipProvider.d.ts +4 -0
- package/build/src/utils/tooltipProvider.js +95 -0
- package/package.json +27 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.formattedMatchers = void 0;
|
|
40
|
+
var test_1 = require("@playwright/test");
|
|
41
|
+
var removeSpaces = function (value) { return value.replace(/\s/g, ''); };
|
|
42
|
+
/**
|
|
43
|
+
* Набор проверок, которые игнорируют форматирование значения. По-умолчанию игнорируют пробелы.
|
|
44
|
+
*/
|
|
45
|
+
exports.formattedMatchers = test_1.expect.extend({
|
|
46
|
+
toHaveFormattedValue: function (locator, expected, options) {
|
|
47
|
+
return toHaveFormatted(function (locator) { return locator.inputValue(); }, 'toHaveFormattedValue', this)(locator, expected, options);
|
|
48
|
+
},
|
|
49
|
+
toHaveFormattedText: function (locator, expected, options) {
|
|
50
|
+
return toHaveFormatted(function (locator) { return locator.textContent(); }, 'toHaveFormattedText', this)(locator, expected, options);
|
|
51
|
+
},
|
|
52
|
+
toContainFormattedText: function (locator, expected, options) {
|
|
53
|
+
return toHaveFormatted(function (locator) { return locator.textContent(); }, 'toContainFormattedText', this, false)(locator, expected, options);
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
function toHaveFormatted(getter, assertionName, context, strictExpect) {
|
|
57
|
+
var _this = this;
|
|
58
|
+
if (strictExpect === void 0) { strictExpect = true; }
|
|
59
|
+
return function (locator, expected, options) { return __awaiter(_this, void 0, void 0, function () {
|
|
60
|
+
function pollAndTransform() {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
62
|
+
var value, transformedValue;
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
switch (_a.label) {
|
|
65
|
+
case 0: return [4 /*yield*/, getter(locator)];
|
|
66
|
+
case 1:
|
|
67
|
+
value = _a.sent();
|
|
68
|
+
transformedValue = value ? transform(value) : value;
|
|
69
|
+
actual = transformedValue;
|
|
70
|
+
return [2 /*return*/, transformedValue];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
var _a, timeout, _b, transform, pass, actual, e_1, message;
|
|
76
|
+
return __generator(this, function (_c) {
|
|
77
|
+
switch (_c.label) {
|
|
78
|
+
case 0:
|
|
79
|
+
_a = options || {}, timeout = _a.timeout, _b = _a.transform, transform = _b === void 0 ? removeSpaces : _b;
|
|
80
|
+
_c.label = 1;
|
|
81
|
+
case 1:
|
|
82
|
+
_c.trys.push([1, 6, , 7]);
|
|
83
|
+
if (!strictExpect) return [3 /*break*/, 3];
|
|
84
|
+
return [4 /*yield*/, test_1.expect.poll(pollAndTransform, { timeout: timeout }).toEqual(transform(expected))];
|
|
85
|
+
case 2:
|
|
86
|
+
_c.sent();
|
|
87
|
+
return [3 /*break*/, 5];
|
|
88
|
+
case 3: return [4 /*yield*/, test_1.expect.poll(pollAndTransform, { timeout: timeout }).toContain(transform(expected))];
|
|
89
|
+
case 4:
|
|
90
|
+
_c.sent();
|
|
91
|
+
_c.label = 5;
|
|
92
|
+
case 5:
|
|
93
|
+
pass = true;
|
|
94
|
+
return [3 /*break*/, 7];
|
|
95
|
+
case 6:
|
|
96
|
+
e_1 = _c.sent();
|
|
97
|
+
pass = false;
|
|
98
|
+
return [3 /*break*/, 7];
|
|
99
|
+
case 7:
|
|
100
|
+
message = pass
|
|
101
|
+
? function () {
|
|
102
|
+
return context.utils.matcherHint(assertionName, undefined, undefined, { isNot: context.isNot }) +
|
|
103
|
+
'\n\n' +
|
|
104
|
+
"Locator: ".concat(locator, "\n") +
|
|
105
|
+
"Expected: ".concat(context.isNot ? 'not' : '').concat(context.utils.printExpected(expected), "\n") +
|
|
106
|
+
(actual ? "Received: ".concat(context.utils.printReceived(actual)) : '');
|
|
107
|
+
}
|
|
108
|
+
: function () {
|
|
109
|
+
return context.utils.matcherHint(assertionName, undefined, undefined, { isNot: context.isNot }) +
|
|
110
|
+
'\n\n' +
|
|
111
|
+
"Locator: ".concat(locator, "\n") +
|
|
112
|
+
"Expected: ".concat(context.utils.printExpected(expected), "\n") +
|
|
113
|
+
(actual ? "Received: ".concat(context.utils.printReceived(actual)) : '');
|
|
114
|
+
};
|
|
115
|
+
return [2 /*return*/, {
|
|
116
|
+
message: message,
|
|
117
|
+
pass: pass,
|
|
118
|
+
name: assertionName,
|
|
119
|
+
expected: expected,
|
|
120
|
+
actual: actual,
|
|
121
|
+
}];
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}); };
|
|
125
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.mergedExpects = void 0;
|
|
18
|
+
__exportStar(require("./formattedMatchers"), exports);
|
|
19
|
+
var mergedExpects_1 = require("./mergedExpects");
|
|
20
|
+
Object.defineProperty(exports, "mergedExpects", { enumerable: true, get: function () { return mergedExpects_1.mergedExpects; } });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Expect, type Locator } from '@playwright/test';
|
|
2
|
+
import type { TransformOptions } from '../options';
|
|
3
|
+
export declare const mergedExpects: Expect<{
|
|
4
|
+
toHaveFormattedValue(locator: Locator, expected: string, options?: TransformOptions): Promise<{
|
|
5
|
+
message: () => string;
|
|
6
|
+
pass: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
expected: string;
|
|
9
|
+
actual: any;
|
|
10
|
+
}>;
|
|
11
|
+
toHaveFormattedText(locator: Locator, expected: string, options?: TransformOptions): Promise<{
|
|
12
|
+
message: () => string;
|
|
13
|
+
pass: boolean;
|
|
14
|
+
name: string;
|
|
15
|
+
expected: string;
|
|
16
|
+
actual: any;
|
|
17
|
+
}>;
|
|
18
|
+
toContainFormattedText(locator: Locator, expected: string, options?: TransformOptions): Promise<{
|
|
19
|
+
message: () => string;
|
|
20
|
+
pass: boolean;
|
|
21
|
+
name: string;
|
|
22
|
+
expected: string;
|
|
23
|
+
actual: any;
|
|
24
|
+
}>;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mergedExpects = void 0;
|
|
4
|
+
var test_1 = require("@playwright/test");
|
|
5
|
+
var index_1 = require("./index");
|
|
6
|
+
exports.mergedExpects = (0, test_1.mergeExpects)(test_1.expect, index_1.formattedMatchers);
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { Transform } from '../matchers';
|
|
2
|
+
export type VisibleOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* Time to retry the assertion for in milliseconds. Defaults to `timeout` in `TestConfig.expect`.
|
|
5
|
+
*/
|
|
6
|
+
timeout?: number;
|
|
7
|
+
};
|
|
8
|
+
export type HiddenOptions = {
|
|
9
|
+
/**
|
|
10
|
+
* Time to retry the assertion for in milliseconds. Defaults to `timeout` in `TestConfig.expect`.
|
|
11
|
+
*/
|
|
12
|
+
timeout?: number;
|
|
13
|
+
};
|
|
14
|
+
export type EnabledOptions = {
|
|
15
|
+
/**
|
|
16
|
+
* Time to retry the assertion for in milliseconds. Defaults to `timeout` in `TestConfig.expect`.
|
|
17
|
+
*/
|
|
18
|
+
timeout?: number;
|
|
19
|
+
};
|
|
20
|
+
export type FocusedOptions = {
|
|
21
|
+
/**
|
|
22
|
+
* Time to retry the assertion for in milliseconds. Defaults to `timeout` in `TestConfig.expect`.
|
|
23
|
+
*/
|
|
24
|
+
timeout?: number;
|
|
25
|
+
};
|
|
26
|
+
export type CheckedOptions = {
|
|
27
|
+
/**
|
|
28
|
+
* Time to retry the assertion for in milliseconds. Defaults to `timeout` in `TestConfig.expect`.
|
|
29
|
+
*/
|
|
30
|
+
timeout?: number;
|
|
31
|
+
};
|
|
32
|
+
export type EmptyOptions = {
|
|
33
|
+
/**
|
|
34
|
+
* Time to retry the assertion for in milliseconds. Defaults to `timeout` in `TestConfig.expect`.
|
|
35
|
+
*/
|
|
36
|
+
timeout?: number;
|
|
37
|
+
};
|
|
38
|
+
export type CountOptions = {
|
|
39
|
+
/**
|
|
40
|
+
* Time to retry the assertion for in milliseconds. Defaults to `timeout` in `TestConfig.expect`.
|
|
41
|
+
*/
|
|
42
|
+
timeout?: number;
|
|
43
|
+
};
|
|
44
|
+
export type ValueOptions = {
|
|
45
|
+
/**
|
|
46
|
+
* Time to retry the assertion for in milliseconds. Defaults to `timeout` in `TestConfig.expect`.
|
|
47
|
+
*/
|
|
48
|
+
timeout?: number;
|
|
49
|
+
};
|
|
50
|
+
export type TextOptions = {
|
|
51
|
+
/**
|
|
52
|
+
* Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
|
|
53
|
+
* expression flag if specified.
|
|
54
|
+
*/
|
|
55
|
+
ignoreCase?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Time to retry the assertion for in milliseconds. Defaults to `timeout` in `TestConfig.expect`.
|
|
58
|
+
*/
|
|
59
|
+
timeout?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Whether to use `element.innerText` instead of `element.textContent` when retrieving DOM node text.
|
|
62
|
+
*/
|
|
63
|
+
useInnerText?: boolean;
|
|
64
|
+
};
|
|
65
|
+
export type AttributeOptions = {
|
|
66
|
+
/**
|
|
67
|
+
* Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
|
|
68
|
+
* expression flag if specified.
|
|
69
|
+
*/
|
|
70
|
+
ignoreCase?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Time to retry the assertion for in milliseconds. Defaults to `timeout` in `TestConfig.expect`.
|
|
73
|
+
*/
|
|
74
|
+
timeout?: number;
|
|
75
|
+
};
|
|
76
|
+
export type TransformOptions = {
|
|
77
|
+
transform?: Transform;
|
|
78
|
+
/**
|
|
79
|
+
* Time to retry the assertion for in milliseconds. Defaults to `timeout` in `TestConfig.expect`.
|
|
80
|
+
*/
|
|
81
|
+
timeout?: number;
|
|
82
|
+
};
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
export type IsDisabledOptions = {
|
|
2
|
+
/**
|
|
3
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
4
|
+
* option in the config, or by using the
|
|
5
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
6
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
7
|
+
*/
|
|
8
|
+
timeout?: number;
|
|
9
|
+
};
|
|
10
|
+
export type InputValueOptions = {
|
|
11
|
+
/**
|
|
12
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
13
|
+
* option in the config, or by using the
|
|
14
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
15
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
16
|
+
*/
|
|
17
|
+
timeout?: number;
|
|
18
|
+
};
|
|
19
|
+
export type FillOptions = {
|
|
20
|
+
/**
|
|
21
|
+
* Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.
|
|
22
|
+
*/
|
|
23
|
+
force?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You
|
|
26
|
+
* can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as
|
|
27
|
+
* navigating to inaccessible pages. Defaults to `false`.
|
|
28
|
+
*/
|
|
29
|
+
noWaitAfter?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
32
|
+
* option in the config, or by using the
|
|
33
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
34
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
35
|
+
*/
|
|
36
|
+
timeout?: number;
|
|
37
|
+
};
|
|
38
|
+
export type PressOptions = {
|
|
39
|
+
/**
|
|
40
|
+
* Time to wait between `keydown` and `keyup` in milliseconds. Defaults to 0.
|
|
41
|
+
*/
|
|
42
|
+
delay?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You
|
|
45
|
+
* can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as
|
|
46
|
+
* navigating to inaccessible pages. Defaults to `false`.
|
|
47
|
+
*/
|
|
48
|
+
noWaitAfter?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
51
|
+
* option in the config, or by using the
|
|
52
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
53
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
54
|
+
*/
|
|
55
|
+
timeout?: number;
|
|
56
|
+
};
|
|
57
|
+
export type PressSequentiallyOptions = {
|
|
58
|
+
/**
|
|
59
|
+
* Time to wait between key presses in milliseconds. Defaults to 0.
|
|
60
|
+
*/
|
|
61
|
+
delay?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You
|
|
64
|
+
* can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as
|
|
65
|
+
* navigating to inaccessible pages. Defaults to `false`.
|
|
66
|
+
*/
|
|
67
|
+
noWaitAfter?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
70
|
+
* option in the config, or by using the
|
|
71
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
72
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
73
|
+
*/
|
|
74
|
+
timeout?: number;
|
|
75
|
+
};
|
|
76
|
+
export type ClearOptions = {
|
|
77
|
+
/**
|
|
78
|
+
* Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.
|
|
79
|
+
*/
|
|
80
|
+
force?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You
|
|
83
|
+
* can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as
|
|
84
|
+
* navigating to inaccessible pages. Defaults to `false`.
|
|
85
|
+
*/
|
|
86
|
+
noWaitAfter?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
89
|
+
* option in the config, or by using the
|
|
90
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
91
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
92
|
+
*/
|
|
93
|
+
timeout?: number;
|
|
94
|
+
};
|
|
95
|
+
export type FocusOptions = {
|
|
96
|
+
/**
|
|
97
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
98
|
+
* option in the config, or by using the
|
|
99
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
100
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
101
|
+
*/
|
|
102
|
+
timeout?: number;
|
|
103
|
+
};
|
|
104
|
+
export type BlurOptions = {
|
|
105
|
+
/**
|
|
106
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
107
|
+
* option in the config, or by using the
|
|
108
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
109
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
110
|
+
*/
|
|
111
|
+
timeout?: number;
|
|
112
|
+
};
|
|
113
|
+
export type ClickOptions = {
|
|
114
|
+
/**
|
|
115
|
+
* Defaults to `left`.
|
|
116
|
+
*/
|
|
117
|
+
button?: 'left' | 'right' | 'middle';
|
|
118
|
+
/**
|
|
119
|
+
* defaults to 1. See [UIEvent.detail].
|
|
120
|
+
*/
|
|
121
|
+
clickCount?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
|
|
124
|
+
*/
|
|
125
|
+
delay?: number;
|
|
126
|
+
/**
|
|
127
|
+
* Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.
|
|
128
|
+
*/
|
|
129
|
+
force?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores
|
|
132
|
+
* current modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to
|
|
133
|
+
* "Control" on Windows and Linux and to "Meta" on macOS.
|
|
134
|
+
*/
|
|
135
|
+
modifiers?: Array<'Alt' | 'Control' | 'ControlOrMeta' | 'Meta' | 'Shift'>;
|
|
136
|
+
/**
|
|
137
|
+
* Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You
|
|
138
|
+
* can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as
|
|
139
|
+
* navigating to inaccessible pages. Defaults to `false`.
|
|
140
|
+
*/
|
|
141
|
+
noWaitAfter?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of
|
|
144
|
+
* the element.
|
|
145
|
+
*/
|
|
146
|
+
position?: {
|
|
147
|
+
x: number;
|
|
148
|
+
y: number;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
152
|
+
* option in the config, or by using the
|
|
153
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
154
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
155
|
+
*/
|
|
156
|
+
timeout?: number;
|
|
157
|
+
/**
|
|
158
|
+
* When set, this method only performs the [actionability](https://playwright.dev/docs/actionability) checks and skips the action. Defaults
|
|
159
|
+
* to `false`. Useful to wait until the element is ready for the action without performing it.
|
|
160
|
+
*/
|
|
161
|
+
trial?: boolean;
|
|
162
|
+
};
|
|
163
|
+
export type IsVisibleOptions = {
|
|
164
|
+
/**
|
|
165
|
+
* @deprecated This option is ignored.
|
|
166
|
+
* [locator.isVisible([options])](https://playwright.dev/docs/api/class-locator#locator-is-visible) does not wait for
|
|
167
|
+
* the element to become visible and returns immediately.
|
|
168
|
+
*/
|
|
169
|
+
timeout?: number;
|
|
170
|
+
};
|
|
171
|
+
export type GetAttributeOptions = {
|
|
172
|
+
/**
|
|
173
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
174
|
+
* option in the config, or by using the
|
|
175
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
176
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
177
|
+
*/
|
|
178
|
+
timeout?: number;
|
|
179
|
+
};
|
|
180
|
+
export type HoverOptions = {
|
|
181
|
+
/**
|
|
182
|
+
* Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.
|
|
183
|
+
*/
|
|
184
|
+
force?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores
|
|
187
|
+
* current modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to
|
|
188
|
+
* "Control" on Windows and Linux and to "Meta" on macOS.
|
|
189
|
+
*/
|
|
190
|
+
modifiers?: Array<'Alt' | 'Control' | 'ControlOrMeta' | 'Meta' | 'Shift'>;
|
|
191
|
+
/**
|
|
192
|
+
* Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You
|
|
193
|
+
* can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as
|
|
194
|
+
* navigating to inaccessible pages. Defaults to `false`.
|
|
195
|
+
*/
|
|
196
|
+
noWaitAfter?: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of
|
|
199
|
+
* the element.
|
|
200
|
+
*/
|
|
201
|
+
position?: {
|
|
202
|
+
x: number;
|
|
203
|
+
y: number;
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
207
|
+
* option in the config, or by using the
|
|
208
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
209
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
210
|
+
*/
|
|
211
|
+
timeout?: number;
|
|
212
|
+
/**
|
|
213
|
+
* When set, this method only performs the [actionability](https://playwright.dev/docs/actionability) checks and skips the action. Defaults
|
|
214
|
+
* to `false`. Useful to wait until the element is ready for the action without performing it.
|
|
215
|
+
*/
|
|
216
|
+
trial?: boolean;
|
|
217
|
+
};
|
|
218
|
+
export type ScrollIntoViewIfNeededOptions = {
|
|
219
|
+
/**
|
|
220
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
221
|
+
* option in the config, or by using the
|
|
222
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
223
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
224
|
+
*/
|
|
225
|
+
timeout?: number;
|
|
226
|
+
};
|
|
227
|
+
export type WaitForOptions = {
|
|
228
|
+
/**
|
|
229
|
+
* Defaults to `'visible'`. Can be either:
|
|
230
|
+
* - `'attached'` - wait for element to be present in DOM.
|
|
231
|
+
* - `'detached'` - wait for element to not be present in DOM.
|
|
232
|
+
* - `'visible'` - wait for element to have non-empty bounding box and no `visibility:hidden`. Note that element
|
|
233
|
+
* without any content or with `display:none` has an empty bounding box and is not considered visible.
|
|
234
|
+
* - `'hidden'` - wait for element to be either detached from DOM, or have an empty bounding box or
|
|
235
|
+
* `visibility:hidden`. This is opposite to the `'visible'` option.
|
|
236
|
+
*/
|
|
237
|
+
state?: 'attached' | 'detached' | 'visible' | 'hidden';
|
|
238
|
+
/**
|
|
239
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
240
|
+
* option in the config, or by using the
|
|
241
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
242
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
243
|
+
*/
|
|
244
|
+
timeout?: number;
|
|
245
|
+
};
|
|
246
|
+
export type InnerTextOptions = {
|
|
247
|
+
/**
|
|
248
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
249
|
+
* option in the config, or by using the
|
|
250
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
251
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
252
|
+
*/
|
|
253
|
+
timeout?: number;
|
|
254
|
+
};
|
|
255
|
+
export type IsCheckedOptions = {
|
|
256
|
+
/**
|
|
257
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
258
|
+
* option in the config, or by using the
|
|
259
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
260
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
261
|
+
*/
|
|
262
|
+
timeout?: number;
|
|
263
|
+
};
|
|
264
|
+
export type CheckOptions = {
|
|
265
|
+
/**
|
|
266
|
+
* Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.
|
|
267
|
+
*/
|
|
268
|
+
force?: boolean;
|
|
269
|
+
/**
|
|
270
|
+
* Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You
|
|
271
|
+
* can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as
|
|
272
|
+
* navigating to inaccessible pages. Defaults to `false`.
|
|
273
|
+
*/
|
|
274
|
+
noWaitAfter?: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of
|
|
277
|
+
* the element.
|
|
278
|
+
*/
|
|
279
|
+
position?: {
|
|
280
|
+
x: number;
|
|
281
|
+
y: number;
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
285
|
+
* option in the config, or by using the
|
|
286
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
287
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
288
|
+
*/
|
|
289
|
+
timeout?: number;
|
|
290
|
+
/**
|
|
291
|
+
* When set, this method only performs the [actionability](https://playwright.dev/docs/actionability) checks and skips the action. Defaults
|
|
292
|
+
* to `false`. Useful to wait until the element is ready for the action without performing it.
|
|
293
|
+
*/
|
|
294
|
+
trial?: boolean;
|
|
295
|
+
};
|
|
296
|
+
export type UncheckOptions = {
|
|
297
|
+
/**
|
|
298
|
+
* Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.
|
|
299
|
+
*/
|
|
300
|
+
force?: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You
|
|
303
|
+
* can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as
|
|
304
|
+
* navigating to inaccessible pages. Defaults to `false`.
|
|
305
|
+
*/
|
|
306
|
+
noWaitAfter?: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of
|
|
309
|
+
* the element.
|
|
310
|
+
*/
|
|
311
|
+
position?: {
|
|
312
|
+
x: number;
|
|
313
|
+
y: number;
|
|
314
|
+
};
|
|
315
|
+
/**
|
|
316
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
317
|
+
* option in the config, or by using the
|
|
318
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
319
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
320
|
+
*/
|
|
321
|
+
timeout?: number;
|
|
322
|
+
/**
|
|
323
|
+
* When set, this method only performs the [actionability](https://playwright.dev/docs/actionability) checks and skips the action. Defaults
|
|
324
|
+
* to `false`. Useful to wait until the element is ready for the action without performing it.
|
|
325
|
+
*/
|
|
326
|
+
trial?: boolean;
|
|
327
|
+
};
|
|
328
|
+
export type SetInputFilesOptions = {
|
|
329
|
+
/**
|
|
330
|
+
* Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You
|
|
331
|
+
* can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as
|
|
332
|
+
* navigating to inaccessible pages. Defaults to `false`.
|
|
333
|
+
*/
|
|
334
|
+
noWaitAfter?: boolean;
|
|
335
|
+
/**
|
|
336
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
337
|
+
* option in the config, or by using the
|
|
338
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
339
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
340
|
+
*/
|
|
341
|
+
timeout?: number;
|
|
342
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AssertionOptions"), exports);
|
|
18
|
+
__exportStar(require("./LocatorOptions"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum DataVisualState {
|
|
2
|
+
Error = "data-visual-state-error",
|
|
3
|
+
Warning = "data-visual-state-warning",
|
|
4
|
+
Active = "data-visual-state-active",
|
|
5
|
+
Disabled = "data-visual-state-disabled"
|
|
6
|
+
}
|
|
7
|
+
export declare enum TooltipType {
|
|
8
|
+
Validation = 0,
|
|
9
|
+
Information = 1
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TooltipType = exports.DataVisualState = void 0;
|
|
4
|
+
var DataVisualState;
|
|
5
|
+
(function (DataVisualState) {
|
|
6
|
+
DataVisualState["Error"] = "data-visual-state-error";
|
|
7
|
+
DataVisualState["Warning"] = "data-visual-state-warning";
|
|
8
|
+
DataVisualState["Active"] = "data-visual-state-active";
|
|
9
|
+
DataVisualState["Disabled"] = "data-visual-state-disabled";
|
|
10
|
+
})(DataVisualState || (exports.DataVisualState = DataVisualState = {}));
|
|
11
|
+
var TooltipType;
|
|
12
|
+
(function (TooltipType) {
|
|
13
|
+
TooltipType[TooltipType["Validation"] = 0] = "Validation";
|
|
14
|
+
TooltipType[TooltipType["Information"] = 1] = "Information";
|
|
15
|
+
})(TooltipType || (exports.TooltipType = TooltipType = {}));
|