@skbkontur/playwright-react-ui-components 1.13.2 → 1.14.0-beta.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/build/src/assertions/AutocompleteAssertions.js +10 -10
- package/build/src/assertions/BaseComponentAssertions.js +11 -11
- package/build/src/assertions/ButtonAssertions.js +9 -9
- package/build/src/assertions/CheckboxAssertions.js +13 -13
- package/build/src/assertions/ComboBoxAssertions.js +17 -111
- package/build/src/assertions/ComponentListAssertions.js +6 -6
- package/build/src/assertions/CurrencyInputAssertions.js +11 -61
- package/build/src/assertions/DateInputAssertions.js +9 -9
- package/build/src/assertions/DatePickerAssertions.js +9 -9
- package/build/src/assertions/DateRangePickerAssertions.js +4 -25
- package/build/src/assertions/DropdownAssertions.js +13 -63
- package/build/src/assertions/DropdownMenuAssertions.js +11 -61
- package/build/src/assertions/FileUploaderAssertions.d.ts +1 -3
- package/build/src/assertions/FileUploaderAssertions.js +5 -22
- package/build/src/assertions/FxInputAssertions.js +11 -14
- package/build/src/assertions/InputAssertions.js +10 -10
- package/build/src/assertions/KebabAssertions.js +7 -58
- package/build/src/assertions/LabelAssertions.js +7 -7
- package/build/src/assertions/LinkAssertions.js +11 -12
- package/build/src/assertions/LoaderAssertions.js +2 -2
- package/build/src/assertions/MenuItemAssertations.js +5 -5
- package/build/src/assertions/PagingAssertions.js +5 -40
- package/build/src/assertions/PortalAssertions.js +3 -3
- package/build/src/assertions/RadioAssertions.js +13 -13
- package/build/src/assertions/RadioGroupAssertions.js +10 -81
- package/build/src/assertions/SelectAssertions.js +15 -64
- package/build/src/assertions/SpinnerAssertions.js +2 -2
- package/build/src/assertions/TabAssertions.js +11 -12
- package/build/src/assertions/TabsAssertions.js +4 -32
- package/build/src/assertions/TextareaAssertions.js +9 -9
- package/build/src/assertions/ToastAssertions.js +2 -2
- package/build/src/assertions/ToggleAssertions.js +11 -11
- package/build/src/assertions/TokenAssertions.js +8 -14
- package/build/src/assertions/TokenInputAssertions.js +8 -28
- package/build/src/assertions/TooltipAssertions.js +5 -5
- package/build/src/components/Autocomplete.d.ts +4 -0
- package/build/src/components/Autocomplete.js +52 -50
- package/build/src/components/BaseComponent.d.ts +4 -0
- package/build/src/components/BaseComponent.js +37 -30
- package/build/src/components/Button.d.ts +4 -0
- package/build/src/components/Button.js +25 -19
- package/build/src/components/Checkbox.d.ts +6 -0
- package/build/src/components/Checkbox.js +28 -36
- package/build/src/components/ComboBox.d.ts +9 -2
- package/build/src/components/ComboBox.js +68 -54
- package/build/src/components/ComponentList.d.ts +6 -3
- package/build/src/components/ComponentList.js +39 -50
- package/build/src/components/CurrencyInput.d.ts +4 -0
- package/build/src/components/CurrencyInput.js +39 -37
- package/build/src/components/DateInput.d.ts +4 -0
- package/build/src/components/DateInput.js +34 -32
- package/build/src/components/DatePicker.d.ts +4 -0
- package/build/src/components/DatePicker.js +35 -33
- package/build/src/components/DateRangePicker.d.ts +2 -0
- package/build/src/components/DateRangePicker.js +14 -10
- package/build/src/components/Dropdown.d.ts +8 -2
- package/build/src/components/Dropdown.js +69 -65
- package/build/src/components/DropdownMenu.d.ts +7 -2
- package/build/src/components/DropdownMenu.js +68 -65
- package/build/src/components/FileUploader.d.ts +3 -1
- package/build/src/components/FileUploader.js +39 -39
- package/build/src/components/FxInput.d.ts +4 -0
- package/build/src/components/FxInput.js +44 -42
- package/build/src/components/Input.d.ts +4 -0
- package/build/src/components/Input.js +37 -35
- package/build/src/components/Kebab.d.ts +6 -2
- package/build/src/components/Kebab.js +50 -48
- package/build/src/components/Label.d.ts +2 -0
- package/build/src/components/Label.js +9 -13
- package/build/src/components/Link.d.ts +4 -0
- package/build/src/components/Link.js +19 -25
- package/build/src/components/Loader.d.ts +2 -0
- package/build/src/components/Loader.js +15 -10
- package/build/src/components/MenuComponent.d.ts +9 -0
- package/build/src/components/MenuComponent.js +78 -0
- package/build/src/components/MenuItem.d.ts +2 -0
- package/build/src/components/MenuItem.js +7 -3
- package/build/src/components/Paging.d.ts +2 -0
- package/build/src/components/Paging.js +59 -52
- package/build/src/components/Portal.d.ts +2 -0
- package/build/src/components/Portal.js +14 -10
- package/build/src/components/Radio.d.ts +6 -0
- package/build/src/components/Radio.js +31 -27
- package/build/src/components/RadioGroup.d.ts +2 -0
- package/build/src/components/RadioGroup.js +51 -47
- package/build/src/components/Select.d.ts +5 -0
- package/build/src/components/Select.js +92 -76
- package/build/src/components/Spinner.d.ts +2 -0
- package/build/src/components/Spinner.js +13 -9
- package/build/src/components/Tab.d.ts +4 -0
- package/build/src/components/Tab.js +17 -27
- package/build/src/components/Textarea.d.ts +4 -0
- package/build/src/components/Textarea.js +33 -39
- package/build/src/components/Toast.d.ts +2 -0
- package/build/src/components/Toast.js +7 -3
- package/build/src/components/Toggle.d.ts +5 -0
- package/build/src/components/Toggle.js +24 -33
- package/build/src/components/Token.d.ts +3 -0
- package/build/src/components/Token.js +14 -9
- package/build/src/components/TokenInput.d.ts +4 -0
- package/build/src/components/TokenInput.js +61 -59
- package/build/src/components/Tooltip.d.ts +2 -0
- package/build/src/components/Tooltip.js +9 -9
- package/build/src/components/index.d.ts +1 -0
- package/build/src/components/index.js +3 -1
- package/build/src/extensions/index.d.ts +1 -0
- package/build/src/extensions/index.js +17 -0
- package/build/src/extensions/mergedExpects.d.ts +5 -0
- package/build/src/extensions/mergedExpects.js +7 -0
- package/build/src/index.d.ts +2 -0
- package/build/src/index.js +2 -0
- package/build/src/matchers/component/LocatorSymbols.d.ts +43 -0
- package/build/src/matchers/component/LocatorSymbols.js +13 -0
- package/build/src/matchers/component/toBeActiveEx.d.ts +3 -0
- package/build/src/matchers/component/toBeActiveEx.js +56 -0
- package/build/src/matchers/component/toBeAutoEx.d.ts +3 -0
- package/build/src/matchers/component/toBeAutoEx.js +62 -0
- package/build/src/matchers/component/toBeCheckedByIndexEx.d.ts +3 -0
- package/build/src/matchers/component/toBeCheckedByIndexEx.js +62 -0
- package/build/src/matchers/component/toBeCheckedByTextEx.d.ts +3 -0
- package/build/src/matchers/component/toBeCheckedByTextEx.js +62 -0
- package/build/src/matchers/component/toBeCheckedByValueEx.d.ts +3 -0
- package/build/src/matchers/component/toBeCheckedByValueEx.js +62 -0
- package/build/src/matchers/component/toBeCheckedEx.d.ts +3 -0
- package/build/src/matchers/component/toBeCheckedEx.js +56 -0
- package/build/src/matchers/component/toBeDisabledEx.d.ts +3 -0
- package/build/src/matchers/component/toBeDisabledEx.js +172 -0
- package/build/src/matchers/component/toBeEmptyEx.d.ts +3 -0
- package/build/src/matchers/component/toBeEmptyEx.js +137 -0
- package/build/src/matchers/component/toBeEnabledEx.d.ts +3 -0
- package/build/src/matchers/component/toBeEnabledEx.js +206 -0
- package/build/src/matchers/component/toBeFocusedEx.d.ts +3 -0
- package/build/src/matchers/component/toBeFocusedEx.js +56 -0
- package/build/src/matchers/component/toBeHiddenEx.d.ts +3 -0
- package/build/src/matchers/component/toBeHiddenEx.js +68 -0
- package/build/src/matchers/component/toBeInactiveEx.d.ts +3 -0
- package/build/src/matchers/component/toBeInactiveEx.js +56 -0
- package/build/src/matchers/component/toBeUncheckedByIndexEx.d.ts +3 -0
- package/build/src/matchers/component/toBeUncheckedByIndexEx.js +62 -0
- package/build/src/matchers/component/toBeUncheckedByTextEx.d.ts +3 -0
- package/build/src/matchers/component/toBeUncheckedByTextEx.js +57 -0
- package/build/src/matchers/component/toBeUncheckedByValueEx.d.ts +3 -0
- package/build/src/matchers/component/toBeUncheckedByValueEx.js +57 -0
- package/build/src/matchers/component/toBeUncheckedEx.d.ts +3 -0
- package/build/src/matchers/component/toBeUncheckedEx.js +56 -0
- package/build/src/matchers/component/toBeVisibleEx.d.ts +3 -0
- package/build/src/matchers/component/toBeVisibleEx.js +68 -0
- package/build/src/matchers/component/toContainFormattedTextEx.d.ts +3 -0
- package/build/src/matchers/component/toContainFormattedTextEx.js +55 -0
- package/build/src/matchers/component/toContainItemEx.d.ts +4 -0
- package/build/src/matchers/component/toContainItemEx.js +79 -0
- package/build/src/matchers/component/toContainItemsEx.d.ts +3 -0
- package/build/src/matchers/component/toContainItemsEx.js +63 -0
- package/build/src/matchers/component/toContainTabsEx.d.ts +3 -0
- package/build/src/matchers/component/toContainTabsEx.js +80 -0
- package/build/src/matchers/component/toContainTextEx.d.ts +3 -0
- package/build/src/matchers/component/toContainTextEx.js +56 -0
- package/build/src/matchers/component/toContainTokensEx.d.ts +4 -0
- package/build/src/matchers/component/toContainTokensEx.js +80 -0
- package/build/src/matchers/component/toContainUploadedFilesEx.d.ts +4 -0
- package/build/src/matchers/component/toContainUploadedFilesEx.js +75 -0
- package/build/src/matchers/component/toContainValueEx.d.ts +3 -0
- package/build/src/matchers/component/toContainValueEx.js +55 -0
- package/build/src/matchers/component/toHaveActivePageEx.d.ts +4 -0
- package/build/src/matchers/component/toHaveActivePageEx.js +78 -0
- package/build/src/matchers/component/toHaveActiveTabEx.d.ts +2 -0
- package/build/src/matchers/component/toHaveActiveTabEx.js +62 -0
- package/build/src/matchers/component/toHaveAttributeEx.d.ts +3 -0
- package/build/src/matchers/component/toHaveAttributeEx.js +62 -0
- package/build/src/matchers/component/toHaveCountEx.d.ts +3 -0
- package/build/src/matchers/component/toHaveCountEx.js +56 -0
- package/build/src/matchers/component/toHaveErrorEx.d.ts +3 -0
- package/build/src/matchers/component/toHaveErrorEx.js +57 -0
- package/build/src/matchers/component/toHaveFormattedTextEx.d.ts +3 -0
- package/build/src/matchers/component/toHaveFormattedTextEx.js +56 -0
- package/build/src/matchers/component/toHaveFormattedValueEx.d.ts +3 -0
- package/build/src/matchers/component/toHaveFormattedValueEx.js +56 -0
- package/build/src/matchers/component/toHaveHrefEx.d.ts +3 -0
- package/build/src/matchers/component/toHaveHrefEx.js +55 -0
- package/build/src/matchers/component/toHaveItemsEx.d.ts +3 -0
- package/build/src/matchers/component/toHaveItemsEx.js +63 -0
- package/build/src/matchers/component/toHavePageCountEx.d.ts +4 -0
- package/build/src/matchers/component/toHavePageCountEx.js +71 -0
- package/build/src/matchers/component/toHaveTextEx.d.ts +3 -0
- package/build/src/matchers/component/toHaveTextEx.js +56 -0
- package/build/src/matchers/component/toHaveValueEx.d.ts +6 -0
- package/build/src/matchers/component/toHaveValueEx.js +198 -0
- package/build/src/matchers/component/toHaveWarningEx.d.ts +3 -0
- package/build/src/matchers/component/toHaveWarningEx.js +57 -0
- package/build/src/matchers/componentMatchers.d.ts +104 -0
- package/build/src/matchers/componentMatchers.js +83 -0
- package/build/src/matchers/createAsyncMatcher.d.ts +47 -0
- package/build/src/matchers/createAsyncMatcher.js +155 -0
- package/build/src/matchers/formattedMatchers.d.ts +15 -31
- package/build/src/matchers/formattedMatchers.js +19 -15
- package/build/src/matchers/index.d.ts +1 -1
- package/build/src/matchers/index.js +1 -3
- package/build/src/utils/getMarcherResult.d.ts +13 -0
- package/build/src/utils/getMarcherResult.js +13 -0
- package/build/src/utils/index.d.ts +3 -0
- package/build/src/utils/index.js +3 -0
- package/build/src/utils/is.d.ts +3 -0
- package/build/src/utils/is.js +5 -0
- package/build/src/utils/makeMatcher.d.ts +5 -0
- package/build/src/utils/makeMatcher.js +65 -0
- package/build/src/utils/toMatchMessage.d.ts +12 -0
- package/build/src/utils/toMatchMessage.js +78 -0
- package/package.json +1 -1
- package/build/src/matchers/mergedExpects.d.ts +0 -15
- package/build/src/matchers/mergedExpects.js +0 -6
|
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
54
|
exports.DropdownMenuAssertions = void 0;
|
|
55
55
|
var BaseComponentAssertions_1 = require("./BaseComponentAssertions");
|
|
56
|
-
var
|
|
56
|
+
var extensions_1 = require("../extensions");
|
|
57
57
|
var DropdownMenuAssertions = /** @class */ (function (_super) {
|
|
58
58
|
__extends(DropdownMenuAssertions, _super);
|
|
59
59
|
function DropdownMenuAssertions(dropdownMenu) {
|
|
@@ -65,7 +65,7 @@ var DropdownMenuAssertions = /** @class */ (function (_super) {
|
|
|
65
65
|
return __awaiter(this, void 0, void 0, function () {
|
|
66
66
|
return __generator(this, function (_a) {
|
|
67
67
|
switch (_a.label) {
|
|
68
|
-
case 0: return [4 /*yield*/, (0,
|
|
68
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdownMenu).toHaveTextEx(text, options)];
|
|
69
69
|
case 1:
|
|
70
70
|
_a.sent();
|
|
71
71
|
return [2 /*return*/];
|
|
@@ -77,7 +77,7 @@ var DropdownMenuAssertions = /** @class */ (function (_super) {
|
|
|
77
77
|
return __awaiter(this, void 0, void 0, function () {
|
|
78
78
|
return __generator(this, function (_a) {
|
|
79
79
|
switch (_a.label) {
|
|
80
|
-
case 0: return [4 /*yield*/, (0,
|
|
80
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdownMenu).not.toHaveTextEx(text, options)];
|
|
81
81
|
case 1:
|
|
82
82
|
_a.sent();
|
|
83
83
|
return [2 /*return*/];
|
|
@@ -89,7 +89,7 @@ var DropdownMenuAssertions = /** @class */ (function (_super) {
|
|
|
89
89
|
return __awaiter(this, void 0, void 0, function () {
|
|
90
90
|
return __generator(this, function (_a) {
|
|
91
91
|
switch (_a.label) {
|
|
92
|
-
case 0: return [4 /*yield*/, (0,
|
|
92
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdownMenu).toContainTextEx(text, options)];
|
|
93
93
|
case 1:
|
|
94
94
|
_a.sent();
|
|
95
95
|
return [2 /*return*/];
|
|
@@ -101,7 +101,7 @@ var DropdownMenuAssertions = /** @class */ (function (_super) {
|
|
|
101
101
|
return __awaiter(this, void 0, void 0, function () {
|
|
102
102
|
return __generator(this, function (_a) {
|
|
103
103
|
switch (_a.label) {
|
|
104
|
-
case 0: return [4 /*yield*/, (0,
|
|
104
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdownMenu).not.toContainTextEx(text, options)];
|
|
105
105
|
case 1:
|
|
106
106
|
_a.sent();
|
|
107
107
|
return [2 /*return*/];
|
|
@@ -111,14 +111,10 @@ var DropdownMenuAssertions = /** @class */ (function (_super) {
|
|
|
111
111
|
};
|
|
112
112
|
DropdownMenuAssertions.prototype.toHaveItems = function (itemsText, options) {
|
|
113
113
|
return __awaiter(this, void 0, void 0, function () {
|
|
114
|
-
var itemsLocator;
|
|
115
114
|
return __generator(this, function (_a) {
|
|
116
115
|
switch (_a.label) {
|
|
117
|
-
case 0: return [4 /*yield*/, this.dropdownMenu.
|
|
116
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdownMenu).toHaveItemsEx(itemsText, options)];
|
|
118
117
|
case 1:
|
|
119
|
-
itemsLocator = (_a.sent()).itemsLocator;
|
|
120
|
-
return [4 /*yield*/, (0, matchers_1.mergedExpects)(itemsLocator).toHaveText(itemsText, options)];
|
|
121
|
-
case 2:
|
|
122
118
|
_a.sent();
|
|
123
119
|
return [2 /*return*/];
|
|
124
120
|
}
|
|
@@ -127,14 +123,10 @@ var DropdownMenuAssertions = /** @class */ (function (_super) {
|
|
|
127
123
|
};
|
|
128
124
|
DropdownMenuAssertions.prototype.toContainItems = function (itemsText, options) {
|
|
129
125
|
return __awaiter(this, void 0, void 0, function () {
|
|
130
|
-
var itemsLocator;
|
|
131
126
|
return __generator(this, function (_a) {
|
|
132
127
|
switch (_a.label) {
|
|
133
|
-
case 0: return [4 /*yield*/, this.dropdownMenu.
|
|
128
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdownMenu).toContainItemsEx(itemsText, options)];
|
|
134
129
|
case 1:
|
|
135
|
-
itemsLocator = (_a.sent()).itemsLocator;
|
|
136
|
-
return [4 /*yield*/, (0, matchers_1.mergedExpects)(itemsLocator).toContainText(itemsText, options)];
|
|
137
|
-
case 2:
|
|
138
130
|
_a.sent();
|
|
139
131
|
return [2 /*return*/];
|
|
140
132
|
}
|
|
@@ -143,30 +135,9 @@ var DropdownMenuAssertions = /** @class */ (function (_super) {
|
|
|
143
135
|
};
|
|
144
136
|
DropdownMenuAssertions.prototype.toContainItem = function (itemText, options) {
|
|
145
137
|
return __awaiter(this, void 0, void 0, function () {
|
|
146
|
-
var _this = this;
|
|
147
138
|
return __generator(this, function (_a) {
|
|
148
139
|
switch (_a.label) {
|
|
149
|
-
case 0: return [4 /*yield*/,
|
|
150
|
-
.poll(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
151
|
-
var menus, _a, _b;
|
|
152
|
-
var _this = this;
|
|
153
|
-
return __generator(this, function (_c) {
|
|
154
|
-
switch (_c.label) {
|
|
155
|
-
case 0: return [4 /*yield*/, this.dropdownMenu.getMenuItems()];
|
|
156
|
-
case 1:
|
|
157
|
-
menus = _c.sent();
|
|
158
|
-
_b = (_a = Promise).all;
|
|
159
|
-
return [4 /*yield*/, menus.getItems()];
|
|
160
|
-
case 2: return [2 /*return*/, _b.apply(_a, [(_c.sent()).map(function (x) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
161
|
-
switch (_a.label) {
|
|
162
|
-
case 0: return [4 /*yield*/, x.getText()];
|
|
163
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
164
|
-
}
|
|
165
|
-
}); }); })])];
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
}); }, options)
|
|
169
|
-
.toContain(itemText)];
|
|
140
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdownMenu).toContainItemEx(itemText, options)];
|
|
170
141
|
case 1:
|
|
171
142
|
_a.sent();
|
|
172
143
|
return [2 /*return*/];
|
|
@@ -176,30 +147,9 @@ var DropdownMenuAssertions = /** @class */ (function (_super) {
|
|
|
176
147
|
};
|
|
177
148
|
DropdownMenuAssertions.prototype.notToContainItem = function (itemText, options) {
|
|
178
149
|
return __awaiter(this, void 0, void 0, function () {
|
|
179
|
-
var _this = this;
|
|
180
150
|
return __generator(this, function (_a) {
|
|
181
151
|
switch (_a.label) {
|
|
182
|
-
case 0: return [4 /*yield*/,
|
|
183
|
-
.poll(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
184
|
-
var menus, _a, _b;
|
|
185
|
-
var _this = this;
|
|
186
|
-
return __generator(this, function (_c) {
|
|
187
|
-
switch (_c.label) {
|
|
188
|
-
case 0: return [4 /*yield*/, this.dropdownMenu.getMenuItems()];
|
|
189
|
-
case 1:
|
|
190
|
-
menus = _c.sent();
|
|
191
|
-
_b = (_a = Promise).all;
|
|
192
|
-
return [4 /*yield*/, menus.getItems()];
|
|
193
|
-
case 2: return [2 /*return*/, _b.apply(_a, [(_c.sent()).map(function (x) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
194
|
-
switch (_a.label) {
|
|
195
|
-
case 0: return [4 /*yield*/, x.getText()];
|
|
196
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
197
|
-
}
|
|
198
|
-
}); }); })])];
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
}); }, options)
|
|
202
|
-
.not.toContain(itemText)];
|
|
152
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdownMenu).not.toContainItemEx(itemText, options)];
|
|
203
153
|
case 1:
|
|
204
154
|
_a.sent();
|
|
205
155
|
return [2 /*return*/];
|
|
@@ -211,7 +161,7 @@ var DropdownMenuAssertions = /** @class */ (function (_super) {
|
|
|
211
161
|
return __awaiter(this, void 0, void 0, function () {
|
|
212
162
|
return __generator(this, function (_a) {
|
|
213
163
|
switch (_a.label) {
|
|
214
|
-
case 0: return [4 /*yield*/, (0,
|
|
164
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdownMenu).toBeFocusedEx(options)];
|
|
215
165
|
case 1:
|
|
216
166
|
_a.sent();
|
|
217
167
|
return [2 /*return*/];
|
|
@@ -223,7 +173,7 @@ var DropdownMenuAssertions = /** @class */ (function (_super) {
|
|
|
223
173
|
return __awaiter(this, void 0, void 0, function () {
|
|
224
174
|
return __generator(this, function (_a) {
|
|
225
175
|
switch (_a.label) {
|
|
226
|
-
case 0: return [4 /*yield*/, (0,
|
|
176
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdownMenu).not.toBeFocusedEx(options)];
|
|
227
177
|
case 1:
|
|
228
178
|
_a.sent();
|
|
229
179
|
return [2 /*return*/];
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type { Locator } from '@playwright/test';
|
|
2
1
|
import { BaseComponentAssertions } from './BaseComponentAssertions';
|
|
3
2
|
import type { FileUploader } from '../components';
|
|
4
3
|
import type { EnabledOptions } from '../options';
|
|
5
4
|
export declare class FileUploaderAssertions extends BaseComponentAssertions {
|
|
6
5
|
private readonly fileUploader;
|
|
7
|
-
|
|
8
|
-
constructor(fileUploader: FileUploader, inputLocator: Locator);
|
|
6
|
+
constructor(fileUploader: FileUploader);
|
|
9
7
|
toBeEnabled(options?: EnabledOptions): Promise<void>;
|
|
10
8
|
toBeDisabled(options?: EnabledOptions): Promise<void>;
|
|
11
9
|
toContainUploadedFiles(fileNames: string[], options?: {
|
|
@@ -53,20 +53,19 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
54
|
exports.FileUploaderAssertions = void 0;
|
|
55
55
|
var BaseComponentAssertions_1 = require("./BaseComponentAssertions");
|
|
56
|
-
var
|
|
56
|
+
var extensions_1 = require("../extensions");
|
|
57
57
|
var FileUploaderAssertions = /** @class */ (function (_super) {
|
|
58
58
|
__extends(FileUploaderAssertions, _super);
|
|
59
|
-
function FileUploaderAssertions(fileUploader
|
|
59
|
+
function FileUploaderAssertions(fileUploader) {
|
|
60
60
|
var _this = _super.call(this, fileUploader) || this;
|
|
61
61
|
_this.fileUploader = fileUploader;
|
|
62
|
-
_this.inputLocator = inputLocator;
|
|
63
62
|
return _this;
|
|
64
63
|
}
|
|
65
64
|
FileUploaderAssertions.prototype.toBeEnabled = function (options) {
|
|
66
65
|
return __awaiter(this, void 0, void 0, function () {
|
|
67
66
|
return __generator(this, function (_a) {
|
|
68
67
|
switch (_a.label) {
|
|
69
|
-
case 0: return [4 /*yield*/, (0,
|
|
68
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fileUploader).toBeEnabledEx(options)];
|
|
70
69
|
case 1:
|
|
71
70
|
_a.sent();
|
|
72
71
|
return [2 /*return*/];
|
|
@@ -78,7 +77,7 @@ var FileUploaderAssertions = /** @class */ (function (_super) {
|
|
|
78
77
|
return __awaiter(this, void 0, void 0, function () {
|
|
79
78
|
return __generator(this, function (_a) {
|
|
80
79
|
switch (_a.label) {
|
|
81
|
-
case 0: return [4 /*yield*/, (0,
|
|
80
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fileUploader).toBeDisabledEx(options)];
|
|
82
81
|
case 1:
|
|
83
82
|
_a.sent();
|
|
84
83
|
return [2 /*return*/];
|
|
@@ -88,25 +87,9 @@ var FileUploaderAssertions = /** @class */ (function (_super) {
|
|
|
88
87
|
};
|
|
89
88
|
FileUploaderAssertions.prototype.toContainUploadedFiles = function (fileNames, options) {
|
|
90
89
|
return __awaiter(this, void 0, void 0, function () {
|
|
91
|
-
var expectedLower;
|
|
92
|
-
var _this = this;
|
|
93
90
|
return __generator(this, function (_a) {
|
|
94
91
|
switch (_a.label) {
|
|
95
|
-
case 0:
|
|
96
|
-
expectedLower = fileNames.map(function (name) { return name.toLowerCase(); });
|
|
97
|
-
return [4 /*yield*/, matchers_1.mergedExpects
|
|
98
|
-
.poll(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
99
|
-
var names;
|
|
100
|
-
return __generator(this, function (_a) {
|
|
101
|
-
switch (_a.label) {
|
|
102
|
-
case 0: return [4 /*yield*/, this.fileUploader.getUploadedFileNames()];
|
|
103
|
-
case 1:
|
|
104
|
-
names = _a.sent();
|
|
105
|
-
return [2 /*return*/, names.map(function (name) { return name.toLowerCase(); })];
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
}); }, options)
|
|
109
|
-
.toEqual(matchers_1.mergedExpects.arrayContaining(expectedLower))];
|
|
92
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fileUploader).toContainUploadedFilesEx(fileNames, options)];
|
|
110
93
|
case 1:
|
|
111
94
|
_a.sent();
|
|
112
95
|
return [2 /*return*/];
|
|
@@ -52,7 +52,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
52
52
|
};
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
54
|
exports.FxInputAssertions = void 0;
|
|
55
|
-
var
|
|
55
|
+
var extensions_1 = require("../extensions");
|
|
56
56
|
var BaseComponentAssertions_1 = require("./BaseComponentAssertions");
|
|
57
57
|
var FxInputAssertions = /** @class */ (function (_super) {
|
|
58
58
|
__extends(FxInputAssertions, _super);
|
|
@@ -65,7 +65,7 @@ var FxInputAssertions = /** @class */ (function (_super) {
|
|
|
65
65
|
return __awaiter(this, void 0, void 0, function () {
|
|
66
66
|
return __generator(this, function (_a) {
|
|
67
67
|
switch (_a.label) {
|
|
68
|
-
case 0: return [4 /*yield*/, (0,
|
|
68
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fxInput).toBeEnabledEx(options)];
|
|
69
69
|
case 1:
|
|
70
70
|
_a.sent();
|
|
71
71
|
return [2 /*return*/];
|
|
@@ -77,7 +77,7 @@ var FxInputAssertions = /** @class */ (function (_super) {
|
|
|
77
77
|
return __awaiter(this, void 0, void 0, function () {
|
|
78
78
|
return __generator(this, function (_a) {
|
|
79
79
|
switch (_a.label) {
|
|
80
|
-
case 0: return [4 /*yield*/, (0,
|
|
80
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fxInput).toBeDisabledEx(options)];
|
|
81
81
|
case 1:
|
|
82
82
|
_a.sent();
|
|
83
83
|
return [2 /*return*/];
|
|
@@ -89,7 +89,7 @@ var FxInputAssertions = /** @class */ (function (_super) {
|
|
|
89
89
|
return __awaiter(this, void 0, void 0, function () {
|
|
90
90
|
return __generator(this, function (_a) {
|
|
91
91
|
switch (_a.label) {
|
|
92
|
-
case 0: return [4 /*yield*/, (0,
|
|
92
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fxInput).toHaveValueEx(value, options)];
|
|
93
93
|
case 1:
|
|
94
94
|
_a.sent();
|
|
95
95
|
return [2 /*return*/];
|
|
@@ -101,7 +101,7 @@ var FxInputAssertions = /** @class */ (function (_super) {
|
|
|
101
101
|
return __awaiter(this, void 0, void 0, function () {
|
|
102
102
|
return __generator(this, function (_a) {
|
|
103
103
|
switch (_a.label) {
|
|
104
|
-
case 0: return [4 /*yield*/, (0,
|
|
104
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fxInput).not.toHaveValueEx(value, options)];
|
|
105
105
|
case 1:
|
|
106
106
|
_a.sent();
|
|
107
107
|
return [2 /*return*/];
|
|
@@ -113,7 +113,7 @@ var FxInputAssertions = /** @class */ (function (_super) {
|
|
|
113
113
|
return __awaiter(this, void 0, void 0, function () {
|
|
114
114
|
return __generator(this, function (_a) {
|
|
115
115
|
switch (_a.label) {
|
|
116
|
-
case 0: return [4 /*yield*/, (0,
|
|
116
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fxInput).toBeEmptyEx(options)];
|
|
117
117
|
case 1:
|
|
118
118
|
_a.sent();
|
|
119
119
|
return [2 /*return*/];
|
|
@@ -125,7 +125,7 @@ var FxInputAssertions = /** @class */ (function (_super) {
|
|
|
125
125
|
return __awaiter(this, void 0, void 0, function () {
|
|
126
126
|
return __generator(this, function (_a) {
|
|
127
127
|
switch (_a.label) {
|
|
128
|
-
case 0: return [4 /*yield*/, (0,
|
|
128
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fxInput).not.toBeEmptyEx(options)];
|
|
129
129
|
case 1:
|
|
130
130
|
_a.sent();
|
|
131
131
|
return [2 /*return*/];
|
|
@@ -137,7 +137,7 @@ var FxInputAssertions = /** @class */ (function (_super) {
|
|
|
137
137
|
return __awaiter(this, void 0, void 0, function () {
|
|
138
138
|
return __generator(this, function (_a) {
|
|
139
139
|
switch (_a.label) {
|
|
140
|
-
case 0: return [4 /*yield*/, (0,
|
|
140
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fxInput).toBeFocusedEx(options)];
|
|
141
141
|
case 1:
|
|
142
142
|
_a.sent();
|
|
143
143
|
return [2 /*return*/];
|
|
@@ -149,7 +149,7 @@ var FxInputAssertions = /** @class */ (function (_super) {
|
|
|
149
149
|
return __awaiter(this, void 0, void 0, function () {
|
|
150
150
|
return __generator(this, function (_a) {
|
|
151
151
|
switch (_a.label) {
|
|
152
|
-
case 0: return [4 /*yield*/, (0,
|
|
152
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fxInput).not.toBeFocusedEx(options)];
|
|
153
153
|
case 1:
|
|
154
154
|
_a.sent();
|
|
155
155
|
return [2 /*return*/];
|
|
@@ -161,11 +161,8 @@ var FxInputAssertions = /** @class */ (function (_super) {
|
|
|
161
161
|
return __awaiter(this, void 0, void 0, function () {
|
|
162
162
|
return __generator(this, function (_a) {
|
|
163
163
|
switch (_a.label) {
|
|
164
|
-
case 0: return [4 /*yield*/, this.fxInput.
|
|
164
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fxInput).toBeAutoEx()];
|
|
165
165
|
case 1:
|
|
166
|
-
_a.sent();
|
|
167
|
-
return [4 /*yield*/, (0, matchers_1.mergedExpects)(this.fxInput.autoButtonLocator).toBeHidden()];
|
|
168
|
-
case 2:
|
|
169
166
|
_a.sent();
|
|
170
167
|
return [2 /*return*/];
|
|
171
168
|
}
|
|
@@ -176,7 +173,7 @@ var FxInputAssertions = /** @class */ (function (_super) {
|
|
|
176
173
|
return __awaiter(this, void 0, void 0, function () {
|
|
177
174
|
return __generator(this, function (_a) {
|
|
178
175
|
switch (_a.label) {
|
|
179
|
-
case 0: return [4 /*yield*/, (0,
|
|
176
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fxInput).not.toBeAutoEx()];
|
|
180
177
|
case 1:
|
|
181
178
|
_a.sent();
|
|
182
179
|
return [2 /*return*/];
|
|
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
54
|
exports.InputAssertions = void 0;
|
|
55
55
|
var BaseComponentAssertions_1 = require("./BaseComponentAssertions");
|
|
56
|
-
var
|
|
56
|
+
var extensions_1 = require("../extensions");
|
|
57
57
|
var InputAssertions = /** @class */ (function (_super) {
|
|
58
58
|
__extends(InputAssertions, _super);
|
|
59
59
|
function InputAssertions(input) {
|
|
@@ -65,7 +65,7 @@ var InputAssertions = /** @class */ (function (_super) {
|
|
|
65
65
|
return __awaiter(this, void 0, void 0, function () {
|
|
66
66
|
return __generator(this, function (_a) {
|
|
67
67
|
switch (_a.label) {
|
|
68
|
-
case 0: return [4 /*yield*/, (0,
|
|
68
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.input).toBeEnabledEx(options)];
|
|
69
69
|
case 1:
|
|
70
70
|
_a.sent();
|
|
71
71
|
return [2 /*return*/];
|
|
@@ -77,7 +77,7 @@ var InputAssertions = /** @class */ (function (_super) {
|
|
|
77
77
|
return __awaiter(this, void 0, void 0, function () {
|
|
78
78
|
return __generator(this, function (_a) {
|
|
79
79
|
switch (_a.label) {
|
|
80
|
-
case 0: return [4 /*yield*/, (0,
|
|
80
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.input).toBeDisabledEx(options)];
|
|
81
81
|
case 1:
|
|
82
82
|
_a.sent();
|
|
83
83
|
return [2 /*return*/];
|
|
@@ -89,7 +89,7 @@ var InputAssertions = /** @class */ (function (_super) {
|
|
|
89
89
|
return __awaiter(this, void 0, void 0, function () {
|
|
90
90
|
return __generator(this, function (_a) {
|
|
91
91
|
switch (_a.label) {
|
|
92
|
-
case 0: return [4 /*yield*/, (0,
|
|
92
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.input).toHaveValueEx(value, options)];
|
|
93
93
|
case 1:
|
|
94
94
|
_a.sent();
|
|
95
95
|
return [2 /*return*/];
|
|
@@ -101,7 +101,7 @@ var InputAssertions = /** @class */ (function (_super) {
|
|
|
101
101
|
return __awaiter(this, void 0, void 0, function () {
|
|
102
102
|
return __generator(this, function (_a) {
|
|
103
103
|
switch (_a.label) {
|
|
104
|
-
case 0: return [4 /*yield*/, (0,
|
|
104
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.input).not.toHaveValueEx(value, options)];
|
|
105
105
|
case 1:
|
|
106
106
|
_a.sent();
|
|
107
107
|
return [2 /*return*/];
|
|
@@ -116,7 +116,7 @@ var InputAssertions = /** @class */ (function (_super) {
|
|
|
116
116
|
return __awaiter(this, void 0, void 0, function () {
|
|
117
117
|
return __generator(this, function (_a) {
|
|
118
118
|
switch (_a.label) {
|
|
119
|
-
case 0: return [4 /*yield*/, (0,
|
|
119
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.input).toHaveFormattedValueEx(value, options)];
|
|
120
120
|
case 1:
|
|
121
121
|
_a.sent();
|
|
122
122
|
return [2 /*return*/];
|
|
@@ -128,7 +128,7 @@ var InputAssertions = /** @class */ (function (_super) {
|
|
|
128
128
|
return __awaiter(this, void 0, void 0, function () {
|
|
129
129
|
return __generator(this, function (_a) {
|
|
130
130
|
switch (_a.label) {
|
|
131
|
-
case 0: return [4 /*yield*/, (0,
|
|
131
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.input).toBeEmptyEx(options)];
|
|
132
132
|
case 1:
|
|
133
133
|
_a.sent();
|
|
134
134
|
return [2 /*return*/];
|
|
@@ -140,7 +140,7 @@ var InputAssertions = /** @class */ (function (_super) {
|
|
|
140
140
|
return __awaiter(this, void 0, void 0, function () {
|
|
141
141
|
return __generator(this, function (_a) {
|
|
142
142
|
switch (_a.label) {
|
|
143
|
-
case 0: return [4 /*yield*/, (0,
|
|
143
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.input).not.toBeEmptyEx(options)];
|
|
144
144
|
case 1:
|
|
145
145
|
_a.sent();
|
|
146
146
|
return [2 /*return*/];
|
|
@@ -152,7 +152,7 @@ var InputAssertions = /** @class */ (function (_super) {
|
|
|
152
152
|
return __awaiter(this, void 0, void 0, function () {
|
|
153
153
|
return __generator(this, function (_a) {
|
|
154
154
|
switch (_a.label) {
|
|
155
|
-
case 0: return [4 /*yield*/, (0,
|
|
155
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.input).toBeFocusedEx(options)];
|
|
156
156
|
case 1:
|
|
157
157
|
_a.sent();
|
|
158
158
|
return [2 /*return*/];
|
|
@@ -164,7 +164,7 @@ var InputAssertions = /** @class */ (function (_super) {
|
|
|
164
164
|
return __awaiter(this, void 0, void 0, function () {
|
|
165
165
|
return __generator(this, function (_a) {
|
|
166
166
|
switch (_a.label) {
|
|
167
|
-
case 0: return [4 /*yield*/, (0,
|
|
167
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.input).not.toBeFocusedEx(options)];
|
|
168
168
|
case 1:
|
|
169
169
|
_a.sent();
|
|
170
170
|
return [2 /*return*/];
|
|
@@ -53,8 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
54
|
exports.KebabAssertions = void 0;
|
|
55
55
|
var BaseComponentAssertions_1 = require("./BaseComponentAssertions");
|
|
56
|
-
var
|
|
57
|
-
var matchers_1 = require("../matchers");
|
|
56
|
+
var extensions_1 = require("../extensions");
|
|
58
57
|
var KebabAssertions = /** @class */ (function (_super) {
|
|
59
58
|
__extends(KebabAssertions, _super);
|
|
60
59
|
function KebabAssertions(kebab) {
|
|
@@ -66,7 +65,7 @@ var KebabAssertions = /** @class */ (function (_super) {
|
|
|
66
65
|
return __awaiter(this, void 0, void 0, function () {
|
|
67
66
|
return __generator(this, function (_a) {
|
|
68
67
|
switch (_a.label) {
|
|
69
|
-
case 0: return [4 /*yield*/, this.kebab
|
|
68
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.kebab).toBeEnabledEx(options)];
|
|
70
69
|
case 1:
|
|
71
70
|
_a.sent();
|
|
72
71
|
return [2 /*return*/];
|
|
@@ -78,7 +77,7 @@ var KebabAssertions = /** @class */ (function (_super) {
|
|
|
78
77
|
return __awaiter(this, void 0, void 0, function () {
|
|
79
78
|
return __generator(this, function (_a) {
|
|
80
79
|
switch (_a.label) {
|
|
81
|
-
case 0: return [4 /*yield*/, this.kebab
|
|
80
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.kebab).toBeDisabledEx(options)];
|
|
82
81
|
case 1:
|
|
83
82
|
_a.sent();
|
|
84
83
|
return [2 /*return*/];
|
|
@@ -88,14 +87,10 @@ var KebabAssertions = /** @class */ (function (_super) {
|
|
|
88
87
|
};
|
|
89
88
|
KebabAssertions.prototype.toHaveItems = function (itemsText, options) {
|
|
90
89
|
return __awaiter(this, void 0, void 0, function () {
|
|
91
|
-
var itemsLocator;
|
|
92
90
|
return __generator(this, function (_a) {
|
|
93
91
|
switch (_a.label) {
|
|
94
|
-
case 0: return [4 /*yield*/, this.kebab.
|
|
92
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.kebab).toHaveItemsEx(itemsText, options)];
|
|
95
93
|
case 1:
|
|
96
|
-
itemsLocator = (_a.sent()).itemsLocator;
|
|
97
|
-
return [4 /*yield*/, (0, matchers_1.mergedExpects)(itemsLocator).toHaveText(itemsText, options)];
|
|
98
|
-
case 2:
|
|
99
94
|
_a.sent();
|
|
100
95
|
return [2 /*return*/];
|
|
101
96
|
}
|
|
@@ -104,14 +99,10 @@ var KebabAssertions = /** @class */ (function (_super) {
|
|
|
104
99
|
};
|
|
105
100
|
KebabAssertions.prototype.toContainItems = function (itemsText, options) {
|
|
106
101
|
return __awaiter(this, void 0, void 0, function () {
|
|
107
|
-
var itemsLocator;
|
|
108
102
|
return __generator(this, function (_a) {
|
|
109
103
|
switch (_a.label) {
|
|
110
|
-
case 0: return [4 /*yield*/, this.kebab.
|
|
104
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.kebab).toContainItemsEx(itemsText, options)];
|
|
111
105
|
case 1:
|
|
112
|
-
itemsLocator = (_a.sent()).itemsLocator;
|
|
113
|
-
return [4 /*yield*/, (0, matchers_1.mergedExpects)(itemsLocator).toContainText(itemsText, options)];
|
|
114
|
-
case 2:
|
|
115
106
|
_a.sent();
|
|
116
107
|
return [2 /*return*/];
|
|
117
108
|
}
|
|
@@ -120,30 +111,9 @@ var KebabAssertions = /** @class */ (function (_super) {
|
|
|
120
111
|
};
|
|
121
112
|
KebabAssertions.prototype.toContainItem = function (itemText, options) {
|
|
122
113
|
return __awaiter(this, void 0, void 0, function () {
|
|
123
|
-
var _this = this;
|
|
124
114
|
return __generator(this, function (_a) {
|
|
125
115
|
switch (_a.label) {
|
|
126
|
-
case 0: return [4 /*yield*/,
|
|
127
|
-
.poll(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
128
|
-
var menus, _a, _b;
|
|
129
|
-
var _this = this;
|
|
130
|
-
return __generator(this, function (_c) {
|
|
131
|
-
switch (_c.label) {
|
|
132
|
-
case 0: return [4 /*yield*/, this.kebab.getMenuItems()];
|
|
133
|
-
case 1:
|
|
134
|
-
menus = _c.sent();
|
|
135
|
-
_b = (_a = Promise).all;
|
|
136
|
-
return [4 /*yield*/, menus.getItems()];
|
|
137
|
-
case 2: return [2 /*return*/, _b.apply(_a, [(_c.sent()).map(function (x) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
138
|
-
switch (_a.label) {
|
|
139
|
-
case 0: return [4 /*yield*/, x.getText()];
|
|
140
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
141
|
-
}
|
|
142
|
-
}); }); })])];
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
}); }, options)
|
|
146
|
-
.toContain(itemText)];
|
|
116
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.kebab).toContainItemEx(itemText, options)];
|
|
147
117
|
case 1:
|
|
148
118
|
_a.sent();
|
|
149
119
|
return [2 /*return*/];
|
|
@@ -153,30 +123,9 @@ var KebabAssertions = /** @class */ (function (_super) {
|
|
|
153
123
|
};
|
|
154
124
|
KebabAssertions.prototype.notToContainItem = function (itemText, options) {
|
|
155
125
|
return __awaiter(this, void 0, void 0, function () {
|
|
156
|
-
var _this = this;
|
|
157
126
|
return __generator(this, function (_a) {
|
|
158
127
|
switch (_a.label) {
|
|
159
|
-
case 0: return [4 /*yield*/,
|
|
160
|
-
.poll(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
161
|
-
var menus, _a, _b;
|
|
162
|
-
var _this = this;
|
|
163
|
-
return __generator(this, function (_c) {
|
|
164
|
-
switch (_c.label) {
|
|
165
|
-
case 0: return [4 /*yield*/, this.kebab.getMenuItems()];
|
|
166
|
-
case 1:
|
|
167
|
-
menus = _c.sent();
|
|
168
|
-
_b = (_a = Promise).all;
|
|
169
|
-
return [4 /*yield*/, menus.getItems()];
|
|
170
|
-
case 2: return [2 /*return*/, _b.apply(_a, [(_c.sent()).map(function (x) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
171
|
-
switch (_a.label) {
|
|
172
|
-
case 0: return [4 /*yield*/, x.getText()];
|
|
173
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
174
|
-
}
|
|
175
|
-
}); }); })])];
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
}); }, options)
|
|
179
|
-
.not.toContain(itemText)];
|
|
128
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.kebab).not.toContainItemEx(itemText, options)];
|
|
180
129
|
case 1:
|
|
181
130
|
_a.sent();
|
|
182
131
|
return [2 /*return*/];
|
|
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
54
|
exports.LabelAssertions = void 0;
|
|
55
55
|
var BaseComponentAssertions_1 = require("./BaseComponentAssertions");
|
|
56
|
-
var
|
|
56
|
+
var extensions_1 = require("../extensions");
|
|
57
57
|
var LabelAssertions = /** @class */ (function (_super) {
|
|
58
58
|
__extends(LabelAssertions, _super);
|
|
59
59
|
function LabelAssertions(label) {
|
|
@@ -65,7 +65,7 @@ var LabelAssertions = /** @class */ (function (_super) {
|
|
|
65
65
|
return __awaiter(this, void 0, void 0, function () {
|
|
66
66
|
return __generator(this, function (_a) {
|
|
67
67
|
switch (_a.label) {
|
|
68
|
-
case 0: return [4 /*yield*/, (0,
|
|
68
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.label).toHaveTextEx(text, options)];
|
|
69
69
|
case 1:
|
|
70
70
|
_a.sent();
|
|
71
71
|
return [2 /*return*/];
|
|
@@ -77,7 +77,7 @@ var LabelAssertions = /** @class */ (function (_super) {
|
|
|
77
77
|
return __awaiter(this, void 0, void 0, function () {
|
|
78
78
|
return __generator(this, function (_a) {
|
|
79
79
|
switch (_a.label) {
|
|
80
|
-
case 0: return [4 /*yield*/, (0,
|
|
80
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.label).not.toHaveTextEx(text, options)];
|
|
81
81
|
case 1:
|
|
82
82
|
_a.sent();
|
|
83
83
|
return [2 /*return*/];
|
|
@@ -89,7 +89,7 @@ var LabelAssertions = /** @class */ (function (_super) {
|
|
|
89
89
|
return __awaiter(this, void 0, void 0, function () {
|
|
90
90
|
return __generator(this, function (_a) {
|
|
91
91
|
switch (_a.label) {
|
|
92
|
-
case 0: return [4 /*yield*/, (0,
|
|
92
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.label).toContainTextEx(text, options)];
|
|
93
93
|
case 1:
|
|
94
94
|
_a.sent();
|
|
95
95
|
return [2 /*return*/];
|
|
@@ -101,7 +101,7 @@ var LabelAssertions = /** @class */ (function (_super) {
|
|
|
101
101
|
return __awaiter(this, void 0, void 0, function () {
|
|
102
102
|
return __generator(this, function (_a) {
|
|
103
103
|
switch (_a.label) {
|
|
104
|
-
case 0: return [4 /*yield*/, (0,
|
|
104
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.label).not.toContainTextEx(text, options)];
|
|
105
105
|
case 1:
|
|
106
106
|
_a.sent();
|
|
107
107
|
return [2 /*return*/];
|
|
@@ -116,7 +116,7 @@ var LabelAssertions = /** @class */ (function (_super) {
|
|
|
116
116
|
return __awaiter(this, void 0, void 0, function () {
|
|
117
117
|
return __generator(this, function (_a) {
|
|
118
118
|
switch (_a.label) {
|
|
119
|
-
case 0: return [4 /*yield*/, (0,
|
|
119
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.label).toHaveFormattedTextEx(text, options)];
|
|
120
120
|
case 1:
|
|
121
121
|
_a.sent();
|
|
122
122
|
return [2 /*return*/];
|
|
@@ -131,7 +131,7 @@ var LabelAssertions = /** @class */ (function (_super) {
|
|
|
131
131
|
return __awaiter(this, void 0, void 0, function () {
|
|
132
132
|
return __generator(this, function (_a) {
|
|
133
133
|
switch (_a.label) {
|
|
134
|
-
case 0: return [4 /*yield*/, (0,
|
|
134
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.label).toContainFormattedTextEx(text, options)];
|
|
135
135
|
case 1:
|
|
136
136
|
_a.sent();
|
|
137
137
|
return [2 /*return*/];
|