@skbkontur/playwright-react-ui-components 1.14.0-beta.1 → 1.14.0-beta.2
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 +1 -1
- package/build/src/assertions/CheckboxAssertions.js +1 -1
- package/build/src/assertions/ComboBoxAssertions.js +4 -4
- package/build/src/assertions/DropdownAssertions.js +4 -4
- package/build/src/assertions/DropdownMenuAssertions.js +4 -4
- package/build/src/assertions/FileUploaderAssertions.js +1 -1
- package/build/src/assertions/FxInputAssertions.js +2 -2
- package/build/src/assertions/InputAssertions.js +1 -1
- package/build/src/assertions/KebabAssertions.js +4 -4
- package/build/src/assertions/LabelAssertions.js +2 -2
- package/build/src/assertions/LinkAssertions.js +2 -2
- package/build/src/assertions/PagingAssertions.js +2 -2
- package/build/src/assertions/RadioGroupAssertions.js +6 -6
- package/build/src/assertions/SelectAssertions.js +2 -2
- package/build/src/assertions/TabAssertions.js +2 -2
- package/build/src/assertions/TabsAssertions.js +3 -3
- package/build/src/assertions/TokenAssertions.js +1 -1
- package/build/src/assertions/TokenInputAssertions.js +1 -1
- package/build/src/components/ComboBox.d.ts +1 -2
- package/build/src/components/ComboBox.js +53 -54
- package/build/src/components/Dropdown.d.ts +1 -2
- package/build/src/components/Dropdown.js +61 -62
- package/build/src/components/DropdownMenu.d.ts +1 -2
- package/build/src/components/DropdownMenu.js +61 -62
- package/build/src/components/Kebab.d.ts +1 -2
- package/build/src/components/Kebab.js +43 -44
- package/build/src/components/MenuComponent.d.ts +2 -1
- package/build/src/components/MenuComponent.js +6 -5
- package/build/src/matchers/component/toBeActiveTab.d.ts +3 -0
- package/build/src/matchers/component/{toBeActiveEx.js → toBeActiveTab.js} +2 -2
- package/build/src/matchers/component/toBeAutoMode.d.ts +3 -0
- package/build/src/matchers/component/{toBeAutoEx.js → toBeAutoMode.js} +2 -2
- package/build/src/matchers/component/toBeCheckedByIndex.d.ts +3 -0
- package/build/src/matchers/component/{toBeUncheckedByIndexEx.js → toBeCheckedByIndex.js} +4 -4
- package/build/src/matchers/component/toBeCheckedByText.d.ts +3 -0
- package/build/src/matchers/component/{toBeCheckedByTextEx.js → toBeCheckedByText.js} +2 -2
- package/build/src/matchers/component/toBeCheckedByValue.d.ts +3 -0
- package/build/src/matchers/component/{toBeCheckedByValueEx.js → toBeCheckedByValue.js} +2 -2
- package/build/src/matchers/component/toBeDisabledEx.d.ts +1 -1
- package/build/src/matchers/component/toBeDisabledEx.js +7 -8
- package/build/src/matchers/component/toBeEmptyEx.d.ts +1 -1
- package/build/src/matchers/component/toBeEmptyEx.js +4 -5
- package/build/src/matchers/component/toBeEnabledEx.js +15 -25
- package/build/src/matchers/component/toBeHiddenEx.js +1 -2
- package/build/src/matchers/component/toBeInactiveTab.d.ts +3 -0
- package/build/src/matchers/component/{toBeInactiveEx.js → toBeInactiveTab.js} +2 -2
- package/build/src/matchers/component/toBeUnchecked.d.ts +3 -0
- package/build/src/matchers/component/{toBeUncheckedEx.js → toBeUnchecked.js} +2 -2
- package/build/src/matchers/component/{toBeCheckedByIndexEx.d.ts → toBeUncheckedByIndex.d.ts} +2 -2
- package/build/src/matchers/component/{toBeCheckedByIndexEx.js → toBeUncheckedByIndex.js} +4 -4
- package/build/src/matchers/component/{toBeCheckedByTextEx.d.ts → toBeUncheckedByText.d.ts} +2 -2
- package/build/src/matchers/component/{toBeUncheckedByTextEx.js → toBeUncheckedByText.js} +3 -3
- package/build/src/matchers/component/{toBeCheckedByValueEx.d.ts → toBeUncheckedByValue.d.ts} +2 -2
- package/build/src/matchers/component/{toBeUncheckedByValueEx.js → toBeUncheckedByValue.js} +3 -3
- package/build/src/matchers/component/toBeVisibleEx.js +1 -2
- package/build/src/matchers/component/toContainFormattedText.d.ts +3 -0
- package/build/src/matchers/component/{toContainFormattedTextEx.js → toContainFormattedText.js} +2 -2
- package/build/src/matchers/component/toContainItem.d.ts +4 -0
- package/build/src/matchers/component/{toContainItemEx.js → toContainItem.js} +2 -3
- package/build/src/matchers/component/toContainItems.d.ts +3 -0
- package/build/src/matchers/component/{toContainItemsEx.js → toContainItems.js} +4 -4
- package/build/src/matchers/component/toContainSelectValue.d.ts +3 -0
- package/build/src/matchers/component/{toContainValueEx.js → toContainSelectValue.js} +2 -2
- package/build/src/matchers/component/toContainTabs.d.ts +3 -0
- package/build/src/matchers/component/{toContainTabsEx.js → toContainTabs.js} +2 -2
- package/build/src/matchers/component/{toContainTokensEx.d.ts → toContainTokens.d.ts} +1 -1
- package/build/src/matchers/component/{toContainTokensEx.js → toContainTokens.js} +2 -2
- package/build/src/matchers/component/toContainUploadedFiles.d.ts +4 -0
- package/build/src/matchers/component/{toContainUploadedFilesEx.js → toContainUploadedFiles.js} +2 -2
- package/build/src/matchers/component/{toHavePageCountEx.d.ts → toHaveActivePage.d.ts} +1 -1
- package/build/src/matchers/component/{toHaveActivePageEx.js → toHaveActivePage.js} +2 -2
- package/build/src/matchers/component/toHaveActiveTab.d.ts +2 -0
- package/build/src/matchers/component/{toHaveActiveTabEx.js → toHaveActiveTab.js} +4 -4
- package/build/src/matchers/component/toHaveError.d.ts +3 -0
- package/build/src/matchers/component/{toHaveWarningEx.js → toHaveError.js} +3 -3
- package/build/src/matchers/component/toHaveFormattedText.d.ts +3 -0
- package/build/src/matchers/component/{toHaveFormattedTextEx.js → toHaveFormattedText.js} +2 -2
- package/build/src/matchers/component/toHaveFormattedValue.d.ts +3 -0
- package/build/src/matchers/component/{toHaveFormattedValueEx.js → toHaveFormattedValue.js} +2 -2
- package/build/src/matchers/component/toHaveHref.d.ts +3 -0
- package/build/src/matchers/component/{toHaveHrefEx.js → toHaveHref.js} +2 -2
- package/build/src/matchers/component/toHaveItems.d.ts +3 -0
- package/build/src/matchers/component/{toHaveItemsEx.js → toHaveItems.js} +4 -4
- package/build/src/matchers/component/{toHaveActivePageEx.d.ts → toHavePageCount.d.ts} +1 -1
- package/build/src/matchers/component/{toHavePageCountEx.js → toHavePageCount.js} +2 -2
- package/build/src/matchers/component/toHaveValueEx.d.ts +1 -1
- package/build/src/matchers/component/toHaveValueEx.js +4 -5
- package/build/src/matchers/component/{toHaveErrorEx.d.ts → toHaveWarning.d.ts} +2 -2
- package/build/src/matchers/component/{toHaveErrorEx.js → toHaveWarning.js} +3 -3
- package/build/src/matchers/componentMatchers.d.ts +76 -76
- package/build/src/matchers/componentMatchers.js +61 -55
- package/build/src/matchers/createAsyncMatcher.d.ts +35 -10
- package/build/src/matchers/createAsyncMatcher.js +38 -13
- package/build/src/utils/toMatchMessage.d.ts +11 -0
- package/build/src/utils/toMatchMessage.js +11 -0
- package/package.json +1 -1
- package/build/src/matchers/component/toBeActiveEx.d.ts +0 -3
- package/build/src/matchers/component/toBeAutoEx.d.ts +0 -3
- package/build/src/matchers/component/toBeInactiveEx.d.ts +0 -3
- package/build/src/matchers/component/toBeUncheckedByIndexEx.d.ts +0 -3
- package/build/src/matchers/component/toBeUncheckedByTextEx.d.ts +0 -3
- package/build/src/matchers/component/toBeUncheckedByValueEx.d.ts +0 -3
- package/build/src/matchers/component/toBeUncheckedEx.d.ts +0 -3
- package/build/src/matchers/component/toContainFormattedTextEx.d.ts +0 -3
- package/build/src/matchers/component/toContainItemEx.d.ts +0 -4
- package/build/src/matchers/component/toContainItemsEx.d.ts +0 -3
- package/build/src/matchers/component/toContainTabsEx.d.ts +0 -3
- package/build/src/matchers/component/toContainUploadedFilesEx.d.ts +0 -4
- package/build/src/matchers/component/toContainValueEx.d.ts +0 -3
- package/build/src/matchers/component/toHaveActiveTabEx.d.ts +0 -2
- package/build/src/matchers/component/toHaveFormattedTextEx.d.ts +0 -3
- package/build/src/matchers/component/toHaveFormattedValueEx.d.ts +0 -3
- package/build/src/matchers/component/toHaveHrefEx.d.ts +0 -3
- package/build/src/matchers/component/toHaveItemsEx.d.ts +0 -3
- package/build/src/matchers/component/toHaveWarningEx.d.ts +0 -3
- package/build/src/utils/is.d.ts +0 -3
- package/build/src/utils/is.js +0 -5
|
@@ -116,7 +116,7 @@ var AutocompleteAssertions = /** @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, extensions_1.expect)(this.autocomplete).
|
|
119
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.autocomplete).toHaveFormattedValue(value, options)];
|
|
120
120
|
case 1:
|
|
121
121
|
_a.sent();
|
|
122
122
|
return [2 /*return*/];
|
|
@@ -101,7 +101,7 @@ var CheckboxAssertions = /** @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, extensions_1.expect)(this.checkbox).
|
|
104
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.checkbox).toBeUnchecked(options)];
|
|
105
105
|
case 1:
|
|
106
106
|
_a.sent();
|
|
107
107
|
return [2 /*return*/];
|
|
@@ -137,7 +137,7 @@ var ComboBoxAssertions = /** @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, extensions_1.expect)(this.comboBox).
|
|
140
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.comboBox).toHaveItems(itemsText, options)];
|
|
141
141
|
case 1:
|
|
142
142
|
_a.sent();
|
|
143
143
|
return [2 /*return*/];
|
|
@@ -149,7 +149,7 @@ var ComboBoxAssertions = /** @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, extensions_1.expect)(this.comboBox).
|
|
152
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.comboBox).toContainItems(itemsText, options)];
|
|
153
153
|
case 1:
|
|
154
154
|
_a.sent();
|
|
155
155
|
return [2 /*return*/];
|
|
@@ -161,7 +161,7 @@ var ComboBoxAssertions = /** @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*/, (0, extensions_1.expect)(this.comboBox).
|
|
164
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.comboBox).toContainItem(itemText, options)];
|
|
165
165
|
case 1:
|
|
166
166
|
_a.sent();
|
|
167
167
|
return [2 /*return*/];
|
|
@@ -173,7 +173,7 @@ var ComboBoxAssertions = /** @class */ (function (_super) {
|
|
|
173
173
|
return __awaiter(this, void 0, void 0, function () {
|
|
174
174
|
return __generator(this, function (_a) {
|
|
175
175
|
switch (_a.label) {
|
|
176
|
-
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.comboBox).not.
|
|
176
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.comboBox).not.toContainItem(itemText, options)];
|
|
177
177
|
case 1:
|
|
178
178
|
_a.sent();
|
|
179
179
|
return [2 /*return*/];
|
|
@@ -137,7 +137,7 @@ var DropdownAssertions = /** @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, extensions_1.expect)(this.dropdown).
|
|
140
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdown).toHaveItems(itemsText, options)];
|
|
141
141
|
case 1:
|
|
142
142
|
_a.sent();
|
|
143
143
|
return [2 /*return*/];
|
|
@@ -149,7 +149,7 @@ var DropdownAssertions = /** @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, extensions_1.expect)(this.dropdown).
|
|
152
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdown).toContainItems(itemsText, options)];
|
|
153
153
|
case 1:
|
|
154
154
|
_a.sent();
|
|
155
155
|
return [2 /*return*/];
|
|
@@ -161,7 +161,7 @@ var DropdownAssertions = /** @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*/, (0, extensions_1.expect)(this.dropdown).
|
|
164
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdown).toContainItem(itemText, options)];
|
|
165
165
|
case 1:
|
|
166
166
|
_a.sent();
|
|
167
167
|
return [2 /*return*/];
|
|
@@ -173,7 +173,7 @@ var DropdownAssertions = /** @class */ (function (_super) {
|
|
|
173
173
|
return __awaiter(this, void 0, void 0, function () {
|
|
174
174
|
return __generator(this, function (_a) {
|
|
175
175
|
switch (_a.label) {
|
|
176
|
-
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdown).not.
|
|
176
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdown).not.toContainItem(itemText, options)];
|
|
177
177
|
case 1:
|
|
178
178
|
_a.sent();
|
|
179
179
|
return [2 /*return*/];
|
|
@@ -113,7 +113,7 @@ var DropdownMenuAssertions = /** @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, extensions_1.expect)(this.dropdownMenu).
|
|
116
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdownMenu).toHaveItems(itemsText, options)];
|
|
117
117
|
case 1:
|
|
118
118
|
_a.sent();
|
|
119
119
|
return [2 /*return*/];
|
|
@@ -125,7 +125,7 @@ var DropdownMenuAssertions = /** @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, extensions_1.expect)(this.dropdownMenu).
|
|
128
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdownMenu).toContainItems(itemsText, options)];
|
|
129
129
|
case 1:
|
|
130
130
|
_a.sent();
|
|
131
131
|
return [2 /*return*/];
|
|
@@ -137,7 +137,7 @@ var DropdownMenuAssertions = /** @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, extensions_1.expect)(this.dropdownMenu).
|
|
140
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdownMenu).toContainItem(itemText, options)];
|
|
141
141
|
case 1:
|
|
142
142
|
_a.sent();
|
|
143
143
|
return [2 /*return*/];
|
|
@@ -149,7 +149,7 @@ var DropdownMenuAssertions = /** @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, extensions_1.expect)(this.dropdownMenu).not.
|
|
152
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.dropdownMenu).not.toContainItem(itemText, options)];
|
|
153
153
|
case 1:
|
|
154
154
|
_a.sent();
|
|
155
155
|
return [2 /*return*/];
|
|
@@ -89,7 +89,7 @@ var FileUploaderAssertions = /** @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, extensions_1.expect)(this.fileUploader).
|
|
92
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fileUploader).toContainUploadedFiles(fileNames, options)];
|
|
93
93
|
case 1:
|
|
94
94
|
_a.sent();
|
|
95
95
|
return [2 /*return*/];
|
|
@@ -161,7 +161,7 @@ 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*/, (0, extensions_1.expect)(this.fxInput).
|
|
164
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fxInput).toBeAutoMode()];
|
|
165
165
|
case 1:
|
|
166
166
|
_a.sent();
|
|
167
167
|
return [2 /*return*/];
|
|
@@ -173,7 +173,7 @@ var FxInputAssertions = /** @class */ (function (_super) {
|
|
|
173
173
|
return __awaiter(this, void 0, void 0, function () {
|
|
174
174
|
return __generator(this, function (_a) {
|
|
175
175
|
switch (_a.label) {
|
|
176
|
-
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fxInput).not.
|
|
176
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.fxInput).not.toBeAutoMode()];
|
|
177
177
|
case 1:
|
|
178
178
|
_a.sent();
|
|
179
179
|
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, extensions_1.expect)(this.input).
|
|
119
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.input).toHaveFormattedValue(value, options)];
|
|
120
120
|
case 1:
|
|
121
121
|
_a.sent();
|
|
122
122
|
return [2 /*return*/];
|
|
@@ -89,7 +89,7 @@ var KebabAssertions = /** @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, extensions_1.expect)(this.kebab).
|
|
92
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.kebab).toHaveItems(itemsText, options)];
|
|
93
93
|
case 1:
|
|
94
94
|
_a.sent();
|
|
95
95
|
return [2 /*return*/];
|
|
@@ -101,7 +101,7 @@ var KebabAssertions = /** @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, extensions_1.expect)(this.kebab).
|
|
104
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.kebab).toContainItems(itemsText, options)];
|
|
105
105
|
case 1:
|
|
106
106
|
_a.sent();
|
|
107
107
|
return [2 /*return*/];
|
|
@@ -113,7 +113,7 @@ var KebabAssertions = /** @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, extensions_1.expect)(this.kebab).
|
|
116
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.kebab).toContainItem(itemText, options)];
|
|
117
117
|
case 1:
|
|
118
118
|
_a.sent();
|
|
119
119
|
return [2 /*return*/];
|
|
@@ -125,7 +125,7 @@ var KebabAssertions = /** @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, extensions_1.expect)(this.kebab).not.
|
|
128
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.kebab).not.toContainItem(itemText, options)];
|
|
129
129
|
case 1:
|
|
130
130
|
_a.sent();
|
|
131
131
|
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, extensions_1.expect)(this.label).
|
|
119
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.label).toHaveFormattedText(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, extensions_1.expect)(this.label).
|
|
134
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.label).toContainFormattedText(text, options)];
|
|
135
135
|
case 1:
|
|
136
136
|
_a.sent();
|
|
137
137
|
return [2 /*return*/];
|
|
@@ -137,7 +137,7 @@ var LinkAssertions = /** @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, extensions_1.expect)(this.link).
|
|
140
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.link).toHaveHref(href, options)];
|
|
141
141
|
case 1:
|
|
142
142
|
_a.sent();
|
|
143
143
|
return [2 /*return*/];
|
|
@@ -149,7 +149,7 @@ var LinkAssertions = /** @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, extensions_1.expect)(this.link).not.
|
|
152
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.link).not.toHaveHref(href, options)];
|
|
153
153
|
case 1:
|
|
154
154
|
_a.sent();
|
|
155
155
|
return [2 /*return*/];
|
|
@@ -89,7 +89,7 @@ var PagingAssertions = /** @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, extensions_1.expect)(this.paging).
|
|
92
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.paging).toHavePageCount(count, options)];
|
|
93
93
|
case 1:
|
|
94
94
|
_a.sent();
|
|
95
95
|
return [2 /*return*/];
|
|
@@ -101,7 +101,7 @@ var PagingAssertions = /** @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, extensions_1.expect)(this.paging).
|
|
104
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.paging).toHaveActivePage(activePageNumber, options)];
|
|
105
105
|
case 1:
|
|
106
106
|
_a.sent();
|
|
107
107
|
return [2 /*return*/];
|
|
@@ -65,7 +65,7 @@ var RadioGroupAssertions = /** @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, extensions_1.expect)(this.radioGroup).
|
|
68
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.radioGroup).toBeCheckedByValue(value, options)];
|
|
69
69
|
case 1:
|
|
70
70
|
_a.sent();
|
|
71
71
|
return [2 /*return*/];
|
|
@@ -77,7 +77,7 @@ var RadioGroupAssertions = /** @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, extensions_1.expect)(this.radioGroup).
|
|
80
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.radioGroup).toBeCheckedByIndex(index, options)];
|
|
81
81
|
case 1:
|
|
82
82
|
_a.sent();
|
|
83
83
|
return [2 /*return*/];
|
|
@@ -89,7 +89,7 @@ var RadioGroupAssertions = /** @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, extensions_1.expect)(this.radioGroup).
|
|
92
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.radioGroup).toBeCheckedByText(text, options)];
|
|
93
93
|
case 1:
|
|
94
94
|
_a.sent();
|
|
95
95
|
return [2 /*return*/];
|
|
@@ -101,7 +101,7 @@ var RadioGroupAssertions = /** @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, extensions_1.expect)(this.radioGroup).
|
|
104
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.radioGroup).toBeUncheckedByValue(value, options)];
|
|
105
105
|
case 1:
|
|
106
106
|
_a.sent();
|
|
107
107
|
return [2 /*return*/];
|
|
@@ -113,7 +113,7 @@ var RadioGroupAssertions = /** @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, extensions_1.expect)(this.radioGroup).
|
|
116
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.radioGroup).toBeUncheckedByIndex(index, options)];
|
|
117
117
|
case 1:
|
|
118
118
|
_a.sent();
|
|
119
119
|
return [2 /*return*/];
|
|
@@ -125,7 +125,7 @@ var RadioGroupAssertions = /** @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, extensions_1.expect)(this.radioGroup).
|
|
128
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.radioGroup).toBeUncheckedByText(text, options)];
|
|
129
129
|
case 1:
|
|
130
130
|
_a.sent();
|
|
131
131
|
return [2 /*return*/];
|
|
@@ -113,7 +113,7 @@ var SelectAssertions = /** @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, extensions_1.expect)(this.select).
|
|
116
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.select).toContainSelectValue(value, options)];
|
|
117
117
|
case 1:
|
|
118
118
|
_a.sent();
|
|
119
119
|
return [2 /*return*/];
|
|
@@ -125,7 +125,7 @@ var SelectAssertions = /** @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, extensions_1.expect)(this.select).not.
|
|
128
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.select).not.toContainSelectValue(value, options)];
|
|
129
129
|
case 1:
|
|
130
130
|
_a.sent();
|
|
131
131
|
return [2 /*return*/];
|
|
@@ -137,7 +137,7 @@ var TabAssertions = /** @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, extensions_1.expect)(this.tab).
|
|
140
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.tab).toBeActiveTab(options)];
|
|
141
141
|
case 1:
|
|
142
142
|
_a.sent();
|
|
143
143
|
return [2 /*return*/];
|
|
@@ -149,7 +149,7 @@ var TabAssertions = /** @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, extensions_1.expect)(this.tab).
|
|
152
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.tab).toBeInactiveTab(options)];
|
|
153
153
|
case 1:
|
|
154
154
|
_a.sent();
|
|
155
155
|
return [2 /*return*/];
|
|
@@ -65,7 +65,7 @@ var TabsAssertions = /** @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, extensions_1.expect)(this.tabs).
|
|
68
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.tabs).toHaveActiveTab(tabName)];
|
|
69
69
|
case 1:
|
|
70
70
|
_a.sent();
|
|
71
71
|
return [2 /*return*/];
|
|
@@ -77,7 +77,7 @@ var TabsAssertions = /** @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, extensions_1.expect)(this.tabs).not.
|
|
80
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.tabs).not.toHaveActiveTab(tabName)];
|
|
81
81
|
case 1:
|
|
82
82
|
_a.sent();
|
|
83
83
|
return [2 /*return*/];
|
|
@@ -89,7 +89,7 @@ var TabsAssertions = /** @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, extensions_1.expect)(this.tabs).
|
|
92
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.tabs).toContainTabs(tabNames, options)];
|
|
93
93
|
case 1:
|
|
94
94
|
_a.sent();
|
|
95
95
|
return [2 /*return*/];
|
|
@@ -116,7 +116,7 @@ var TokenAssertions = /** @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, extensions_1.expect)(this.token).
|
|
119
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.token).toHaveFormattedText(text, options)];
|
|
120
120
|
case 1:
|
|
121
121
|
_a.sent();
|
|
122
122
|
return [2 /*return*/];
|
|
@@ -137,7 +137,7 @@ var TokenInputAssertions = /** @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, extensions_1.expect)(this.tokenInput).
|
|
140
|
+
case 0: return [4 /*yield*/, (0, extensions_1.expect)(this.tokenInput).toContainTokens(tokenNames, options)];
|
|
141
141
|
case 1:
|
|
142
142
|
_a.sent();
|
|
143
143
|
return [2 /*return*/];
|
|
@@ -5,7 +5,7 @@ import { ComponentList } from './ComponentList';
|
|
|
5
5
|
import { MenuItem } from './MenuItem';
|
|
6
6
|
import type { BlurOptions, ClearOptions, ClickOptions, FillOptions, FocusOptions, GetAttributeOptions, IsDisabledOptions } from '../options';
|
|
7
7
|
import { MenuComponent } from './MenuComponent';
|
|
8
|
-
import { toControlElementLocator, toValueElementLocator, toFocusableElementLocator,
|
|
8
|
+
import { toControlElementLocator, toValueElementLocator, toFocusableElementLocator, toItemsElementLocator } from '../matchers/component/LocatorSymbols';
|
|
9
9
|
export declare class ComboBox extends MenuComponent {
|
|
10
10
|
readonly rootLocator: Locator;
|
|
11
11
|
readonly nativeInputLocator: Locator;
|
|
@@ -14,7 +14,6 @@ export declare class ComboBox extends MenuComponent {
|
|
|
14
14
|
readonly [toControlElementLocator]: () => Locator;
|
|
15
15
|
readonly [toValueElementLocator]: () => Promise<Locator>;
|
|
16
16
|
readonly [toItemsElementLocator]: () => Promise<Locator>;
|
|
17
|
-
readonly [toContainItemElementLocator]: () => Promise<Locator>;
|
|
18
17
|
readonly [toFocusableElementLocator]: () => Locator;
|
|
19
18
|
constructor(rootLocator: Locator);
|
|
20
19
|
private getInputLocator;
|