@skbkontur/playwright-react-ui-components 1.14.0-beta.1 → 1.14.0-beta.3

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.
Files changed (104) hide show
  1. package/build/src/assertions/CheckboxAssertions.js +1 -1
  2. package/build/src/assertions/ComboBoxAssertions.js +4 -4
  3. package/build/src/assertions/DropdownAssertions.js +4 -4
  4. package/build/src/assertions/DropdownMenuAssertions.js +4 -4
  5. package/build/src/assertions/FileUploaderAssertions.js +1 -1
  6. package/build/src/assertions/FxInputAssertions.js +2 -2
  7. package/build/src/assertions/KebabAssertions.js +4 -4
  8. package/build/src/assertions/LinkAssertions.js +2 -2
  9. package/build/src/assertions/PagingAssertions.js +2 -2
  10. package/build/src/assertions/RadioGroupAssertions.js +6 -6
  11. package/build/src/assertions/SelectAssertions.js +2 -2
  12. package/build/src/assertions/TabAssertions.js +2 -2
  13. package/build/src/assertions/TabsAssertions.js +3 -3
  14. package/build/src/assertions/TokenInputAssertions.js +1 -1
  15. package/build/src/components/ComboBox.d.ts +1 -2
  16. package/build/src/components/ComboBox.js +53 -54
  17. package/build/src/components/Dropdown.d.ts +1 -2
  18. package/build/src/components/Dropdown.js +61 -62
  19. package/build/src/components/DropdownMenu.d.ts +1 -2
  20. package/build/src/components/DropdownMenu.js +61 -62
  21. package/build/src/components/Kebab.d.ts +1 -2
  22. package/build/src/components/Kebab.js +43 -44
  23. package/build/src/components/MenuComponent.d.ts +2 -1
  24. package/build/src/components/MenuComponent.js +6 -5
  25. package/build/src/matchers/component/toBeActiveTab.d.ts +3 -0
  26. package/build/src/matchers/component/{toBeActiveEx.js → toBeActiveTab.js} +2 -2
  27. package/build/src/matchers/component/toBeAutoMode.d.ts +3 -0
  28. package/build/src/matchers/component/{toBeAutoEx.js → toBeAutoMode.js} +2 -2
  29. package/build/src/matchers/component/toBeCheckedByIndex.d.ts +3 -0
  30. package/build/src/matchers/component/{toBeUncheckedByIndexEx.js → toBeCheckedByIndex.js} +4 -4
  31. package/build/src/matchers/component/toBeCheckedByText.d.ts +3 -0
  32. package/build/src/matchers/component/{toBeCheckedByTextEx.js → toBeCheckedByText.js} +2 -2
  33. package/build/src/matchers/component/toBeCheckedByValue.d.ts +3 -0
  34. package/build/src/matchers/component/{toBeCheckedByValueEx.js → toBeCheckedByValue.js} +2 -2
  35. package/build/src/matchers/component/toBeDisabledEx.d.ts +1 -1
  36. package/build/src/matchers/component/toBeDisabledEx.js +7 -8
  37. package/build/src/matchers/component/toBeEmptyEx.d.ts +1 -1
  38. package/build/src/matchers/component/toBeEmptyEx.js +4 -5
  39. package/build/src/matchers/component/toBeEnabledEx.js +15 -25
  40. package/build/src/matchers/component/toBeHiddenEx.js +1 -2
  41. package/build/src/matchers/component/toBeInactiveTab.d.ts +3 -0
  42. package/build/src/matchers/component/{toBeInactiveEx.js → toBeInactiveTab.js} +2 -2
  43. package/build/src/matchers/component/toBeUnchecked.d.ts +3 -0
  44. package/build/src/matchers/component/{toBeUncheckedEx.js → toBeUnchecked.js} +2 -2
  45. package/build/src/matchers/component/{toBeCheckedByIndexEx.d.ts → toBeUncheckedByIndex.d.ts} +2 -2
  46. package/build/src/matchers/component/{toBeCheckedByIndexEx.js → toBeUncheckedByIndex.js} +4 -4
  47. package/build/src/matchers/component/{toBeCheckedByTextEx.d.ts → toBeUncheckedByText.d.ts} +2 -2
  48. package/build/src/matchers/component/{toBeUncheckedByTextEx.js → toBeUncheckedByText.js} +3 -3
  49. package/build/src/matchers/component/{toBeCheckedByValueEx.d.ts → toBeUncheckedByValue.d.ts} +2 -2
  50. package/build/src/matchers/component/{toBeUncheckedByValueEx.js → toBeUncheckedByValue.js} +3 -3
  51. package/build/src/matchers/component/toBeVisibleEx.js +1 -2
  52. package/build/src/matchers/component/toContainItem.d.ts +4 -0
  53. package/build/src/matchers/component/{toContainItemEx.js → toContainItem.js} +2 -3
  54. package/build/src/matchers/component/toContainItems.d.ts +3 -0
  55. package/build/src/matchers/component/{toContainItemsEx.js → toContainItems.js} +4 -4
  56. package/build/src/matchers/component/toContainSelectValue.d.ts +3 -0
  57. package/build/src/matchers/component/{toContainValueEx.js → toContainSelectValue.js} +2 -2
  58. package/build/src/matchers/component/toContainTabs.d.ts +3 -0
  59. package/build/src/matchers/component/{toContainTabsEx.js → toContainTabs.js} +2 -2
  60. package/build/src/matchers/component/{toContainTokensEx.d.ts → toContainTokens.d.ts} +1 -1
  61. package/build/src/matchers/component/{toContainTokensEx.js → toContainTokens.js} +2 -2
  62. package/build/src/matchers/component/toContainUploadedFiles.d.ts +4 -0
  63. package/build/src/matchers/component/{toContainUploadedFilesEx.js → toContainUploadedFiles.js} +2 -2
  64. package/build/src/matchers/component/{toHavePageCountEx.d.ts → toHaveActivePage.d.ts} +1 -1
  65. package/build/src/matchers/component/{toHaveActivePageEx.js → toHaveActivePage.js} +2 -2
  66. package/build/src/matchers/component/toHaveActiveTab.d.ts +2 -0
  67. package/build/src/matchers/component/{toHaveActiveTabEx.js → toHaveActiveTab.js} +4 -4
  68. package/build/src/matchers/component/toHaveError.d.ts +3 -0
  69. package/build/src/matchers/component/{toHaveWarningEx.js → toHaveError.js} +3 -3
  70. package/build/src/matchers/component/toHaveHref.d.ts +3 -0
  71. package/build/src/matchers/component/{toHaveHrefEx.js → toHaveHref.js} +2 -2
  72. package/build/src/matchers/component/toHaveItems.d.ts +3 -0
  73. package/build/src/matchers/component/{toHaveItemsEx.js → toHaveItems.js} +4 -4
  74. package/build/src/matchers/component/{toHaveActivePageEx.d.ts → toHavePageCount.d.ts} +1 -1
  75. package/build/src/matchers/component/{toHavePageCountEx.js → toHavePageCount.js} +2 -2
  76. package/build/src/matchers/component/toHaveValueEx.d.ts +1 -1
  77. package/build/src/matchers/component/toHaveValueEx.js +4 -5
  78. package/build/src/matchers/component/{toHaveErrorEx.d.ts → toHaveWarning.d.ts} +2 -2
  79. package/build/src/matchers/component/{toHaveErrorEx.js → toHaveWarning.js} +3 -3
  80. package/build/src/matchers/componentMatchers.d.ts +76 -76
  81. package/build/src/matchers/componentMatchers.js +56 -50
  82. package/build/src/matchers/createAsyncMatcher.d.ts +35 -10
  83. package/build/src/matchers/createAsyncMatcher.js +38 -13
  84. package/build/src/utils/toMatchMessage.d.ts +11 -0
  85. package/build/src/utils/toMatchMessage.js +11 -0
  86. package/package.json +1 -1
  87. package/build/src/matchers/component/toBeActiveEx.d.ts +0 -3
  88. package/build/src/matchers/component/toBeAutoEx.d.ts +0 -3
  89. package/build/src/matchers/component/toBeInactiveEx.d.ts +0 -3
  90. package/build/src/matchers/component/toBeUncheckedByIndexEx.d.ts +0 -3
  91. package/build/src/matchers/component/toBeUncheckedByTextEx.d.ts +0 -3
  92. package/build/src/matchers/component/toBeUncheckedByValueEx.d.ts +0 -3
  93. package/build/src/matchers/component/toBeUncheckedEx.d.ts +0 -3
  94. package/build/src/matchers/component/toContainItemEx.d.ts +0 -4
  95. package/build/src/matchers/component/toContainItemsEx.d.ts +0 -3
  96. package/build/src/matchers/component/toContainTabsEx.d.ts +0 -3
  97. package/build/src/matchers/component/toContainUploadedFilesEx.d.ts +0 -4
  98. package/build/src/matchers/component/toContainValueEx.d.ts +0 -3
  99. package/build/src/matchers/component/toHaveActiveTabEx.d.ts +0 -2
  100. package/build/src/matchers/component/toHaveHrefEx.d.ts +0 -3
  101. package/build/src/matchers/component/toHaveItemsEx.d.ts +0 -3
  102. package/build/src/matchers/component/toHaveWarningEx.d.ts +0 -3
  103. package/build/src/utils/is.d.ts +0 -3
  104. package/build/src/utils/is.js +0 -5
