@skbkontur/playwright-react-ui-components 1.13.1 → 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.
Files changed (210) hide show
  1. package/build/src/assertions/AutocompleteAssertions.js +10 -10
  2. package/build/src/assertions/BaseComponentAssertions.js +11 -11
  3. package/build/src/assertions/ButtonAssertions.js +9 -9
  4. package/build/src/assertions/CheckboxAssertions.js +13 -13
  5. package/build/src/assertions/ComboBoxAssertions.js +17 -111
  6. package/build/src/assertions/ComponentListAssertions.js +6 -6
  7. package/build/src/assertions/CurrencyInputAssertions.js +11 -61
  8. package/build/src/assertions/DateInputAssertions.js +9 -9
  9. package/build/src/assertions/DatePickerAssertions.js +9 -9
  10. package/build/src/assertions/DateRangePickerAssertions.js +4 -25
  11. package/build/src/assertions/DropdownAssertions.js +13 -63
  12. package/build/src/assertions/DropdownMenuAssertions.js +11 -61
  13. package/build/src/assertions/FileUploaderAssertions.d.ts +1 -3
  14. package/build/src/assertions/FileUploaderAssertions.js +5 -22
  15. package/build/src/assertions/FxInputAssertions.js +11 -14
  16. package/build/src/assertions/InputAssertions.js +10 -10
  17. package/build/src/assertions/KebabAssertions.js +7 -58
  18. package/build/src/assertions/LabelAssertions.js +7 -7
  19. package/build/src/assertions/LinkAssertions.js +11 -12
  20. package/build/src/assertions/LoaderAssertions.js +2 -2
  21. package/build/src/assertions/MenuItemAssertations.js +5 -5
  22. package/build/src/assertions/PagingAssertions.js +5 -40
  23. package/build/src/assertions/PortalAssertions.js +3 -3
  24. package/build/src/assertions/RadioAssertions.js +13 -13
  25. package/build/src/assertions/RadioGroupAssertions.js +10 -81
  26. package/build/src/assertions/SelectAssertions.js +15 -64
  27. package/build/src/assertions/SpinnerAssertions.js +2 -2
  28. package/build/src/assertions/TabAssertions.js +11 -12
  29. package/build/src/assertions/TabsAssertions.js +4 -32
  30. package/build/src/assertions/TextareaAssertions.js +9 -9
  31. package/build/src/assertions/ToastAssertions.js +2 -2
  32. package/build/src/assertions/ToggleAssertions.js +11 -11
  33. package/build/src/assertions/TokenAssertions.js +8 -14
  34. package/build/src/assertions/TokenInputAssertions.js +8 -28
  35. package/build/src/assertions/TooltipAssertions.js +5 -5
  36. package/build/src/components/Autocomplete.d.ts +4 -0
  37. package/build/src/components/Autocomplete.js +52 -50
  38. package/build/src/components/BaseComponent.d.ts +4 -0
  39. package/build/src/components/BaseComponent.js +37 -30
  40. package/build/src/components/Button.d.ts +4 -0
  41. package/build/src/components/Button.js +25 -19
  42. package/build/src/components/Checkbox.d.ts +6 -0
  43. package/build/src/components/Checkbox.js +28 -36
  44. package/build/src/components/ComboBox.d.ts +9 -2
  45. package/build/src/components/ComboBox.js +68 -54
  46. package/build/src/components/ComponentList.d.ts +25 -3
  47. package/build/src/components/ComponentList.js +58 -50
  48. package/build/src/components/CurrencyInput.d.ts +4 -0
  49. package/build/src/components/CurrencyInput.js +39 -37
  50. package/build/src/components/DateInput.d.ts +4 -0
  51. package/build/src/components/DateInput.js +34 -32
  52. package/build/src/components/DatePicker.d.ts +4 -0
  53. package/build/src/components/DatePicker.js +35 -33
  54. package/build/src/components/DateRangePicker.d.ts +2 -0
  55. package/build/src/components/DateRangePicker.js +14 -10
  56. package/build/src/components/Dropdown.d.ts +8 -2
  57. package/build/src/components/Dropdown.js +69 -65
  58. package/build/src/components/DropdownMenu.d.ts +7 -2
  59. package/build/src/components/DropdownMenu.js +68 -65
  60. package/build/src/components/FileUploader.d.ts +3 -1
  61. package/build/src/components/FileUploader.js +39 -39
  62. package/build/src/components/FxInput.d.ts +4 -0
  63. package/build/src/components/FxInput.js +44 -42
  64. package/build/src/components/Input.d.ts +4 -0
  65. package/build/src/components/Input.js +37 -35
  66. package/build/src/components/Kebab.d.ts +6 -2
  67. package/build/src/components/Kebab.js +50 -48
  68. package/build/src/components/Label.d.ts +2 -0
  69. package/build/src/components/Label.js +9 -13
  70. package/build/src/components/Link.d.ts +4 -0
  71. package/build/src/components/Link.js +19 -25
  72. package/build/src/components/Loader.d.ts +2 -0
  73. package/build/src/components/Loader.js +15 -10
  74. package/build/src/components/MenuComponent.d.ts +9 -0
  75. package/build/src/components/MenuComponent.js +78 -0
  76. package/build/src/components/MenuItem.d.ts +2 -0
  77. package/build/src/components/MenuItem.js +7 -3
  78. package/build/src/components/Paging.d.ts +2 -0
  79. package/build/src/components/Paging.js +59 -52
  80. package/build/src/components/Portal.d.ts +2 -0
  81. package/build/src/components/Portal.js +14 -10
  82. package/build/src/components/Radio.d.ts +6 -0
  83. package/build/src/components/Radio.js +31 -27
  84. package/build/src/components/RadioGroup.d.ts +2 -0
  85. package/build/src/components/RadioGroup.js +51 -47
  86. package/build/src/components/Select.d.ts +5 -0
  87. package/build/src/components/Select.js +92 -76
  88. package/build/src/components/Spinner.d.ts +2 -0
  89. package/build/src/components/Spinner.js +13 -9
  90. package/build/src/components/Tab.d.ts +4 -0
  91. package/build/src/components/Tab.js +17 -27
  92. package/build/src/components/Textarea.d.ts +4 -0
  93. package/build/src/components/Textarea.js +33 -39
  94. package/build/src/components/Toast.d.ts +2 -0
  95. package/build/src/components/Toast.js +7 -3
  96. package/build/src/components/Toggle.d.ts +5 -0
  97. package/build/src/components/Toggle.js +24 -33
  98. package/build/src/components/Token.d.ts +3 -0
  99. package/build/src/components/Token.js +14 -9
  100. package/build/src/components/TokenInput.d.ts +4 -0
  101. package/build/src/components/TokenInput.js +61 -59
  102. package/build/src/components/Tooltip.d.ts +2 -0
  103. package/build/src/components/Tooltip.js +9 -9
  104. package/build/src/components/index.d.ts +1 -0
  105. package/build/src/components/index.js +3 -1
  106. package/build/src/extensions/index.d.ts +1 -0
  107. package/build/src/extensions/index.js +17 -0
  108. package/build/src/extensions/mergedExpects.d.ts +5 -0
  109. package/build/src/extensions/mergedExpects.js +7 -0
  110. package/build/src/index.d.ts +2 -0
  111. package/build/src/index.js +2 -0
  112. package/build/src/matchers/component/LocatorSymbols.d.ts +43 -0
  113. package/build/src/matchers/component/LocatorSymbols.js +13 -0
  114. package/build/src/matchers/component/toBeActiveEx.d.ts +3 -0
  115. package/build/src/matchers/component/toBeActiveEx.js +56 -0
  116. package/build/src/matchers/component/toBeAutoEx.d.ts +3 -0
  117. package/build/src/matchers/component/toBeAutoEx.js +62 -0
  118. package/build/src/matchers/component/toBeCheckedByIndexEx.d.ts +3 -0
  119. package/build/src/matchers/component/toBeCheckedByIndexEx.js +62 -0
  120. package/build/src/matchers/component/toBeCheckedByTextEx.d.ts +3 -0
  121. package/build/src/matchers/component/toBeCheckedByTextEx.js +62 -0
  122. package/build/src/matchers/component/toBeCheckedByValueEx.d.ts +3 -0
  123. package/build/src/matchers/component/toBeCheckedByValueEx.js +62 -0
  124. package/build/src/matchers/component/toBeCheckedEx.d.ts +3 -0
  125. package/build/src/matchers/component/toBeCheckedEx.js +56 -0
  126. package/build/src/matchers/component/toBeDisabledEx.d.ts +3 -0
  127. package/build/src/matchers/component/toBeDisabledEx.js +172 -0
  128. package/build/src/matchers/component/toBeEmptyEx.d.ts +3 -0
  129. package/build/src/matchers/component/toBeEmptyEx.js +137 -0
  130. package/build/src/matchers/component/toBeEnabledEx.d.ts +3 -0
  131. package/build/src/matchers/component/toBeEnabledEx.js +206 -0
  132. package/build/src/matchers/component/toBeFocusedEx.d.ts +3 -0
  133. package/build/src/matchers/component/toBeFocusedEx.js +56 -0
  134. package/build/src/matchers/component/toBeHiddenEx.d.ts +3 -0
  135. package/build/src/matchers/component/toBeHiddenEx.js +68 -0
  136. package/build/src/matchers/component/toBeInactiveEx.d.ts +3 -0
  137. package/build/src/matchers/component/toBeInactiveEx.js +56 -0
  138. package/build/src/matchers/component/toBeUncheckedByIndexEx.d.ts +3 -0
  139. package/build/src/matchers/component/toBeUncheckedByIndexEx.js +62 -0
  140. package/build/src/matchers/component/toBeUncheckedByTextEx.d.ts +3 -0
  141. package/build/src/matchers/component/toBeUncheckedByTextEx.js +57 -0
  142. package/build/src/matchers/component/toBeUncheckedByValueEx.d.ts +3 -0
  143. package/build/src/matchers/component/toBeUncheckedByValueEx.js +57 -0
  144. package/build/src/matchers/component/toBeUncheckedEx.d.ts +3 -0
  145. package/build/src/matchers/component/toBeUncheckedEx.js +56 -0
  146. package/build/src/matchers/component/toBeVisibleEx.d.ts +3 -0
  147. package/build/src/matchers/component/toBeVisibleEx.js +68 -0
  148. package/build/src/matchers/component/toContainFormattedTextEx.d.ts +3 -0
  149. package/build/src/matchers/component/toContainFormattedTextEx.js +55 -0
  150. package/build/src/matchers/component/toContainItemEx.d.ts +4 -0
  151. package/build/src/matchers/component/toContainItemEx.js +79 -0
  152. package/build/src/matchers/component/toContainItemsEx.d.ts +3 -0
  153. package/build/src/matchers/component/toContainItemsEx.js +63 -0
  154. package/build/src/matchers/component/toContainTabsEx.d.ts +3 -0
  155. package/build/src/matchers/component/toContainTabsEx.js +80 -0
  156. package/build/src/matchers/component/toContainTextEx.d.ts +3 -0
  157. package/build/src/matchers/component/toContainTextEx.js +56 -0
  158. package/build/src/matchers/component/toContainTokensEx.d.ts +4 -0
  159. package/build/src/matchers/component/toContainTokensEx.js +80 -0
  160. package/build/src/matchers/component/toContainUploadedFilesEx.d.ts +4 -0
  161. package/build/src/matchers/component/toContainUploadedFilesEx.js +75 -0
  162. package/build/src/matchers/component/toContainValueEx.d.ts +3 -0
  163. package/build/src/matchers/component/toContainValueEx.js +55 -0
  164. package/build/src/matchers/component/toHaveActivePageEx.d.ts +4 -0
  165. package/build/src/matchers/component/toHaveActivePageEx.js +78 -0
  166. package/build/src/matchers/component/toHaveActiveTabEx.d.ts +2 -0
  167. package/build/src/matchers/component/toHaveActiveTabEx.js +62 -0
  168. package/build/src/matchers/component/toHaveAttributeEx.d.ts +3 -0
  169. package/build/src/matchers/component/toHaveAttributeEx.js +62 -0
  170. package/build/src/matchers/component/toHaveCountEx.d.ts +3 -0
  171. package/build/src/matchers/component/toHaveCountEx.js +56 -0
  172. package/build/src/matchers/component/toHaveErrorEx.d.ts +3 -0
  173. package/build/src/matchers/component/toHaveErrorEx.js +57 -0
  174. package/build/src/matchers/component/toHaveFormattedTextEx.d.ts +3 -0
  175. package/build/src/matchers/component/toHaveFormattedTextEx.js +56 -0
  176. package/build/src/matchers/component/toHaveFormattedValueEx.d.ts +3 -0
  177. package/build/src/matchers/component/toHaveFormattedValueEx.js +56 -0
  178. package/build/src/matchers/component/toHaveHrefEx.d.ts +3 -0
  179. package/build/src/matchers/component/toHaveHrefEx.js +55 -0
  180. package/build/src/matchers/component/toHaveItemsEx.d.ts +3 -0
  181. package/build/src/matchers/component/toHaveItemsEx.js +63 -0
  182. package/build/src/matchers/component/toHavePageCountEx.d.ts +4 -0
  183. package/build/src/matchers/component/toHavePageCountEx.js +71 -0
  184. package/build/src/matchers/component/toHaveTextEx.d.ts +3 -0
  185. package/build/src/matchers/component/toHaveTextEx.js +56 -0
  186. package/build/src/matchers/component/toHaveValueEx.d.ts +6 -0
  187. package/build/src/matchers/component/toHaveValueEx.js +198 -0
  188. package/build/src/matchers/component/toHaveWarningEx.d.ts +3 -0
  189. package/build/src/matchers/component/toHaveWarningEx.js +57 -0
  190. package/build/src/matchers/componentMatchers.d.ts +104 -0
  191. package/build/src/matchers/componentMatchers.js +83 -0
  192. package/build/src/matchers/createAsyncMatcher.d.ts +47 -0
  193. package/build/src/matchers/createAsyncMatcher.js +155 -0
  194. package/build/src/matchers/formattedMatchers.d.ts +15 -31
  195. package/build/src/matchers/formattedMatchers.js +19 -15
  196. package/build/src/matchers/index.d.ts +1 -1
  197. package/build/src/matchers/index.js +1 -3
  198. package/build/src/utils/getMarcherResult.d.ts +13 -0
  199. package/build/src/utils/getMarcherResult.js +13 -0
  200. package/build/src/utils/index.d.ts +3 -0
  201. package/build/src/utils/index.js +3 -0
  202. package/build/src/utils/is.d.ts +3 -0
  203. package/build/src/utils/is.js +5 -0
  204. package/build/src/utils/makeMatcher.d.ts +5 -0
  205. package/build/src/utils/makeMatcher.js +65 -0
  206. package/build/src/utils/toMatchMessage.d.ts +12 -0
  207. package/build/src/utils/toMatchMessage.js +78 -0
  208. package/package.json +1 -1
  209. package/build/src/matchers/mergedExpects.d.ts +0 -15
  210. package/build/src/matchers/mergedExpects.js +0 -6
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.toBeCheckedByIndexEx = void 0;
40
+ var extensions_1 = require("../../extensions");
41
+ var createAsyncMatcher_1 = require("../createAsyncMatcher");
42
+ exports.toBeCheckedByIndexEx = (0, createAsyncMatcher_1.createComponentAsyncMatcher)('toBeCheckedByIndexEx', function (component) { return component.rootLocator; }, function (_a, index_1, options_1) { return __awaiter(void 0, [_a, index_1, options_1], void 0, function (_b, index, options) {
43
+ var radio;
44
+ var isNot = _b.isNot, component = _b.component;
45
+ return __generator(this, function (_c) {
46
+ switch (_c.label) {
47
+ case 0: return [4 /*yield*/, component.getByIndex(index)];
48
+ case 1:
49
+ radio = _c.sent();
50
+ if (!isNot) return [3 /*break*/, 3];
51
+ return [4 /*yield*/, (0, extensions_1.expect)(radio).not.toBeCheckedEx(options)];
52
+ case 2:
53
+ _c.sent();
54
+ return [3 /*break*/, 5];
55
+ case 3: return [4 /*yield*/, (0, extensions_1.expect)(radio).toBeCheckedEx(options)];
56
+ case 4:
57
+ _c.sent();
58
+ _c.label = 5;
59
+ case 5: return [2 /*return*/];
60
+ }
61
+ });
62
+ }); });
@@ -0,0 +1,3 @@
1
+ import type { RadioGroup } from '../../components';
2
+ import type { CheckedOptions } from '../../options/AssertionOptions';
3
+ export declare const toBeCheckedByTextEx: (this: import("playwright/test").ExpectMatcherState, component: RadioGroup, args_0: string | RegExp, args_1?: CheckedOptions | undefined) => Promise<import("playwright/test").MatcherReturnType>;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.toBeCheckedByTextEx = void 0;
40
+ var extensions_1 = require("../../extensions");
41
+ var createAsyncMatcher_1 = require("../createAsyncMatcher");
42
+ exports.toBeCheckedByTextEx = (0, createAsyncMatcher_1.createComponentAsyncMatcher)('toBeCheckedByTextEx', function (component) { return component.rootLocator; }, function (_a, text_1, options_1) { return __awaiter(void 0, [_a, text_1, options_1], void 0, function (_b, text, options) {
43
+ var radio;
44
+ var isNot = _b.isNot, component = _b.component;
45
+ return __generator(this, function (_c) {
46
+ switch (_c.label) {
47
+ case 0: return [4 /*yield*/, component.getByText(text)];
48
+ case 1:
49
+ radio = _c.sent();
50
+ if (!isNot) return [3 /*break*/, 3];
51
+ return [4 /*yield*/, (0, extensions_1.expect)(radio).not.toBeCheckedEx(options)];
52
+ case 2:
53
+ _c.sent();
54
+ return [3 /*break*/, 5];
55
+ case 3: return [4 /*yield*/, (0, extensions_1.expect)(radio).toBeCheckedEx(options)];
56
+ case 4:
57
+ _c.sent();
58
+ _c.label = 5;
59
+ case 5: return [2 /*return*/];
60
+ }
61
+ });
62
+ }); });
@@ -0,0 +1,3 @@
1
+ import type { RadioGroup } from '../../components';
2
+ import type { CheckedOptions } from '../../options/AssertionOptions';
3
+ export declare const toBeCheckedByValueEx: (this: import("playwright/test").ExpectMatcherState, component: RadioGroup, args_0: string | RegExp, args_1?: CheckedOptions | undefined) => Promise<import("playwright/test").MatcherReturnType>;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.toBeCheckedByValueEx = void 0;
40
+ var extensions_1 = require("../../extensions");
41
+ var createAsyncMatcher_1 = require("../createAsyncMatcher");
42
+ exports.toBeCheckedByValueEx = (0, createAsyncMatcher_1.createComponentAsyncMatcher)('toBeCheckedByValueEx', function (component) { return component.rootLocator; }, function (_a, value_1, options_1) { return __awaiter(void 0, [_a, value_1, options_1], void 0, function (_b, value, options) {
43
+ var radio;
44
+ var isNot = _b.isNot, component = _b.component;
45
+ return __generator(this, function (_c) {
46
+ switch (_c.label) {
47
+ case 0: return [4 /*yield*/, component.getByValue(value)];
48
+ case 1:
49
+ radio = _c.sent();
50
+ if (!isNot) return [3 /*break*/, 3];
51
+ return [4 /*yield*/, (0, extensions_1.expect)(radio).not.toBeCheckedEx(options)];
52
+ case 2:
53
+ _c.sent();
54
+ return [3 /*break*/, 5];
55
+ case 3: return [4 /*yield*/, (0, extensions_1.expect)(radio).toBeCheckedEx(options)];
56
+ case 4:
57
+ _c.sent();
58
+ _c.label = 5;
59
+ case 5: return [2 /*return*/];
60
+ }
61
+ });
62
+ }); });
@@ -0,0 +1,3 @@
1
+ import { type ToBeCheckableElementLocator } from './LocatorSymbols';
2
+ import type { CheckedOptions } from '../../options';
3
+ export declare const toBeCheckedEx: (this: import("@playwright/test").ExpectMatcherState, component: ToBeCheckableElementLocator, args_0?: CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.toBeCheckedEx = void 0;
40
+ var test_1 = require("@playwright/test");
41
+ var LocatorSymbols_1 = require("./LocatorSymbols");
42
+ var createAsyncMatcher_1 = require("../createAsyncMatcher");
43
+ exports.toBeCheckedEx = (0, createAsyncMatcher_1.createAsyncMatcher)('toBeCheckedEx', function (component) { return component[LocatorSymbols_1.toCheckableElementLocator](); }, function (_a, options_1) { return __awaiter(void 0, [_a, options_1], void 0, function (_b, options) {
44
+ var expectation;
45
+ var isNot = _b.isNot, locator = _b.locator;
46
+ return __generator(this, function (_c) {
47
+ switch (_c.label) {
48
+ case 0:
49
+ expectation = isNot ? (0, test_1.expect)(locator).not : (0, test_1.expect)(locator);
50
+ return [4 /*yield*/, expectation.toBeChecked(options)];
51
+ case 1:
52
+ _c.sent();
53
+ return [2 /*return*/];
54
+ }
55
+ });
56
+ }); });
@@ -0,0 +1,3 @@
1
+ import type { AttributeOptions, EnabledOptions } from '../../options/AssertionOptions';
2
+ import type { ControlElementLocator } from './LocatorSymbols';
3
+ export declare const toBeDisabledEx: (this: import("@playwright/test").ExpectMatcherState, component: ControlElementLocator, args_0?: EnabledOptions | AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.toBeDisabledEx = void 0;
40
+ var test_1 = require("@playwright/test");
41
+ var is_1 = require("../../utils/is");
42
+ var components_1 = require("../../components");
43
+ var constants_1 = require("../../utils/constants");
44
+ var extensions_1 = require("../../extensions");
45
+ var LocatorSymbols_1 = require("./LocatorSymbols");
46
+ var createAsyncMatcher_1 = require("../createAsyncMatcher");
47
+ exports.toBeDisabledEx = (0, createAsyncMatcher_1.createAsyncMatcher)('toBeDisabledEx', function (component) { return component[LocatorSymbols_1.toControlElementLocator](); }, function (_a, options_1) { return __awaiter(void 0, [_a, options_1], void 0, function (_b, options) {
48
+ var _c, expectation;
49
+ var isNot = _b.isNot, locator = _b.locator, component = _b.component;
50
+ return __generator(this, function (_d) {
51
+ switch (_d.label) {
52
+ case 0:
53
+ _c = true;
54
+ switch (_c) {
55
+ case (0, is_1.isComponent)(component, components_1.Select): return [3 /*break*/, 1];
56
+ case (0, is_1.isComponent)(component, components_1.Token): return [3 /*break*/, 3];
57
+ case (0, is_1.isComponent)(component, components_1.RadioGroup): return [3 /*break*/, 5];
58
+ case (0, is_1.isComponent)(component, components_1.Kebab): return [3 /*break*/, 7];
59
+ case (0, is_1.isComponent)(component, components_1.Paging): return [3 /*break*/, 7];
60
+ case (0, is_1.isComponent)(component, components_1.Tab): return [3 /*break*/, 7];
61
+ case (0, is_1.isComponent)(component, components_1.Link): return [3 /*break*/, 7];
62
+ }
63
+ return [3 /*break*/, 9];
64
+ case 1: return [4 /*yield*/, checkSelect(component, isNot, locator, options)];
65
+ case 2:
66
+ _d.sent();
67
+ return [3 /*break*/, 11];
68
+ case 3: return [4 /*yield*/, checkVisible(isNot, locator, options)];
69
+ case 4:
70
+ _d.sent();
71
+ return [3 /*break*/, 11];
72
+ case 5: return [4 /*yield*/, checkRadioGroup(component, isNot, options)];
73
+ case 6:
74
+ _d.sent();
75
+ return [3 /*break*/, 11];
76
+ case 7: return [4 /*yield*/, checkAttribute(component, isNot, options)];
77
+ case 8:
78
+ _d.sent();
79
+ return [3 /*break*/, 11];
80
+ case 9:
81
+ expectation = isNot ? (0, test_1.expect)(locator).not : (0, test_1.expect)(locator);
82
+ return [4 /*yield*/, expectation.toBeDisabled(options)];
83
+ case 10:
84
+ _d.sent();
85
+ _d.label = 11;
86
+ case 11: return [2 /*return*/];
87
+ }
88
+ });
89
+ }); });
90
+ function checkSelect(component, isNot, locator, options) {
91
+ return __awaiter(this, void 0, void 0, function () {
92
+ var expectation;
93
+ return __generator(this, function (_a) {
94
+ switch (_a.label) {
95
+ case 0:
96
+ expectation = isNot ? (0, test_1.expect)(locator).not : (0, test_1.expect)(locator);
97
+ return [4 /*yield*/, component.isLinkSelect()];
98
+ case 1:
99
+ if (!_a.sent()) return [3 /*break*/, 3];
100
+ return [4 /*yield*/, expectation.toHaveAttribute(constants_1.DataVisualState.Disabled, options)];
101
+ case 2:
102
+ _a.sent();
103
+ return [3 /*break*/, 5];
104
+ case 3: return [4 /*yield*/, expectation.toBeDisabled(options)];
105
+ case 4:
106
+ _a.sent();
107
+ _a.label = 5;
108
+ case 5: return [2 /*return*/];
109
+ }
110
+ });
111
+ });
112
+ }
113
+ function checkVisible(isNot, locator, options) {
114
+ return __awaiter(this, void 0, void 0, function () {
115
+ var expectation;
116
+ return __generator(this, function (_a) {
117
+ switch (_a.label) {
118
+ case 0:
119
+ expectation = isNot ? (0, test_1.expect)(locator).not : (0, test_1.expect)(locator);
120
+ return [4 /*yield*/, expectation.toBeHidden(options)];
121
+ case 1:
122
+ _a.sent();
123
+ return [2 /*return*/];
124
+ }
125
+ });
126
+ });
127
+ }
128
+ function checkRadioGroup(component, isNot, options) {
129
+ return __awaiter(this, void 0, void 0, function () {
130
+ var radios, _i, radios_1, radio;
131
+ return __generator(this, function (_a) {
132
+ switch (_a.label) {
133
+ case 0: return [4 /*yield*/, component.getItems()];
134
+ case 1:
135
+ radios = _a.sent();
136
+ _i = 0, radios_1 = radios;
137
+ _a.label = 2;
138
+ case 2:
139
+ if (!(_i < radios_1.length)) return [3 /*break*/, 7];
140
+ radio = radios_1[_i];
141
+ if (!isNot) return [3 /*break*/, 4];
142
+ return [4 /*yield*/, (0, extensions_1.expect)(radio).not.toBeDisabledEx(options)];
143
+ case 3:
144
+ _a.sent();
145
+ return [3 /*break*/, 6];
146
+ case 4: return [4 /*yield*/, (0, extensions_1.expect)(radio).toBeDisabledEx(options)];
147
+ case 5:
148
+ _a.sent();
149
+ _a.label = 6;
150
+ case 6:
151
+ _i++;
152
+ return [3 /*break*/, 2];
153
+ case 7: return [2 /*return*/];
154
+ }
155
+ });
156
+ });
157
+ }
158
+ function checkAttribute(component, isNot, options) {
159
+ return __awaiter(this, void 0, void 0, function () {
160
+ var expectation;
161
+ return __generator(this, function (_a) {
162
+ switch (_a.label) {
163
+ case 0:
164
+ expectation = isNot ? (0, extensions_1.expect)(component).not : (0, extensions_1.expect)(component);
165
+ return [4 /*yield*/, expectation.toHaveAttributeEx(constants_1.DataVisualState.Disabled, undefined, options)];
166
+ case 1:
167
+ _a.sent();
168
+ return [2 /*return*/];
169
+ }
170
+ });
171
+ });
172
+ }
@@ -0,0 +1,3 @@
1
+ import type { EmptyOptions } from '../../options/AssertionOptions';
2
+ import type { ToWithValueElementLocator } from './LocatorSymbols';
3
+ export declare const toBeEmptyEx: (this: import("@playwright/test").ExpectMatcherState, component: ToWithValueElementLocator, args_0?: EmptyOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.toBeEmptyEx = void 0;
40
+ var test_1 = require("@playwright/test");
41
+ var is_1 = require("../../utils/is");
42
+ var components_1 = require("../../components");
43
+ var extensions_1 = require("../../extensions");
44
+ var LocatorSymbols_1 = require("./LocatorSymbols");
45
+ var createAsyncMatcher_1 = require("../createAsyncMatcher");
46
+ exports.toBeEmptyEx = (0, createAsyncMatcher_1.createAsyncMatcher)('toBeEmptyEx', function (component) { return component[LocatorSymbols_1.toValueElementLocator](); }, function (_a, options_1) { return __awaiter(void 0, [_a, options_1], void 0, function (_b, options) {
47
+ var _c, expectation;
48
+ var isNot = _b.isNot, locator = _b.locator, component = _b.component;
49
+ return __generator(this, function (_d) {
50
+ switch (_d.label) {
51
+ case 0:
52
+ _c = true;
53
+ switch (_c) {
54
+ case (0, is_1.isComponent)(component, components_1.ComboBox): return [3 /*break*/, 1];
55
+ case (0, is_1.isComponent)(component, components_1.DateRangePicker): return [3 /*break*/, 3];
56
+ case (0, is_1.isComponent)(component, components_1.ComponentList): return [3 /*break*/, 5];
57
+ case (0, is_1.isComponent)(component, components_1.TokenInput): return [3 /*break*/, 5];
58
+ }
59
+ return [3 /*break*/, 7];
60
+ case 1: return [4 /*yield*/, checkComboBox(component, isNot, locator, options)];
61
+ case 2:
62
+ _d.sent();
63
+ return [3 /*break*/, 9];
64
+ case 3: return [4 /*yield*/, checkDateRangePicker(component)];
65
+ case 4:
66
+ _d.sent();
67
+ return [3 /*break*/, 9];
68
+ case 5: return [4 /*yield*/, checkComponentList(isNot, locator, options)];
69
+ case 6:
70
+ _d.sent();
71
+ return [3 /*break*/, 9];
72
+ case 7:
73
+ expectation = isNot ? (0, test_1.expect)(locator).not : (0, test_1.expect)(locator);
74
+ return [4 /*yield*/, expectation.toBeEmpty(options)];
75
+ case 8:
76
+ _d.sent();
77
+ _d.label = 9;
78
+ case 9: return [2 /*return*/];
79
+ }
80
+ });
81
+ }); });
82
+ function checkComboBox(component, isNot, locator, options) {
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ var expectation;
85
+ return __generator(this, function (_a) {
86
+ switch (_a.label) {
87
+ case 0:
88
+ expectation = isNot ? (0, test_1.expect)(locator).not : (0, test_1.expect)(locator);
89
+ return [4 /*yield*/, component.isDisabled()];
90
+ case 1:
91
+ if (!!(_a.sent())) return [3 /*break*/, 4];
92
+ return [4 /*yield*/, component.focus()];
93
+ case 2:
94
+ _a.sent();
95
+ return [4 /*yield*/, expectation.toBeEmpty(options)];
96
+ case 3:
97
+ _a.sent();
98
+ return [3 /*break*/, 6];
99
+ case 4: return [4 /*yield*/, expectation.toBeEmpty(options)];
100
+ case 5:
101
+ _a.sent();
102
+ _a.label = 6;
103
+ case 6: return [2 /*return*/];
104
+ }
105
+ });
106
+ });
107
+ }
108
+ function checkDateRangePicker(component) {
109
+ return __awaiter(this, void 0, void 0, function () {
110
+ return __generator(this, function (_a) {
111
+ switch (_a.label) {
112
+ case 0: return [4 /*yield*/, (0, extensions_1.expect)(component.datePickerStart).toBeEmptyEx()];
113
+ case 1:
114
+ _a.sent();
115
+ return [4 /*yield*/, (0, extensions_1.expect)(component.datePickerEnd).toBeEmptyEx()];
116
+ case 2:
117
+ _a.sent();
118
+ return [2 /*return*/];
119
+ }
120
+ });
121
+ });
122
+ }
123
+ function checkComponentList(isNot, locator, options) {
124
+ return __awaiter(this, void 0, void 0, function () {
125
+ var expectation;
126
+ return __generator(this, function (_a) {
127
+ switch (_a.label) {
128
+ case 0:
129
+ expectation = isNot ? (0, test_1.expect)(locator).not : (0, test_1.expect)(locator);
130
+ return [4 /*yield*/, expectation.toHaveCount(0, options)];
131
+ case 1:
132
+ _a.sent();
133
+ return [2 /*return*/];
134
+ }
135
+ });
136
+ });
137
+ }
@@ -0,0 +1,3 @@
1
+ import type { EnabledOptions } from '../../options';
2
+ import type { ControlElementLocator } from './LocatorSymbols';
3
+ export declare const toBeEnabledEx: (this: import("@playwright/test").ExpectMatcherState, component: ControlElementLocator, args_0?: EnabledOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;