@@ -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).toBeUncheckedEx(options)];
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).toHaveItemsEx(itemsText, options)];
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).toContainItemsEx(itemsText, options)];
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).toContainItemEx(itemText, options)];
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.toContainItemEx(itemText, options)];
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).toHaveItemsEx(itemsText, options)];
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).toContainItemsEx(itemsText, options)];
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).toContainItemEx(itemText, options)];
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.toContainItemEx(itemText, options)];
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).toHaveItemsEx(itemsText, options)];
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).toContainItemsEx(itemsText, options)];
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).toContainItemEx(itemText, options)];
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.toContainItemEx(itemText, options)];
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).toContainUploadedFilesEx(fileNames, options)];
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).toBeAutoEx()];
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.toBeAutoEx()];
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*/];
@@ -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).toHaveItemsEx(itemsText, options)];
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).toContainItemsEx(itemsText, options)];
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).toContainItemEx(itemText, options)];
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.toContainItemEx(itemText, options)];
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*/];
@@ -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).toHaveHrefEx(href, options)];
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.toHaveHrefEx(href, options)];
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).toHavePageCountEx(count, options)];
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).toHaveActivePageEx(activePageNumber, options)];
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).toBeCheckedByValueEx(value, options)];
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).toBeCheckedByIndexEx(index, options)];
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).toBeCheckedByTextEx(text, options)];
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).toBeUncheckedByValueEx(value, options)];
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).toBeUncheckedByIndexEx(index, options)];
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).toBeUncheckedByTextEx(text, options)];
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).toContainValueEx(value, options)];
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.toContainValueEx(value, options)];
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).toBeActiveEx(options)];
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).toBeInactiveEx(options)];
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).toHaveActiveTabEx(tabName)];
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.toHaveActiveTabEx(tabName)];
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).toContainTabsEx(tabNames, options)];
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*/];
@@ -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).toContainTokensEx(tokenNames, options)];
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, toContainItemElementLocator, toItemsElementLocator } from '../matchers/component/LocatorSymbols';
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;
@@ -50,7 +50,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
50
50
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
51
  }
52
52
  };
53
- var _a, _b, _c, _d, _e;
53
+ var _a, _b, _c, _d;
54
54
  Object.defineProperty(exports, "__esModule", { value: true });
55
55
  exports.ComboBox = void 0;
56
56
  var test_1 = require("@playwright/test");
@@ -75,8 +75,7 @@ var ComboBox = /** @class */ (function (_super) {
75
75
  _this[_a] = function () { return _this.nativeInputLocator; };
76
76
  _this[_b] = function () { return _this.getInputLocator(); };
77
77
  _this[_c] = function () { return _this.getItemsLocator(); };
78
- _this[_d] = function () { return _this.getInputLocator(); };
79
- _this[_e] = function () { return _this.nativeInputLocator; };
78
+ _this[_d] = function () { return _this.nativeInputLocator; };
80
79
  _this.nativeInputLocator = rootLocator.locator('input');
81
80
  _this.inputLikeTextLocator = rootLocator.locator((0, dataTidSelector_1.getDataTidSelector)(InputLikeText_1.InputLikeTextDataTids.input));
82
81
  _this.portal = new Portal_1.Portal(rootLocator.locator('noscript'));
@@ -84,45 +83,45 @@ var ComboBox = /** @class */ (function (_super) {
84
83
  }
85
84
  ComboBox.prototype.getInputLocator = function () {
86
85
  return __awaiter(this, void 0, void 0, function () {
87
- return __generator(this, function (_f) {
88
- switch (_f.label) {
86
+ return __generator(this, function (_e) {
87
+ switch (_e.label) {
89
88
  case 0: return [4 /*yield*/, this.isDisabled()];
90
- case 1: return [2 /*return*/, !(_f.sent()) ? this.nativeInputLocator : this.inputLikeTextLocator];
89
+ case 1: return [2 /*return*/, !(_e.sent()) ? this.nativeInputLocator : this.inputLikeTextLocator];
91
90
  }
92
91
  });
93
92
  });
94
93
  };
95
94
  ComboBox.prototype.isDisabled = function (options) {
96
95
  return __awaiter(this, void 0, void 0, function () {
97
- return __generator(this, function (_f) {
98
- switch (_f.label) {
96
+ return __generator(this, function (_e) {
97
+ switch (_e.label) {
99
98
  case 0: return [4 /*yield*/, this.nativeInputLocator.isDisabled(options)];
100
- case 1: return [2 /*return*/, _f.sent()];
99
+ case 1: return [2 /*return*/, _e.sent()];
101
100
  }
102
101
  });
103
102
  });
104
103
  };
105
104
  ComboBox.prototype.isFocused = function (options) {
106
105
  return __awaiter(this, void 0, void 0, function () {
107
- return __generator(this, function (_f) {
108
- switch (_f.label) {
106
+ return __generator(this, function (_e) {
107
+ switch (_e.label) {
109
108
  case 0: return [4 /*yield*/, this.nativeInputLocator.getAttribute('type', options)];
110
- case 1: return [2 /*return*/, (_f.sent()) !== 'hidden'];
109
+ case 1: return [2 /*return*/, (_e.sent()) !== 'hidden'];
111
110
  }
112
111
  });
113
112
  });
114
113
  };
115
114
  ComboBox.prototype.getSelectedValue = function () {
116
115
  return __awaiter(this, void 0, void 0, function () {
117
- return __generator(this, function (_f) {
118
- switch (_f.label) {
116
+ return __generator(this, function (_e) {
117
+ switch (_e.label) {
119
118
  case 0: return [4 /*yield*/, this.isFocused()];
120
119
  case 1:
121
- if (!_f.sent()) return [3 /*break*/, 3];
120
+ if (!_e.sent()) return [3 /*break*/, 3];
122
121
  return [4 /*yield*/, this.nativeInputLocator.inputValue()];
123
- case 2: return [2 /*return*/, _f.sent()];
122
+ case 2: return [2 /*return*/, _e.sent()];
124
123
  case 3: return [4 /*yield*/, this.inputLikeTextLocator.innerText()];
125
- case 4: return [2 /*return*/, _f.sent()];
124
+ case 4: return [2 /*return*/, _e.sent()];
126
125
  }
127
126
  });
128
127
  });
@@ -134,14 +133,14 @@ var ComboBox = /** @class */ (function (_super) {
134
133
  ComboBox.prototype.selectFirst = function (value, options) {
135
134
  return __awaiter(this, void 0, void 0, function () {
136
135
  var items;
137
- return __generator(this, function (_f) {
138
- switch (_f.label) {
136
+ return __generator(this, function (_e) {
137
+ switch (_e.label) {
139
138
  case 0: return [4 /*yield*/, this.getComboBoxMenuItemsLocator(value)];
140
139
  case 1:
141
- items = _f.sent();
140
+ items = _e.sent();
142
141
  return [4 /*yield*/, items.first().click(options)];
143
142
  case 2:
144
- _f.sent();
143
+ _e.sent();
145
144
  return [2 /*return*/];
146
145
  }
147
146
  });
@@ -150,17 +149,17 @@ var ComboBox = /** @class */ (function (_super) {
150
149
  ComboBox.prototype.select = function (value, options) {
151
150
  return __awaiter(this, void 0, void 0, function () {
152
151
  var items;
153
- return __generator(this, function (_f) {
154
- switch (_f.label) {
152
+ return __generator(this, function (_e) {
153
+ switch (_e.label) {
155
154
  case 0: return [4 /*yield*/, this.getComboBoxMenuItemsLocator(value)];
156
155
  case 1:
157
- items = _f.sent();
156
+ items = _e.sent();
158
157
  return [4 /*yield*/, (0, test_1.expect)(items).toHaveCount(1)];
159
158
  case 2:
160
- _f.sent();
159
+ _e.sent();
161
160
  return [4 /*yield*/, items.click(options)];
162
161
  case 3:
163
- _f.sent();
162
+ _e.sent();
164
163
  return [2 /*return*/];
165
164
  }
166
165
  });
@@ -168,14 +167,14 @@ var ComboBox = /** @class */ (function (_super) {
168
167
  };
169
168
  ComboBox.prototype.fill = function (value, options) {
170
169
  return __awaiter(this, void 0, void 0, function () {
171
- return __generator(this, function (_f) {
172
- switch (_f.label) {
170
+ return __generator(this, function (_e) {
171
+ switch (_e.label) {
173
172
  case 0: return [4 /*yield*/, this.focus()];
174
173
  case 1:
175
- _f.sent();
174
+ _e.sent();
176
175
  return [4 /*yield*/, this.nativeInputLocator.fill(value, options)];
177
176
  case 2:
178
- _f.sent();
177
+ _e.sent();
179
178
  return [2 /*return*/];
180
179
  }
181
180
  });
@@ -183,14 +182,14 @@ var ComboBox = /** @class */ (function (_super) {
183
182
  };
184
183
  ComboBox.prototype.clear = function (options) {
185
184
  return __awaiter(this, void 0, void 0, function () {
186
- return __generator(this, function (_f) {
187
- switch (_f.label) {
185
+ return __generator(this, function (_e) {
186
+ switch (_e.label) {
188
187
  case 0: return [4 /*yield*/, this.focus()];
189
188
  case 1:
190
- _f.sent();
189
+ _e.sent();
191
190
  return [4 /*yield*/, this.nativeInputLocator.clear(options)];
192
191
  case 2:
193
- _f.sent();
192
+ _e.sent();
194
193
  return [2 /*return*/];
195
194
  }
196
195
  });
@@ -198,17 +197,17 @@ var ComboBox = /** @class */ (function (_super) {
198
197
  };
199
198
  ComboBox.prototype.focus = function (options) {
200
199
  return __awaiter(this, void 0, void 0, function () {
201
- return __generator(this, function (_f) {
202
- switch (_f.label) {
200
+ return __generator(this, function (_e) {
201
+ switch (_e.label) {
203
202
  case 0: return [4 /*yield*/, (0, test_1.expect)(this.nativeInputLocator).toBeEnabled()];
204
203
  case 1:
205
- _f.sent();
204
+ _e.sent();
206
205
  return [4 /*yield*/, this.rootLocator
207
206
  .locator('input[type="text"]')
208
207
  .or(this.rootLocator.locator((0, dataTidSelector_1.getDataTidSelector)(InputLikeText_1.InputLikeTextDataTids.root)))
209
208
  .focus(options)];
210
209
  case 2:
211
- _f.sent();
210
+ _e.sent();
212
211
  return [2 /*return*/];
213
212
  }
214
213
  });
@@ -216,11 +215,11 @@ var ComboBox = /** @class */ (function (_super) {
216
215
  };
217
216
  ComboBox.prototype.blur = function (options) {
218
217
  return __awaiter(this, void 0, void 0, function () {
219
- return __generator(this, function (_f) {
220
- switch (_f.label) {
218
+ return __generator(this, function (_e) {
219
+ switch (_e.label) {
221
220
  case 0: return [4 /*yield*/, this.nativeInputLocator.press('Tab', { timeout: options === null || options === void 0 ? void 0 : options.timeout })];
222
221
  case 1:
223
- _f.sent();
222
+ _e.sent();
224
223
  return [2 /*return*/];
225
224
  }
226
225
  });
@@ -228,17 +227,17 @@ var ComboBox = /** @class */ (function (_super) {
228
227
  };
229
228
  ComboBox.prototype.click = function () {
230
229
  return __awaiter(this, void 0, void 0, function () {
231
- return __generator(this, function (_f) {
232
- switch (_f.label) {
230
+ return __generator(this, function (_e) {
231
+ switch (_e.label) {
233
232
  case 0:
234
233
  // NOTE: rootLocator всегда в состоянии enabled, даже если ComboBox disabled
235
234
  return [4 /*yield*/, (0, test_1.expect)(this.nativeInputLocator).toBeEnabled()];
236
235
  case 1:
237
236
  // NOTE: rootLocator всегда в состоянии enabled, даже если ComboBox disabled
238
- _f.sent();
237
+ _e.sent();
239
238
  return [4 /*yield*/, _super.prototype.click.call(this)];
240
239
  case 2:
241
- _f.sent();
240
+ _e.sent();
242
241
  return [2 /*return*/];
243
242
  }
244
243
  });
@@ -259,17 +258,17 @@ var ComboBox = /** @class */ (function (_super) {
259
258
  ComboBox.prototype.getMenuItems = function () {
260
259
  return __awaiter(this, void 0, void 0, function () {
261
260
  var container;
262
- return __generator(this, function (_f) {
263
- switch (_f.label) {
261
+ return __generator(this, function (_e) {
262
+ switch (_e.label) {
264
263
  case 0: return [4 /*yield*/, this.focus()];
265
264
  case 1:
266
- _f.sent();
265
+ _e.sent();
267
266
  return [4 /*yield*/, this.portal.getContainer()];
268
267
  case 2:
269
- container = _f.sent();
268
+ container = _e.sent();
270
269
  return [4 /*yield*/, container.locator((0, dataTidSelector_1.getDataTidSelector)(react_ui_1.SpinnerDataTids.root)).waitFor({ state: 'hidden' })];
271
270
  case 3:
272
- _f.sent();
271
+ _e.sent();
273
272
  return [2 /*return*/, new ComponentList_1.ComponentList(container, function (locator) {
274
273
  return locator
275
274
  .locator((0, dataTidSelector_1.getDataTidSelector)(react_ui_1.MenuItemDataTids.root))
@@ -289,11 +288,11 @@ var ComboBox = /** @class */ (function (_super) {
289
288
  ComboBox.prototype.getComboBoxMenuItemsLocator = function (byText) {
290
289
  return __awaiter(this, void 0, void 0, function () {
291
290
  var container, items;
292
- return __generator(this, function (_f) {
293
- switch (_f.label) {
291
+ return __generator(this, function (_e) {
292
+ switch (_e.label) {
294
293
  case 0: return [4 /*yield*/, this.portal.getContainer()];
295
294
  case 1:
296
- container = _f.sent();
295
+ container = _e.sent();
297
296
  items = container.locator((0, dataTidSelector_1.getDataTidSelector)(CustomComboBox_1.ComboBoxMenuDataTids.item));
298
297
  return [2 /*return*/, items.getByText(byText)];
299
298
  }
@@ -303,4 +302,4 @@ var ComboBox = /** @class */ (function (_super) {
303
302
  return ComboBox;
304
303
  }(MenuComponent_1.MenuComponent));
305
304
  exports.ComboBox = ComboBox;
306
- _a = LocatorSymbols_1.toControlElementLocator, _b = LocatorSymbols_1.toValueElementLocator, _c = LocatorSymbols_1.toItemsElementLocator, _d = LocatorSymbols_1.toContainItemElementLocator, _e = LocatorSymbols_1.toFocusableElementLocator;
305
+ _a = LocatorSymbols_1.toControlElementLocator, _b = LocatorSymbols_1.toValueElementLocator, _c = LocatorSymbols_1.toItemsElementLocator, _d = LocatorSymbols_1.toFocusableElementLocator;