@taiga-ui/testing 3.491.1-canary.d27927b → 4.0.0-rc.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 (181) hide show
  1. package/LICENSE +190 -0
  2. package/core/accordion.harness.d.ts +0 -1
  3. package/core/avatar.harness.d.ts +1 -1
  4. package/core/badge.harness.d.ts +3 -3
  5. package/core/{primitive-calender.harness.d.ts → calendar-sheet.harness.d.ts} +1 -1
  6. package/core/{primitive-year-month-pagination.harness.d.ts → calendar-spin.harness.d.ts} +1 -1
  7. package/core/{primitive-year-picker.harness.d.ts → calendar-year.harness.d.ts} +1 -1
  8. package/core/calendar.harness.d.ts +3 -3
  9. package/core/card.harness.d.ts +0 -6
  10. package/core/dialog.harness.d.ts +6 -0
  11. package/core/{hosted-dropdown.harness.d.ts → dropdown-open.harness.d.ts} +1 -1
  12. package/core/index.d.ts +6 -6
  13. package/core/island.harness.d.ts +1 -1
  14. package/core/select.harness.d.ts +1 -1
  15. package/core/{primitive-spin-button.harness.d.ts → spin-button.harness.d.ts} +1 -1
  16. package/core/tag.harness.d.ts +2 -3
  17. package/esm2022/core/accordion-item.harness.mjs +32 -0
  18. package/esm2022/core/accordion.harness.mjs +6 -0
  19. package/esm2022/core/avatar.harness.mjs +9 -0
  20. package/esm2022/core/badge.harness.mjs +15 -0
  21. package/esm2022/core/button.harness.mjs +17 -0
  22. package/esm2022/core/calendar-sheet.harness.mjs +30 -0
  23. package/esm2022/core/calendar-spin.harness.mjs +33 -0
  24. package/esm2022/core/calendar-year.harness.mjs +23 -0
  25. package/esm2022/core/calendar.harness.mjs +51 -0
  26. package/esm2022/core/card.harness.mjs +15 -0
  27. package/esm2022/core/dialog.harness.mjs +12 -0
  28. package/esm2022/core/dropdown-open.harness.mjs +13 -0
  29. package/esm2022/core/index.mjs +21 -0
  30. package/esm2022/core/island.harness.mjs +39 -0
  31. package/esm2022/core/loader.harness.mjs +20 -0
  32. package/esm2022/core/primitive-textfield.harness.mjs +12 -0
  33. package/esm2022/core/select.harness.mjs +17 -0
  34. package/esm2022/core/spin-button.harness.mjs +13 -0
  35. package/esm2022/core/svg.harness.mjs +18 -0
  36. package/esm2022/core/tag.harness.mjs +26 -0
  37. package/esm2022/core/textfield.harness.mjs +9 -0
  38. package/esm2022/mocks/event.mjs +14 -0
  39. package/esm2022/mocks/sanitizer.mjs +13 -0
  40. package/esm2022/setup-jest/index.mjs +119 -0
  41. package/esm2022/utils/active-element.mjs +12 -0
  42. package/esm2022/utils/configure-test-suite.mjs +32 -0
  43. package/esm2022/utils/date.mjs +18 -0
  44. package/esm2022/utils/helpers.mjs +34 -0
  45. package/esm2022/utils/input/cleaner.unit-common.mjs +79 -0
  46. package/esm2022/utils/input/filler.unit-common.mjs +48 -0
  47. package/esm2022/utils/input/form-control-state.unit-common.mjs +36 -0
  48. package/{esm2015/utils/input/placeholder.unit-common.js → esm2022/utils/input/placeholder.unit-common.mjs} +17 -17
  49. package/esm2022/utils/input/tooltip.unit-common.mjs +46 -0
  50. package/esm2022/utils/keyboard-event.mjs +9 -0
  51. package/esm2022/utils/native-input.page-object.mjs +53 -0
  52. package/esm2022/utils/page-object.mjs +25 -0
  53. package/esm2022/utils/replace-nbsp.mjs +5 -0
  54. package/{esm2015/utils/viewport.js → esm2022/utils/viewport.mjs} +5 -5
  55. package/fesm2022/taiga-ui-testing-core.mjs +365 -0
  56. package/fesm2022/taiga-ui-testing-core.mjs.map +1 -0
  57. package/{fesm2015/taiga-ui-testing-exceptions.js → fesm2022/taiga-ui-testing-exceptions.mjs} +1 -1
  58. package/fesm2022/taiga-ui-testing-exceptions.mjs.map +1 -0
  59. package/{fesm2015/taiga-ui-testing-mocks.js → fesm2022/taiga-ui-testing-mocks.mjs} +5 -3
  60. package/fesm2022/taiga-ui-testing-mocks.mjs.map +1 -0
  61. package/{fesm2015/taiga-ui-testing-setup-jest.js → fesm2022/taiga-ui-testing-setup-jest.mjs} +21 -21
  62. package/fesm2022/taiga-ui-testing-setup-jest.mjs.map +1 -0
  63. package/{fesm2015/taiga-ui-testing-utils.js → fesm2022/taiga-ui-testing-utils.mjs} +94 -104
  64. package/fesm2022/taiga-ui-testing-utils.mjs.map +1 -0
  65. package/{fesm2015/taiga-ui-testing.js → fesm2022/taiga-ui-testing.mjs} +1 -1
  66. package/fesm2022/taiga-ui-testing.mjs.map +1 -0
  67. package/mocks/sanitizer.d.ts +1 -1
  68. package/package.json +49 -13
  69. package/utils/active-element.d.ts +1 -1
  70. package/utils/configure-test-suite.d.ts +2 -1
  71. package/utils/helpers.d.ts +2 -1
  72. package/utils/input/cleaner.unit-common.d.ts +6 -6
  73. package/utils/input/filler.unit-common.d.ts +6 -6
  74. package/utils/input/form-control-state.unit-common.d.ts +5 -5
  75. package/utils/input/placeholder.unit-common.d.ts +5 -5
  76. package/utils/input/tooltip.unit-common.d.ts +5 -5
  77. package/utils/native-input.page-object.d.ts +4 -5
  78. package/utils/page-object.d.ts +2 -2
  79. package/bundles/taiga-ui-testing-core.umd.js +0 -1388
  80. package/bundles/taiga-ui-testing-core.umd.js.map +0 -1
  81. package/bundles/taiga-ui-testing-cypress.umd.js +0 -484
  82. package/bundles/taiga-ui-testing-cypress.umd.js.map +0 -1
  83. package/bundles/taiga-ui-testing-exceptions.umd.js +0 -351
  84. package/bundles/taiga-ui-testing-exceptions.umd.js.map +0 -1
  85. package/bundles/taiga-ui-testing-mocks.umd.js +0 -369
  86. package/bundles/taiga-ui-testing-mocks.umd.js.map +0 -1
  87. package/bundles/taiga-ui-testing-setup-jest.umd.js +0 -135
  88. package/bundles/taiga-ui-testing-setup-jest.umd.js.map +0 -1
  89. package/bundles/taiga-ui-testing-utils.umd.js +0 -933
  90. package/bundles/taiga-ui-testing-utils.umd.js.map +0 -1
  91. package/bundles/taiga-ui-testing.umd.js +0 -46
  92. package/bundles/taiga-ui-testing.umd.js.map +0 -1
  93. package/core/action.harness.d.ts +0 -7
  94. package/core/marker-icon.harness.d.ts +0 -4
  95. package/core/package.json +0 -10
  96. package/core/taiga-ui-testing-core.d.ts +0 -5
  97. package/core/toggle.harness.d.ts +0 -8
  98. package/cypress/assertions/be-in-viewport.d.ts +0 -14
  99. package/cypress/assertions/index.d.ts +0 -1
  100. package/cypress/commands/wait-all-img-inside.command.d.ts +0 -2
  101. package/cypress/index.d.ts +0 -4
  102. package/cypress/package.json +0 -10
  103. package/cypress/snapshot/command.d.ts +0 -16
  104. package/cypress/snapshot/plugin.d.ts +0 -9
  105. package/cypress/taiga-ui-testing-cypress.d.ts +0 -5
  106. package/esm2015/core/accordion-item.harness.js +0 -49
  107. package/esm2015/core/accordion.harness.js +0 -11
  108. package/esm2015/core/action.harness.js +0 -16
  109. package/esm2015/core/avatar.harness.js +0 -11
  110. package/esm2015/core/badge.harness.js +0 -21
  111. package/esm2015/core/button.harness.js +0 -21
  112. package/esm2015/core/calendar.harness.js +0 -84
  113. package/esm2015/core/card.harness.js +0 -25
  114. package/esm2015/core/hosted-dropdown.harness.js +0 -17
  115. package/esm2015/core/index.js +0 -21
  116. package/esm2015/core/island.harness.js +0 -53
  117. package/esm2015/core/loader.harness.js +0 -25
  118. package/esm2015/core/marker-icon.harness.js +0 -5
  119. package/esm2015/core/primitive-calender.harness.js +0 -40
  120. package/esm2015/core/primitive-spin-button.harness.js +0 -17
  121. package/esm2015/core/primitive-textfield.harness.js +0 -16
  122. package/esm2015/core/primitive-year-month-pagination.harness.js +0 -49
  123. package/esm2015/core/primitive-year-picker.harness.js +0 -29
  124. package/esm2015/core/select.harness.js +0 -21
  125. package/esm2015/core/svg.harness.js +0 -27
  126. package/esm2015/core/tag.harness.js +0 -39
  127. package/esm2015/core/textfield.harness.js +0 -11
  128. package/esm2015/core/toggle.harness.js +0 -21
  129. package/esm2015/cypress/assertions/be-in-viewport.js +0 -28
  130. package/esm2015/cypress/assertions/index.js +0 -2
  131. package/esm2015/cypress/commands/wait-all-img-inside.command.js +0 -62
  132. package/esm2015/cypress/index.js +0 -5
  133. package/esm2015/cypress/snapshot/command.js +0 -25
  134. package/esm2015/cypress/snapshot/plugin.js +0 -26
  135. package/esm2015/cypress/taiga-ui-testing-cypress.js +0 -5
  136. package/esm2015/mocks/event.js +0 -12
  137. package/esm2015/mocks/sanitizer.js +0 -13
  138. package/esm2015/setup-jest/index.js +0 -119
  139. package/esm2015/utils/active-element.js +0 -14
  140. package/esm2015/utils/configure-test-suite.js +0 -32
  141. package/esm2015/utils/date.js +0 -18
  142. package/esm2015/utils/helpers.js +0 -36
  143. package/esm2015/utils/input/cleaner.unit-common.js +0 -79
  144. package/esm2015/utils/input/filler.unit-common.js +0 -50
  145. package/esm2015/utils/input/form-control-state.unit-common.js +0 -37
  146. package/esm2015/utils/input/tooltip.unit-common.js +0 -46
  147. package/esm2015/utils/keyboard-event.js +0 -9
  148. package/esm2015/utils/native-input.page-object.js +0 -58
  149. package/esm2015/utils/page-object.js +0 -25
  150. package/esm2015/utils/replace-nbsp.js +0 -6
  151. package/exceptions/package.json +0 -10
  152. package/exceptions/taiga-ui-testing-exceptions.d.ts +0 -5
  153. package/fesm2015/taiga-ui-testing-core.js +0 -557
  154. package/fesm2015/taiga-ui-testing-core.js.map +0 -1
  155. package/fesm2015/taiga-ui-testing-cypress.js +0 -145
  156. package/fesm2015/taiga-ui-testing-cypress.js.map +0 -1
  157. package/fesm2015/taiga-ui-testing-exceptions.js.map +0 -1
  158. package/fesm2015/taiga-ui-testing-mocks.js.map +0 -1
  159. package/fesm2015/taiga-ui-testing-setup-jest.js.map +0 -1
  160. package/fesm2015/taiga-ui-testing-utils.js.map +0 -1
  161. package/fesm2015/taiga-ui-testing.js.map +0 -1
  162. package/mocks/package.json +0 -10
  163. package/mocks/taiga-ui-testing-mocks.d.ts +0 -5
  164. package/setup-jest/package.json +0 -10
  165. package/setup-jest/taiga-ui-testing-setup-jest.d.ts +0 -5
  166. package/taiga-ui-testing.d.ts +0 -5
  167. package/utils/package.json +0 -10
  168. package/utils/taiga-ui-testing-utils.d.ts +0 -5
  169. /package/{esm2015/core/taiga-ui-testing-core.js → esm2022/core/taiga-ui-testing-core.mjs} +0 -0
  170. /package/{esm2015/exceptions/element-is-not-input.exception.js → esm2022/exceptions/element-is-not-input.exception.mjs} +0 -0
  171. /package/{esm2015/exceptions/field-not-found.exception.js → esm2022/exceptions/field-not-found.exception.mjs} +0 -0
  172. /package/{esm2015/exceptions/index.js → esm2022/exceptions/index.mjs} +0 -0
  173. /package/{esm2015/exceptions/taiga-ui-testing-exceptions.js → esm2022/exceptions/taiga-ui-testing-exceptions.mjs} +0 -0
  174. /package/{esm2015/index.js → esm2022/index.mjs} +0 -0
  175. /package/{esm2015/mocks/index.js → esm2022/mocks/index.mjs} +0 -0
  176. /package/{esm2015/mocks/switch-ng-dev-mode.js → esm2022/mocks/switch-ng-dev-mode.mjs} +0 -0
  177. /package/{esm2015/mocks/taiga-ui-testing-mocks.js → esm2022/mocks/taiga-ui-testing-mocks.mjs} +0 -0
  178. /package/{esm2015/setup-jest/taiga-ui-testing-setup-jest.js → esm2022/setup-jest/taiga-ui-testing-setup-jest.mjs} +0 -0
  179. /package/{esm2015/taiga-ui-testing.js → esm2022/taiga-ui-testing.mjs} +0 -0
  180. /package/{esm2015/utils/index.js → esm2022/utils/index.mjs} +0 -0
  181. /package/{esm2015/utils/taiga-ui-testing-utils.js → esm2022/utils/taiga-ui-testing-utils.mjs} +0 -0
@@ -1,1388 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/testing/utils'), require('@angular/cdk/testing')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/testing/core', ['exports', '@taiga-ui/testing/utils', '@angular/cdk/testing'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].testing = global["taiga-ui"].testing || {}, global["taiga-ui"].testing.core = {}), global["taiga-ui"].testing.utils, global.ng.cdk.testing));
5
- })(this, (function (exports, utils, testing) { 'use strict';
6
-
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
- var extendStatics = function (d, b) {
23
- extendStatics = Object.setPrototypeOf ||
24
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25
- function (d, b) { for (var p in b)
26
- if (Object.prototype.hasOwnProperty.call(b, p))
27
- d[p] = b[p]; };
28
- return extendStatics(d, b);
29
- };
30
- function __extends(d, b) {
31
- if (typeof b !== "function" && b !== null)
32
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
33
- extendStatics(d, b);
34
- function __() { this.constructor = d; }
35
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36
- }
37
- var __assign = function () {
38
- __assign = Object.assign || function __assign(t) {
39
- for (var s, i = 1, n = arguments.length; i < n; i++) {
40
- s = arguments[i];
41
- for (var p in s)
42
- if (Object.prototype.hasOwnProperty.call(s, p))
43
- t[p] = s[p];
44
- }
45
- return t;
46
- };
47
- return __assign.apply(this, arguments);
48
- };
49
- function __rest(s, e) {
50
- var t = {};
51
- for (var p in s)
52
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
53
- t[p] = s[p];
54
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
55
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
56
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
57
- t[p[i]] = s[p[i]];
58
- }
59
- return t;
60
- }
61
- function __decorate(decorators, target, key, desc) {
62
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
63
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
64
- r = Reflect.decorate(decorators, target, key, desc);
65
- else
66
- for (var i = decorators.length - 1; i >= 0; i--)
67
- if (d = decorators[i])
68
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
69
- return c > 3 && r && Object.defineProperty(target, key, r), r;
70
- }
71
- function __param(paramIndex, decorator) {
72
- return function (target, key) { decorator(target, key, paramIndex); };
73
- }
74
- function __metadata(metadataKey, metadataValue) {
75
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
76
- return Reflect.metadata(metadataKey, metadataValue);
77
- }
78
- function __awaiter(thisArg, _arguments, P, generator) {
79
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
80
- return new (P || (P = Promise))(function (resolve, reject) {
81
- function fulfilled(value) { try {
82
- step(generator.next(value));
83
- }
84
- catch (e) {
85
- reject(e);
86
- } }
87
- function rejected(value) { try {
88
- step(generator["throw"](value));
89
- }
90
- catch (e) {
91
- reject(e);
92
- } }
93
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
94
- step((generator = generator.apply(thisArg, _arguments || [])).next());
95
- });
96
- }
97
- function __generator(thisArg, body) {
98
- var _ = { label: 0, sent: function () { if (t[0] & 1)
99
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
100
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
101
- function verb(n) { return function (v) { return step([n, v]); }; }
102
- function step(op) {
103
- if (f)
104
- throw new TypeError("Generator is already executing.");
105
- while (_)
106
- try {
107
- 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)
108
- return t;
109
- if (y = 0, t)
110
- op = [op[0] & 2, t.value];
111
- switch (op[0]) {
112
- case 0:
113
- case 1:
114
- t = op;
115
- break;
116
- case 4:
117
- _.label++;
118
- return { value: op[1], done: false };
119
- case 5:
120
- _.label++;
121
- y = op[1];
122
- op = [0];
123
- continue;
124
- case 7:
125
- op = _.ops.pop();
126
- _.trys.pop();
127
- continue;
128
- default:
129
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
130
- _ = 0;
131
- continue;
132
- }
133
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
134
- _.label = op[1];
135
- break;
136
- }
137
- if (op[0] === 6 && _.label < t[1]) {
138
- _.label = t[1];
139
- t = op;
140
- break;
141
- }
142
- if (t && _.label < t[2]) {
143
- _.label = t[2];
144
- _.ops.push(op);
145
- break;
146
- }
147
- if (t[2])
148
- _.ops.pop();
149
- _.trys.pop();
150
- continue;
151
- }
152
- op = body.call(thisArg, _);
153
- }
154
- catch (e) {
155
- op = [6, e];
156
- y = 0;
157
- }
158
- finally {
159
- f = t = 0;
160
- }
161
- if (op[0] & 5)
162
- throw op[1];
163
- return { value: op[0] ? op[1] : void 0, done: true };
164
- }
165
- }
166
- var __createBinding = Object.create ? (function (o, m, k, k2) {
167
- if (k2 === undefined)
168
- k2 = k;
169
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
170
- }) : (function (o, m, k, k2) {
171
- if (k2 === undefined)
172
- k2 = k;
173
- o[k2] = m[k];
174
- });
175
- function __exportStar(m, o) {
176
- for (var p in m)
177
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
178
- __createBinding(o, m, p);
179
- }
180
- function __values(o) {
181
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
182
- if (m)
183
- return m.call(o);
184
- if (o && typeof o.length === "number")
185
- return {
186
- next: function () {
187
- if (o && i >= o.length)
188
- o = void 0;
189
- return { value: o && o[i++], done: !o };
190
- }
191
- };
192
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
193
- }
194
- function __read(o, n) {
195
- var m = typeof Symbol === "function" && o[Symbol.iterator];
196
- if (!m)
197
- return o;
198
- var i = m.call(o), r, ar = [], e;
199
- try {
200
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
201
- ar.push(r.value);
202
- }
203
- catch (error) {
204
- e = { error: error };
205
- }
206
- finally {
207
- try {
208
- if (r && !r.done && (m = i["return"]))
209
- m.call(i);
210
- }
211
- finally {
212
- if (e)
213
- throw e.error;
214
- }
215
- }
216
- return ar;
217
- }
218
- /** @deprecated */
219
- function __spread() {
220
- for (var ar = [], i = 0; i < arguments.length; i++)
221
- ar = ar.concat(__read(arguments[i]));
222
- return ar;
223
- }
224
- /** @deprecated */
225
- function __spreadArrays() {
226
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
227
- s += arguments[i].length;
228
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
229
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
230
- r[k] = a[j];
231
- return r;
232
- }
233
- function __spreadArray(to, from, pack) {
234
- if (pack || arguments.length === 2)
235
- for (var i = 0, l = from.length, ar; i < l; i++) {
236
- if (ar || !(i in from)) {
237
- if (!ar)
238
- ar = Array.prototype.slice.call(from, 0, i);
239
- ar[i] = from[i];
240
- }
241
- }
242
- return to.concat(ar || from);
243
- }
244
- function __await(v) {
245
- return this instanceof __await ? (this.v = v, this) : new __await(v);
246
- }
247
- function __asyncGenerator(thisArg, _arguments, generator) {
248
- if (!Symbol.asyncIterator)
249
- throw new TypeError("Symbol.asyncIterator is not defined.");
250
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
251
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
252
- function verb(n) { if (g[n])
253
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
254
- function resume(n, v) { try {
255
- step(g[n](v));
256
- }
257
- catch (e) {
258
- settle(q[0][3], e);
259
- } }
260
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
261
- function fulfill(value) { resume("next", value); }
262
- function reject(value) { resume("throw", value); }
263
- function settle(f, v) { if (f(v), q.shift(), q.length)
264
- resume(q[0][0], q[0][1]); }
265
- }
266
- function __asyncDelegator(o) {
267
- var i, p;
268
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
269
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
270
- }
271
- function __asyncValues(o) {
272
- if (!Symbol.asyncIterator)
273
- throw new TypeError("Symbol.asyncIterator is not defined.");
274
- var m = o[Symbol.asyncIterator], i;
275
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
276
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
277
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
278
- }
279
- function __makeTemplateObject(cooked, raw) {
280
- if (Object.defineProperty) {
281
- Object.defineProperty(cooked, "raw", { value: raw });
282
- }
283
- else {
284
- cooked.raw = raw;
285
- }
286
- return cooked;
287
- }
288
- ;
289
- var __setModuleDefault = Object.create ? (function (o, v) {
290
- Object.defineProperty(o, "default", { enumerable: true, value: v });
291
- }) : function (o, v) {
292
- o["default"] = v;
293
- };
294
- function __importStar(mod) {
295
- if (mod && mod.__esModule)
296
- return mod;
297
- var result = {};
298
- if (mod != null)
299
- for (var k in mod)
300
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
301
- __createBinding(result, mod, k);
302
- __setModuleDefault(result, mod);
303
- return result;
304
- }
305
- function __importDefault(mod) {
306
- return (mod && mod.__esModule) ? mod : { default: mod };
307
- }
308
- function __classPrivateFieldGet(receiver, state, kind, f) {
309
- if (kind === "a" && !f)
310
- throw new TypeError("Private accessor was defined without a getter");
311
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
312
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
313
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
314
- }
315
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
316
- if (kind === "m")
317
- throw new TypeError("Private method is not writable");
318
- if (kind === "a" && !f)
319
- throw new TypeError("Private accessor was defined without a setter");
320
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
321
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
322
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
323
- }
324
-
325
- var TuiAccordionHarness = /** @class */ (function (_super) {
326
- __extends(TuiAccordionHarness, _super);
327
- function TuiAccordionHarness() {
328
- return _super !== null && _super.apply(this, arguments) || this;
329
- }
330
- TuiAccordionHarness.prototype.hasRoundedCorners = function () {
331
- return __awaiter(this, void 0, void 0, function () {
332
- return __generator(this, function (_a) {
333
- switch (_a.label) {
334
- case 0: return [4 /*yield*/, this.locatorFor(".t-group")()];
335
- case 1: return [2 /*return*/, (_a.sent()).hasClass("tui-group_rounded")];
336
- }
337
- });
338
- });
339
- };
340
- return TuiAccordionHarness;
341
- }(utils.TuiContentContainerComponentHarness));
342
- TuiAccordionHarness.hostSelector = "tui-accordion";
343
-
344
- var TuiSvgHarness = /** @class */ (function (_super) {
345
- __extends(TuiSvgHarness, _super);
346
- function TuiSvgHarness() {
347
- return _super !== null && _super.apply(this, arguments) || this;
348
- }
349
- TuiSvgHarness.prototype.click = function () {
350
- return __awaiter(this, void 0, void 0, function () {
351
- return __generator(this, function (_c) {
352
- switch (_c.label) {
353
- case 0: return [4 /*yield*/, this.host()];
354
- case 1: return [2 /*return*/, (_c.sent()).click()];
355
- }
356
- });
357
- });
358
- };
359
- TuiSvgHarness.prototype.text = function () {
360
- return __awaiter(this, void 0, void 0, function () {
361
- return __generator(this, function (_c) {
362
- switch (_c.label) {
363
- case 0: return [4 /*yield*/, this.host()];
364
- case 1: return [2 /*return*/, (_c.sent()).text()];
365
- }
366
- });
367
- });
368
- };
369
- TuiSvgHarness.prototype.isInnerHTML = function () {
370
- return __awaiter(this, void 0, void 0, function () {
371
- return __generator(this, function (_c) {
372
- switch (_c.label) {
373
- case 0: return [4 /*yield*/, this.locatorForOptional("div")()];
374
- case 1: return [2 /*return*/, !!(_c.sent())];
375
- }
376
- });
377
- });
378
- };
379
- TuiSvgHarness.prototype.getUse = function () {
380
- var _a, _b;
381
- return __awaiter(this, void 0, void 0, function () {
382
- return __generator(this, function (_c) {
383
- switch (_c.label) {
384
- case 0: return [4 /*yield*/, this.locatorForOptional("use")()];
385
- case 1: return [2 /*return*/, ((_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.getAttribute("xlink:href")) !== null && _b !== void 0 ? _b : null)];
386
- }
387
- });
388
- });
389
- };
390
- return TuiSvgHarness;
391
- }(utils.TuiComponentHarness));
392
- TuiSvgHarness.hostSelector = "tui-svg";
393
-
394
- var TuiAccordionItemHarness = /** @class */ (function (_super) {
395
- __extends(TuiAccordionItemHarness, _super);
396
- function TuiAccordionItemHarness() {
397
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
398
- _this.header = _this.locatorFor(".t-header");
399
- return _this;
400
- }
401
- TuiAccordionItemHarness.prototype.getTitle = function () {
402
- return __awaiter(this, void 0, void 0, function () {
403
- return __generator(this, function (_c) {
404
- switch (_c.label) {
405
- case 0: return [4 /*yield*/, this.locatorFor(".t-title")()];
406
- case 1: return [2 /*return*/, (_c.sent()).text()];
407
- }
408
- });
409
- });
410
- };
411
- TuiAccordionItemHarness.prototype.getContent = function () {
412
- var _a, _b;
413
- return __awaiter(this, void 0, void 0, function () {
414
- return __generator(this, function (_c) {
415
- switch (_c.label) {
416
- case 0: return [4 /*yield*/, this.locatorForOptional(".t-content")()];
417
- case 1: return [2 /*return*/, (_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.text()) !== null && _b !== void 0 ? _b : null];
418
- }
419
- });
420
- });
421
- };
422
- TuiAccordionItemHarness.prototype.clickHeader = function () {
423
- return __awaiter(this, void 0, void 0, function () {
424
- return __generator(this, function (_c) {
425
- switch (_c.label) {
426
- case 0: return [4 /*yield*/, this.locatorFor(".t-header")()];
427
- case 1: return [2 /*return*/, (_c.sent()).click()];
428
- }
429
- });
430
- });
431
- };
432
- TuiAccordionItemHarness.prototype.getBorders = function () {
433
- return __awaiter(this, void 0, void 0, function () {
434
- return __generator(this, function (_c) {
435
- switch (_c.label) {
436
- case 0: return [4 /*yield*/, this.host()];
437
- case 1: return [2 /*return*/, (_c.sent()).getAttribute("data-borders")];
438
- }
439
- });
440
- });
441
- };
442
- TuiAccordionItemHarness.prototype.hasArrow = function () {
443
- var _a;
444
- return __awaiter(this, void 0, void 0, function () {
445
- return __generator(this, function (_c) {
446
- switch (_c.label) {
447
- case 0: return [4 /*yield*/, this.locatorForOptional(TuiSvgHarness.with({ selector: ".t-icon" }))()];
448
- case 1: return [2 /*return*/, ((_a = !!(_c.sent())) !== null && _a !== void 0 ? _a : false)];
449
- }
450
- });
451
- });
452
- };
453
- TuiAccordionItemHarness.prototype.focus = function () {
454
- return __awaiter(this, void 0, void 0, function () {
455
- return __generator(this, function (_c) {
456
- switch (_c.label) {
457
- case 0: return [4 /*yield*/, this.header()];
458
- case 1: return [2 /*return*/, (_c.sent()).focus()];
459
- }
460
- });
461
- });
462
- };
463
- TuiAccordionItemHarness.prototype.sendEscKey = function () {
464
- return __awaiter(this, void 0, void 0, function () {
465
- return __generator(this, function (_c) {
466
- switch (_c.label) {
467
- case 0: return [4 /*yield*/, this.header()];
468
- case 1: return [2 /*return*/, (_c.sent()).sendKeys(testing.TestKey.ESCAPE)];
469
- }
470
- });
471
- });
472
- };
473
- return TuiAccordionItemHarness;
474
- }(utils.TuiContentContainerComponentHarness));
475
- TuiAccordionItemHarness.hostSelector = "tui-accordion-item";
476
-
477
- var TuiMarkerIconHarness = /** @class */ (function (_super) {
478
- __extends(TuiMarkerIconHarness, _super);
479
- function TuiMarkerIconHarness() {
480
- return _super !== null && _super.apply(this, arguments) || this;
481
- }
482
- return TuiMarkerIconHarness;
483
- }(utils.TuiComponentHarness));
484
- TuiMarkerIconHarness.hostSelector = "tui-marker-icon";
485
-
486
- var TuiActionHarness = /** @class */ (function (_super) {
487
- __extends(TuiActionHarness, _super);
488
- function TuiActionHarness() {
489
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
490
- _this.getIconHarness = _this.locatorForOptional(TuiMarkerIconHarness);
491
- return _this;
492
- }
493
- TuiActionHarness.prototype.icon = function () {
494
- return __awaiter(this, void 0, void 0, function () {
495
- return __generator(this, function (_a) {
496
- return [2 /*return*/, this.getIconHarness()];
497
- });
498
- });
499
- };
500
- return TuiActionHarness;
501
- }(utils.TuiComponentHarness));
502
- TuiActionHarness.hostSelector = "button[tuiAction], a[tuiAction]";
503
-
504
- var TuiAvatarHarness = /** @class */ (function (_super) {
505
- __extends(TuiAvatarHarness, _super);
506
- function TuiAvatarHarness() {
507
- return _super !== null && _super.apply(this, arguments) || this;
508
- }
509
- TuiAvatarHarness.prototype.text = function () {
510
- return __awaiter(this, void 0, void 0, function () {
511
- return __generator(this, function (_a) {
512
- switch (_a.label) {
513
- case 0: return [4 /*yield*/, this.host()];
514
- case 1: return [2 /*return*/, (_a.sent()).text()];
515
- }
516
- });
517
- });
518
- };
519
- return TuiAvatarHarness;
520
- }(utils.TuiComponentHarness));
521
- TuiAvatarHarness.hostSelector = "tui-avatar";
522
-
523
- var TuiBadgeHarness = /** @class */ (function (_super) {
524
- __extends(TuiBadgeHarness, _super);
525
- function TuiBadgeHarness() {
526
- return _super !== null && _super.apply(this, arguments) || this;
527
- }
528
- TuiBadgeHarness.prototype.text = function () {
529
- return __awaiter(this, void 0, void 0, function () {
530
- return __generator(this, function (_a) {
531
- switch (_a.label) {
532
- case 0: return [4 /*yield*/, this.host()];
533
- case 1: return [2 /*return*/, (_a.sent()).text()];
534
- }
535
- });
536
- });
537
- };
538
- TuiBadgeHarness.prototype.padding = function () {
539
- return __awaiter(this, void 0, void 0, function () {
540
- return __generator(this, function (_a) {
541
- switch (_a.label) {
542
- case 0: return [4 /*yield*/, this.host()];
543
- case 1: return [2 /*return*/, (_a.sent()).getAttribute("data-padding")];
544
- }
545
- });
546
- });
547
- };
548
- TuiBadgeHarness.prototype.hasClass = function (cls) {
549
- return __awaiter(this, void 0, void 0, function () {
550
- return __generator(this, function (_a) {
551
- switch (_a.label) {
552
- case 0: return [4 /*yield*/, this.host()];
553
- case 1: return [2 /*return*/, (_a.sent()).hasClass(cls)];
554
- }
555
- });
556
- });
557
- };
558
- return TuiBadgeHarness;
559
- }(utils.TuiComponentHarness));
560
- TuiBadgeHarness.hostSelector = "tui-badge";
561
-
562
- exports.TuiLoaderHarness = /** @class */ (function (_super) {
563
- __extends(TuiLoaderHarness, _super);
564
- function TuiLoaderHarness() {
565
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
566
- _this.loader = _this.locatorForOptional("fieldset.t-content + .t-loader");
567
- return _this;
568
- }
569
- TuiLoaderHarness.prototype.isLoading = function () {
570
- return __awaiter(this, void 0, void 0, function () {
571
- return __generator(this, function (_b) {
572
- switch (_b.label) {
573
- case 0: return [4 /*yield*/, this.loader()];
574
- case 1: return [2 /*return*/, !!(_b.sent())];
575
- }
576
- });
577
- });
578
- };
579
- TuiLoaderHarness.prototype.getText = function () {
580
- var _a;
581
- return __awaiter(this, void 0, void 0, function () {
582
- var loader;
583
- return __generator(this, function (_b) {
584
- switch (_b.label) {
585
- case 0: return [4 /*yield*/, this.loader()];
586
- case 1:
587
- loader = _b.sent();
588
- return [2 /*return*/, (_a = loader === null || loader === void 0 ? void 0 : loader.text()) !== null && _a !== void 0 ? _a : ""];
589
- }
590
- });
591
- });
592
- };
593
- return TuiLoaderHarness;
594
- }(utils.tuiHarnessWith("tui-loader")));
595
- exports.TuiLoaderHarness = __decorate([
596
- utils.tuiWithPredicate
597
- ], exports.TuiLoaderHarness);
598
-
599
- var TuiButtonHarness = /** @class */ (function (_super) {
600
- __extends(TuiButtonHarness, _super);
601
- function TuiButtonHarness() {
602
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
603
- _this.loader = _this.locatorForOptional(exports.TuiLoaderHarness);
604
- return _this;
605
- }
606
- TuiButtonHarness.prototype.isLoading = function () {
607
- return __awaiter(this, void 0, void 0, function () {
608
- return __generator(this, function (_a) {
609
- switch (_a.label) {
610
- case 0: return [4 /*yield*/, this.loader()];
611
- case 1: return [2 /*return*/, !!(_a.sent())];
612
- }
613
- });
614
- });
615
- };
616
- TuiButtonHarness.prototype.hasClass = function (input) {
617
- return __awaiter(this, void 0, void 0, function () {
618
- return __generator(this, function (_a) {
619
- switch (_a.label) {
620
- case 0: return [4 /*yield*/, this.host()];
621
- case 1: return [2 /*return*/, (_a.sent()).hasClass(input)];
622
- }
623
- });
624
- });
625
- };
626
- return TuiButtonHarness;
627
- }(utils.TuiComponentHarness));
628
- TuiButtonHarness.hostSelector = "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]";
629
-
630
- var TuiPrimitiveCalendarHarness = /** @class */ (function (_super) {
631
- __extends(TuiPrimitiveCalendarHarness, _super);
632
- function TuiPrimitiveCalendarHarness() {
633
- return _super !== null && _super.apply(this, arguments) || this;
634
- }
635
- TuiPrimitiveCalendarHarness.prototype.clickDay = function (day) {
636
- return __awaiter(this, void 0, void 0, function () {
637
- var dayCell;
638
- return __generator(this, function (_a) {
639
- switch (_a.label) {
640
- case 0: return [4 /*yield*/, this.locatorFor(TuiDayCellHarness.with({ day: day, ancestor: "#date-rows" }))()];
641
- case 1:
642
- dayCell = _a.sent();
643
- return [2 /*return*/, dayCell.click()];
644
- }
645
- });
646
- });
647
- };
648
- TuiPrimitiveCalendarHarness.prototype.hoverDay = function (day) {
649
- return __awaiter(this, void 0, void 0, function () {
650
- var dayCell;
651
- return __generator(this, function (_a) {
652
- switch (_a.label) {
653
- case 0: return [4 /*yield*/, this.locatorFor(TuiDayCellHarness.with({ day: day, ancestor: "#date-rows" }))()];
654
- case 1:
655
- dayCell = _a.sent();
656
- return [2 /*return*/, dayCell.hover()];
657
- }
658
- });
659
- });
660
- };
661
- return TuiPrimitiveCalendarHarness;
662
- }(utils.TuiComponentHarness));
663
- TuiPrimitiveCalendarHarness.hostSelector = "tui-primitive-calendar";
664
- var TuiDayCellHarness = /** @class */ (function (_super) {
665
- __extends(TuiDayCellHarness, _super);
666
- function TuiDayCellHarness() {
667
- return _super !== null && _super.apply(this, arguments) || this;
668
- }
669
- TuiDayCellHarness.with = function (options) {
670
- var _this = this;
671
- return new testing.HarnessPredicate(TuiDayCellHarness, options).addOption("day", options.day, function (harness, text) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
672
- return [2 /*return*/, testing.HarnessPredicate.stringMatches(harness.getText(), "" + text)];
673
- }); }); });
674
- };
675
- TuiDayCellHarness.prototype.getText = function () {
676
- return __awaiter(this, void 0, void 0, function () {
677
- return __generator(this, function (_a) {
678
- switch (_a.label) {
679
- case 0: return [4 /*yield*/, this.locatorFor(".t-item")()];
680
- case 1: return [2 /*return*/, (_a.sent()).text()];
681
- }
682
- });
683
- });
684
- };
685
- TuiDayCellHarness.prototype.click = function () {
686
- return __awaiter(this, void 0, void 0, function () {
687
- return __generator(this, function (_a) {
688
- switch (_a.label) {
689
- case 0: return [4 /*yield*/, this.host()];
690
- case 1: return [2 /*return*/, (_a.sent()).click()];
691
- }
692
- });
693
- });
694
- };
695
- TuiDayCellHarness.prototype.hover = function () {
696
- return __awaiter(this, void 0, void 0, function () {
697
- return __generator(this, function (_a) {
698
- switch (_a.label) {
699
- case 0: return [4 /*yield*/, this.host()];
700
- case 1: return [2 /*return*/, (_a.sent()).hover()];
701
- }
702
- });
703
- });
704
- };
705
- return TuiDayCellHarness;
706
- }(testing.ComponentHarness));
707
- TuiDayCellHarness.hostSelector = ".t-cell:not(.t-cell_unavailable)";
708
-
709
- var TuiPrimitiveSpinButtonHarness = /** @class */ (function (_super) {
710
- __extends(TuiPrimitiveSpinButtonHarness, _super);
711
- function TuiPrimitiveSpinButtonHarness() {
712
- return _super !== null && _super.apply(this, arguments) || this;
713
- }
714
- TuiPrimitiveSpinButtonHarness.prototype.isLeftDisabled = function () {
715
- return __awaiter(this, void 0, void 0, function () {
716
- return __generator(this, function (_a) {
717
- switch (_a.label) {
718
- case 0: return [4 /*yield*/, this.locatorForAll(TuiButtonHarness)()];
719
- case 1: return [2 /*return*/, (_a.sent())[0].hasClass("t-hidden")];
720
- }
721
- });
722
- });
723
- };
724
- TuiPrimitiveSpinButtonHarness.prototype.isRightDisabled = function () {
725
- return __awaiter(this, void 0, void 0, function () {
726
- return __generator(this, function (_a) {
727
- switch (_a.label) {
728
- case 0: return [4 /*yield*/, this.locatorForAll(TuiButtonHarness)()];
729
- case 1: return [2 /*return*/, (_a.sent())[1].hasClass("t-hidden")];
730
- }
731
- });
732
- });
733
- };
734
- return TuiPrimitiveSpinButtonHarness;
735
- }(utils.TuiComponentHarness));
736
- TuiPrimitiveSpinButtonHarness.hostSelector = "tui-primitive-spin-button";
737
-
738
- var TuiPrimitiveYearMonthPaginationHarness = /** @class */ (function (_super) {
739
- __extends(TuiPrimitiveYearMonthPaginationHarness, _super);
740
- function TuiPrimitiveYearMonthPaginationHarness() {
741
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
742
- _this.buttonLeft = _this.locatorForOptional("button[tuiIconButton]:first-child");
743
- _this.content = _this.locatorForOptional(".t-calendar-title");
744
- _this.buttonRight = _this.locatorForOptional("button[tuiIconButton]:last-child");
745
- _this.button = _this.locatorForOptional("#year-btn");
746
- _this.primitiveSpinButton = _this.locatorFor(TuiPrimitiveSpinButtonHarness);
747
- return _this;
748
- }
749
- TuiPrimitiveYearMonthPaginationHarness.prototype.clickLeft = function () {
750
- var _a;
751
- return __awaiter(this, void 0, void 0, function () {
752
- return __generator(this, function (_c) {
753
- switch (_c.label) {
754
- case 0: return [4 /*yield*/, this.buttonLeft()];
755
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.click()];
756
- }
757
- });
758
- });
759
- };
760
- TuiPrimitiveYearMonthPaginationHarness.prototype.getContentText = function () {
761
- var _a, _b;
762
- return __awaiter(this, void 0, void 0, function () {
763
- return __generator(this, function (_c) {
764
- switch (_c.label) {
765
- case 0: return [4 /*yield*/, this.content()];
766
- case 1: return [2 /*return*/, (_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.text()) !== null && _b !== void 0 ? _b : ""];
767
- }
768
- });
769
- });
770
- };
771
- TuiPrimitiveYearMonthPaginationHarness.prototype.clickRight = function () {
772
- var _a;
773
- return __awaiter(this, void 0, void 0, function () {
774
- return __generator(this, function (_c) {
775
- switch (_c.label) {
776
- case 0: return [4 /*yield*/, this.buttonRight()];
777
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.click()];
778
- }
779
- });
780
- });
781
- };
782
- TuiPrimitiveYearMonthPaginationHarness.prototype.clickYear = function () {
783
- var _a;
784
- return __awaiter(this, void 0, void 0, function () {
785
- return __generator(this, function (_c) {
786
- switch (_c.label) {
787
- case 0: return [4 /*yield*/, this.button()];
788
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.click()];
789
- }
790
- });
791
- });
792
- };
793
- TuiPrimitiveYearMonthPaginationHarness.prototype.isLeftDisabled = function () {
794
- return __awaiter(this, void 0, void 0, function () {
795
- return __generator(this, function (_c) {
796
- switch (_c.label) {
797
- case 0: return [4 /*yield*/, this.primitiveSpinButton()];
798
- case 1: return [2 /*return*/, (_c.sent()).isLeftDisabled()];
799
- }
800
- });
801
- });
802
- };
803
- TuiPrimitiveYearMonthPaginationHarness.prototype.isRightDisabled = function () {
804
- return __awaiter(this, void 0, void 0, function () {
805
- return __generator(this, function (_c) {
806
- switch (_c.label) {
807
- case 0: return [4 /*yield*/, this.primitiveSpinButton()];
808
- case 1: return [2 /*return*/, (_c.sent()).isRightDisabled()];
809
- }
810
- });
811
- });
812
- };
813
- return TuiPrimitiveYearMonthPaginationHarness;
814
- }(utils.TuiComponentHarness));
815
- TuiPrimitiveYearMonthPaginationHarness.hostSelector = "tui-primitive-year-month-pagination";
816
-
817
- var TuiPrimitiveYearPickerHarness = /** @class */ (function (_super) {
818
- __extends(TuiPrimitiveYearPickerHarness, _super);
819
- function TuiPrimitiveYearPickerHarness() {
820
- return _super !== null && _super.apply(this, arguments) || this;
821
- }
822
- TuiPrimitiveYearPickerHarness.prototype.clickYear = function (year) {
823
- return __awaiter(this, void 0, void 0, function () {
824
- var yearCell;
825
- return __generator(this, function (_a) {
826
- switch (_a.label) {
827
- case 0: return [4 /*yield*/, this.locatorFor(TuiYearCellHarness.with({ year: year }))()];
828
- case 1:
829
- yearCell = _a.sent();
830
- return [2 /*return*/, yearCell.click()];
831
- }
832
- });
833
- });
834
- };
835
- return TuiPrimitiveYearPickerHarness;
836
- }(utils.TuiComponentHarness));
837
- TuiPrimitiveYearPickerHarness.hostSelector = "tui-primitive-year-picker";
838
- var TuiYearCellHarness = /** @class */ (function (_super) {
839
- __extends(TuiYearCellHarness, _super);
840
- function TuiYearCellHarness() {
841
- return _super !== null && _super.apply(this, arguments) || this;
842
- }
843
- TuiYearCellHarness.with = function (options) {
844
- var _this = this;
845
- return new testing.HarnessPredicate(TuiYearCellHarness, options).addOption("year", options.year, function (harness, text) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
846
- return [2 /*return*/, testing.HarnessPredicate.stringMatches(harness.getText(), text)];
847
- }); }); });
848
- };
849
- TuiYearCellHarness.prototype.getText = function () {
850
- return __awaiter(this, void 0, void 0, function () {
851
- return __generator(this, function (_a) {
852
- switch (_a.label) {
853
- case 0: return [4 /*yield*/, this.locatorFor(".t-item")()];
854
- case 1: return [2 /*return*/, (_a.sent()).text()];
855
- }
856
- });
857
- });
858
- };
859
- TuiYearCellHarness.prototype.click = function () {
860
- return __awaiter(this, void 0, void 0, function () {
861
- return __generator(this, function (_a) {
862
- switch (_a.label) {
863
- case 0: return [4 /*yield*/, this.host()];
864
- case 1: return [2 /*return*/, (_a.sent()).click()];
865
- }
866
- });
867
- });
868
- };
869
- return TuiYearCellHarness;
870
- }(testing.ComponentHarness));
871
- TuiYearCellHarness.hostSelector = ".t-cell";
872
-
873
- var TuiCalendarHarness = /** @class */ (function (_super) {
874
- __extends(TuiCalendarHarness, _super);
875
- function TuiCalendarHarness() {
876
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
877
- _this.getPrimitiveYearPickerHarness = _this.locatorForOptional(TuiPrimitiveYearPickerHarness);
878
- _this.getPrimitiveYearMonthPaginationHarness = _this.locatorForOptional(TuiPrimitiveYearMonthPaginationHarness);
879
- _this.getPrimitiveCalendarHarness = _this.locatorForOptional(TuiPrimitiveCalendarHarness);
880
- return _this;
881
- }
882
- TuiCalendarHarness.prototype.yearPickerShown = function () {
883
- return __awaiter(this, void 0, void 0, function () {
884
- return __generator(this, function (_c) {
885
- switch (_c.label) {
886
- case 0: return [4 /*yield*/, this.getPrimitiveYearPickerHarness()];
887
- case 1: return [2 /*return*/, !!(_c.sent())];
888
- }
889
- });
890
- });
891
- };
892
- TuiCalendarHarness.prototype.yearMonthPaginationShown = function () {
893
- return __awaiter(this, void 0, void 0, function () {
894
- return __generator(this, function (_c) {
895
- switch (_c.label) {
896
- case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
897
- case 1: return [2 /*return*/, !!(_c.sent())];
898
- }
899
- });
900
- });
901
- };
902
- TuiCalendarHarness.prototype.primitiveCalendarShown = function () {
903
- return __awaiter(this, void 0, void 0, function () {
904
- return __generator(this, function (_c) {
905
- switch (_c.label) {
906
- case 0: return [4 /*yield*/, this.getPrimitiveCalendarHarness()];
907
- case 1: return [2 /*return*/, !!(_c.sent())];
908
- }
909
- });
910
- });
911
- };
912
- TuiCalendarHarness.prototype.isPaginationLeftDisabled = function () {
913
- var _a, _b;
914
- return __awaiter(this, void 0, void 0, function () {
915
- return __generator(this, function (_c) {
916
- switch (_c.label) {
917
- case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
918
- case 1: return [2 /*return*/, ((_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.isLeftDisabled()) !== null && _b !== void 0 ? _b : false)];
919
- }
920
- });
921
- });
922
- };
923
- TuiCalendarHarness.prototype.isPaginationRightDisabled = function () {
924
- var _a, _b;
925
- return __awaiter(this, void 0, void 0, function () {
926
- return __generator(this, function (_c) {
927
- switch (_c.label) {
928
- case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
929
- case 1: return [2 /*return*/, ((_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.isRightDisabled()) !== null && _b !== void 0 ? _b : false)];
930
- }
931
- });
932
- });
933
- };
934
- TuiCalendarHarness.prototype.clickMonthLeft = function () {
935
- var _a;
936
- return __awaiter(this, void 0, void 0, function () {
937
- return __generator(this, function (_c) {
938
- switch (_c.label) {
939
- case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
940
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.clickLeft()];
941
- }
942
- });
943
- });
944
- };
945
- TuiCalendarHarness.prototype.getContentText = function () {
946
- var _a, _b;
947
- return __awaiter(this, void 0, void 0, function () {
948
- return __generator(this, function (_c) {
949
- switch (_c.label) {
950
- case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
951
- case 1: return [2 /*return*/, ((_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.getContentText()) !== null && _b !== void 0 ? _b : "")];
952
- }
953
- });
954
- });
955
- };
956
- TuiCalendarHarness.prototype.clickMonthRight = function () {
957
- var _a;
958
- return __awaiter(this, void 0, void 0, function () {
959
- return __generator(this, function (_c) {
960
- switch (_c.label) {
961
- case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
962
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.clickRight()];
963
- }
964
- });
965
- });
966
- };
967
- TuiCalendarHarness.prototype.clickPaginationYear = function () {
968
- var _a;
969
- return __awaiter(this, void 0, void 0, function () {
970
- return __generator(this, function (_c) {
971
- switch (_c.label) {
972
- case 0: return [4 /*yield*/, this.getPrimitiveYearMonthPaginationHarness()];
973
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.clickYear()];
974
- }
975
- });
976
- });
977
- };
978
- TuiCalendarHarness.prototype.clickPickerYear = function (year) {
979
- var _a;
980
- return __awaiter(this, void 0, void 0, function () {
981
- return __generator(this, function (_c) {
982
- switch (_c.label) {
983
- case 0: return [4 /*yield*/, this.getPrimitiveYearPickerHarness()];
984
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.clickYear(year)];
985
- }
986
- });
987
- });
988
- };
989
- TuiCalendarHarness.prototype.clickDay = function (day) {
990
- var _a;
991
- return __awaiter(this, void 0, void 0, function () {
992
- return __generator(this, function (_c) {
993
- switch (_c.label) {
994
- case 0: return [4 /*yield*/, this.getPrimitiveCalendarHarness()];
995
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.clickDay(day)];
996
- }
997
- });
998
- });
999
- };
1000
- TuiCalendarHarness.prototype.hoverDay = function (day) {
1001
- var _a;
1002
- return __awaiter(this, void 0, void 0, function () {
1003
- return __generator(this, function (_c) {
1004
- switch (_c.label) {
1005
- case 0: return [4 /*yield*/, this.getPrimitiveCalendarHarness()];
1006
- case 1: return [2 /*return*/, (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.hoverDay(day)];
1007
- }
1008
- });
1009
- });
1010
- };
1011
- return TuiCalendarHarness;
1012
- }(utils.TuiComponentHarness));
1013
- TuiCalendarHarness.hostSelector = "tui-calendar";
1014
-
1015
- var TuiThumbnailCardHarness = /** @class */ (function (_super) {
1016
- __extends(TuiThumbnailCardHarness, _super);
1017
- function TuiThumbnailCardHarness() {
1018
- return _super !== null && _super.apply(this, arguments) || this;
1019
- }
1020
- TuiThumbnailCardHarness.prototype.hasPaymentSystemLogo = function () {
1021
- return __awaiter(this, void 0, void 0, function () {
1022
- var tuiSvg;
1023
- return __generator(this, function (_a) {
1024
- switch (_a.label) {
1025
- case 0: return [4 /*yield*/, this.locatorForOptional(TuiSvgHarness.with({ selector: ".t-payment-system-logo" }))()];
1026
- case 1:
1027
- tuiSvg = _a.sent();
1028
- return [2 /*return*/, !!tuiSvg];
1029
- }
1030
- });
1031
- });
1032
- };
1033
- TuiThumbnailCardHarness.prototype.hasBrandLogo = function () {
1034
- return __awaiter(this, void 0, void 0, function () {
1035
- var tuiSvg;
1036
- return __generator(this, function (_a) {
1037
- switch (_a.label) {
1038
- case 0: return [4 /*yield*/, this.locatorForOptional(TuiSvgHarness.with({ selector: ".t-brand-logo" }))()];
1039
- case 1:
1040
- tuiSvg = _a.sent();
1041
- return [2 /*return*/, !!tuiSvg];
1042
- }
1043
- });
1044
- });
1045
- };
1046
- return TuiThumbnailCardHarness;
1047
- }(utils.TuiComponentHarness));
1048
- TuiThumbnailCardHarness.hostSelector = "tui-thumbnail-card";
1049
- /**
1050
- * @deprecated use {@link TuiThumbnailCardHarness}
1051
- */
1052
- var TuiCardHarness = /** @class */ (function (_super) {
1053
- __extends(TuiCardHarness, _super);
1054
- function TuiCardHarness() {
1055
- return _super !== null && _super.apply(this, arguments) || this;
1056
- }
1057
- return TuiCardHarness;
1058
- }(TuiThumbnailCardHarness));
1059
- TuiCardHarness.hostSelector = "tui-card";
1060
-
1061
- var TuiHostedDropdownHarness = /** @class */ (function (_super) {
1062
- __extends(TuiHostedDropdownHarness, _super);
1063
- function TuiHostedDropdownHarness() {
1064
- return _super !== null && _super.apply(this, arguments) || this;
1065
- }
1066
- TuiHostedDropdownHarness.prototype.sendSpaceKey = function () {
1067
- return __awaiter(this, void 0, void 0, function () {
1068
- return __generator(this, function (_a) {
1069
- switch (_a.label) {
1070
- case 0: return [4 /*yield*/, this.host()];
1071
- case 1: return [2 /*return*/, (_a.sent()).sendKeys(" ")];
1072
- }
1073
- });
1074
- });
1075
- };
1076
- TuiHostedDropdownHarness.prototype.sendEscKey = function () {
1077
- return __awaiter(this, void 0, void 0, function () {
1078
- return __generator(this, function (_a) {
1079
- switch (_a.label) {
1080
- case 0: return [4 /*yield*/, this.host()];
1081
- case 1: return [2 /*return*/, (_a.sent()).sendKeys(testing.TestKey.ESCAPE)];
1082
- }
1083
- });
1084
- });
1085
- };
1086
- return TuiHostedDropdownHarness;
1087
- }(utils.TuiContentContainerComponentHarness));
1088
- TuiHostedDropdownHarness.hostSelector = "tui-hosted-dropdown";
1089
-
1090
- var TuiIslandHarness = /** @class */ (function (_super) {
1091
- __extends(TuiIslandHarness, _super);
1092
- function TuiIslandHarness() {
1093
- return _super !== null && _super.apply(this, arguments) || this;
1094
- }
1095
- TuiIslandHarness.prototype.getSize = function () {
1096
- return __awaiter(this, void 0, void 0, function () {
1097
- return __generator(this, function (_a) {
1098
- switch (_a.label) {
1099
- case 0: return [4 /*yield*/, this.isSizeL()];
1100
- case 1:
1101
- if (_a.sent()) {
1102
- return [2 /*return*/, "l"];
1103
- }
1104
- return [4 /*yield*/, this.isSizeM()];
1105
- case 2:
1106
- if (_a.sent()) {
1107
- return [2 /*return*/, "m"];
1108
- }
1109
- return [2 /*return*/, "s"];
1110
- }
1111
- });
1112
- });
1113
- };
1114
- TuiIslandHarness.prototype.getTextAlign = function () {
1115
- return __awaiter(this, void 0, void 0, function () {
1116
- return __generator(this, function (_a) {
1117
- switch (_a.label) {
1118
- case 0: return [4 /*yield*/, this.isTextAlignLeft()];
1119
- case 1:
1120
- if (_a.sent()) {
1121
- return [2 /*return*/, "left"];
1122
- }
1123
- return [4 /*yield*/, this.isTextAlignCenter()];
1124
- case 2:
1125
- if (_a.sent()) {
1126
- return [2 /*return*/, "center"];
1127
- }
1128
- return [2 /*return*/, "right"];
1129
- }
1130
- });
1131
- });
1132
- };
1133
- TuiIslandHarness.prototype.isHoverable = function () {
1134
- return __awaiter(this, void 0, void 0, function () {
1135
- return __generator(this, function (_a) {
1136
- switch (_a.label) {
1137
- case 0: return [4 /*yield*/, this.host()];
1138
- case 1: return [2 /*return*/, (_a.sent()).hasClass("tui-island_hoverable")];
1139
- }
1140
- });
1141
- });
1142
- };
1143
- TuiIslandHarness.prototype.isTextAlignLeft = function () {
1144
- return __awaiter(this, void 0, void 0, function () {
1145
- return __generator(this, function (_a) {
1146
- switch (_a.label) {
1147
- case 0: return [4 /*yield*/, this.host()];
1148
- case 1: return [2 /*return*/, (_a.sent()).hasClass("tui-island_text-align_left")];
1149
- }
1150
- });
1151
- });
1152
- };
1153
- TuiIslandHarness.prototype.isTextAlignCenter = function () {
1154
- return __awaiter(this, void 0, void 0, function () {
1155
- return __generator(this, function (_a) {
1156
- switch (_a.label) {
1157
- case 0: return [4 /*yield*/, this.host()];
1158
- case 1: return [2 /*return*/, (_a.sent()).hasClass("tui-island_text-align_center")];
1159
- }
1160
- });
1161
- });
1162
- };
1163
- TuiIslandHarness.prototype.isSizeM = function () {
1164
- return __awaiter(this, void 0, void 0, function () {
1165
- return __generator(this, function (_a) {
1166
- switch (_a.label) {
1167
- case 0: return [4 /*yield*/, this.host()];
1168
- case 1: return [2 /*return*/, (_a.sent()).hasClass("tui-island_size_m")];
1169
- }
1170
- });
1171
- });
1172
- };
1173
- TuiIslandHarness.prototype.isSizeL = function () {
1174
- return __awaiter(this, void 0, void 0, function () {
1175
- return __generator(this, function (_a) {
1176
- switch (_a.label) {
1177
- case 0: return [4 /*yield*/, this.host()];
1178
- case 1: return [2 /*return*/, (_a.sent()).hasClass("tui-island_size_l")];
1179
- }
1180
- });
1181
- });
1182
- };
1183
- return TuiIslandHarness;
1184
- }(utils.TuiComponentHarness));
1185
- TuiIslandHarness.hostSelector = "tui-island";
1186
-
1187
- var TuiPrimitiveTextfieldHarness = /** @class */ (function (_super) {
1188
- __extends(TuiPrimitiveTextfieldHarness, _super);
1189
- function TuiPrimitiveTextfieldHarness() {
1190
- return _super !== null && _super.apply(this, arguments) || this;
1191
- }
1192
- TuiPrimitiveTextfieldHarness.prototype.valueDecorationText = function () {
1193
- return __awaiter(this, void 0, void 0, function () {
1194
- return __generator(this, function (_a) {
1195
- switch (_a.label) {
1196
- case 0: return [4 /*yield*/, this.locatorFor("tui-value-decoration")()];
1197
- case 1: return [2 /*return*/, (_a.sent()).text()];
1198
- }
1199
- });
1200
- });
1201
- };
1202
- TuiPrimitiveTextfieldHarness.prototype.inputPlaceholder = function () {
1203
- return __awaiter(this, void 0, void 0, function () {
1204
- return __generator(this, function (_a) {
1205
- switch (_a.label) {
1206
- case 0: return [4 /*yield*/, this.locatorFor("input")()];
1207
- case 1: return [2 /*return*/, (_a.sent()).getProperty("placeholder")];
1208
- }
1209
- });
1210
- });
1211
- };
1212
- return TuiPrimitiveTextfieldHarness;
1213
- }(utils.TuiComponentHarness));
1214
- TuiPrimitiveTextfieldHarness.hostSelector = "tui-primitive-textfield";
1215
-
1216
- var TuiSelectHarness = /** @class */ (function (_super) {
1217
- __extends(TuiSelectHarness, _super);
1218
- function TuiSelectHarness() {
1219
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
1220
- _this.hostedDropdown = _this.locatorFor(TuiHostedDropdownHarness);
1221
- return _this;
1222
- }
1223
- TuiSelectHarness.prototype.sendSpaceKey = function () {
1224
- return __awaiter(this, void 0, void 0, function () {
1225
- return __generator(this, function (_a) {
1226
- switch (_a.label) {
1227
- case 0: return [4 /*yield*/, this.hostedDropdown()];
1228
- case 1: return [2 /*return*/, (_a.sent()).sendSpaceKey()];
1229
- }
1230
- });
1231
- });
1232
- };
1233
- TuiSelectHarness.prototype.sendEscKey = function () {
1234
- return __awaiter(this, void 0, void 0, function () {
1235
- return __generator(this, function (_a) {
1236
- switch (_a.label) {
1237
- case 0: return [4 /*yield*/, this.hostedDropdown()];
1238
- case 1: return [2 /*return*/, (_a.sent()).sendEscKey()];
1239
- }
1240
- });
1241
- });
1242
- };
1243
- return TuiSelectHarness;
1244
- }(utils.TuiComponentHarness));
1245
- TuiSelectHarness.hostSelector = "tui-select";
1246
-
1247
- var TuiTagHarness = /** @class */ (function (_super) {
1248
- __extends(TuiTagHarness, _super);
1249
- function TuiTagHarness() {
1250
- return _super !== null && _super.apply(this, arguments) || this;
1251
- }
1252
- TuiTagHarness.prototype.getCrossIcon = function () {
1253
- return __awaiter(this, void 0, void 0, function () {
1254
- return __generator(this, function (_a) {
1255
- return [2 /*return*/, this.locatorForOptional(TuiSvgHarness.with({ selector: ".t-icon" }))()];
1256
- });
1257
- });
1258
- };
1259
- TuiTagHarness.prototype.getBackgroundColor = function () {
1260
- return __awaiter(this, void 0, void 0, function () {
1261
- var div;
1262
- return __generator(this, function (_a) {
1263
- switch (_a.label) {
1264
- case 0: return [4 /*yield*/, this.locatorFor(":first-child")()];
1265
- case 1:
1266
- div = _a.sent();
1267
- return [2 /*return*/, div.getCssValue("background-color")];
1268
- }
1269
- });
1270
- });
1271
- };
1272
- TuiTagHarness.prototype.getInput = function () {
1273
- return __awaiter(this, void 0, void 0, function () {
1274
- return __generator(this, function (_a) {
1275
- return [2 /*return*/, this.locatorForOptional("input.t-edit")()];
1276
- });
1277
- });
1278
- };
1279
- TuiTagHarness.prototype.sendEnter = function () {
1280
- return __awaiter(this, void 0, void 0, function () {
1281
- return __generator(this, function (_a) {
1282
- switch (_a.label) {
1283
- case 0: return [4 /*yield*/, this.host()];
1284
- case 1: return [2 /*return*/, (_a.sent()).sendKeys(testing.TestKey.ENTER)];
1285
- }
1286
- });
1287
- });
1288
- };
1289
- TuiTagHarness.prototype.sendBackspace = function () {
1290
- return __awaiter(this, void 0, void 0, function () {
1291
- return __generator(this, function (_a) {
1292
- switch (_a.label) {
1293
- case 0: return [4 /*yield*/, this.host()];
1294
- case 1: return [2 /*return*/, (_a.sent()).sendKeys(testing.TestKey.BACKSPACE)];
1295
- }
1296
- });
1297
- });
1298
- };
1299
- TuiTagHarness.prototype.sendDelete = function () {
1300
- return __awaiter(this, void 0, void 0, function () {
1301
- return __generator(this, function (_a) {
1302
- switch (_a.label) {
1303
- case 0: return [4 /*yield*/, this.host()];
1304
- case 1: return [2 /*return*/, (_a.sent()).sendKeys(testing.TestKey.DELETE)];
1305
- }
1306
- });
1307
- });
1308
- };
1309
- return TuiTagHarness;
1310
- }(utils.TuiComponentHarness));
1311
- TuiTagHarness.hostSelector = "tui-tag";
1312
-
1313
- var TuiTextfieldHarness = /** @class */ (function (_super) {
1314
- __extends(TuiTextfieldHarness, _super);
1315
- function TuiTextfieldHarness() {
1316
- return _super !== null && _super.apply(this, arguments) || this;
1317
- }
1318
- TuiTextfieldHarness.prototype.sendSpaceKey = function () {
1319
- return __awaiter(this, void 0, void 0, function () {
1320
- return __generator(this, function (_a) {
1321
- switch (_a.label) {
1322
- case 0: return [4 /*yield*/, this.host()];
1323
- case 1: return [2 /*return*/, (_a.sent()).sendKeys(" ")];
1324
- }
1325
- });
1326
- });
1327
- };
1328
- return TuiTextfieldHarness;
1329
- }(utils.TuiComponentHarness));
1330
- TuiTextfieldHarness.hostSelector = "input[tuiTextfield], textarea[tuiTextfield]";
1331
-
1332
- var TuiToggleHarness = /** @class */ (function (_super) {
1333
- __extends(TuiToggleHarness, _super);
1334
- function TuiToggleHarness() {
1335
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
1336
- _this._input = _this.locatorFor("input");
1337
- return _this;
1338
- }
1339
- TuiToggleHarness.prototype.toggle = function () {
1340
- return __awaiter(this, void 0, void 0, function () {
1341
- return __generator(this, function (_a) {
1342
- switch (_a.label) {
1343
- case 0: return [4 /*yield*/, this._input()];
1344
- case 1: return [2 /*return*/, (_a.sent()).click()];
1345
- }
1346
- });
1347
- });
1348
- };
1349
- TuiToggleHarness.prototype.getIcons = function () {
1350
- return __awaiter(this, void 0, void 0, function () {
1351
- return __generator(this, function (_a) {
1352
- return [2 /*return*/, this.locatorForAll(TuiSvgHarness)()];
1353
- });
1354
- });
1355
- };
1356
- return TuiToggleHarness;
1357
- }(utils.TuiComponentHarness));
1358
- TuiToggleHarness.hostSelector = "tui-toggle";
1359
-
1360
- /**
1361
- * Generated bundle index. Do not edit.
1362
- */
1363
-
1364
- exports.TuiAccordionHarness = TuiAccordionHarness;
1365
- exports.TuiAccordionItemHarness = TuiAccordionItemHarness;
1366
- exports.TuiActionHarness = TuiActionHarness;
1367
- exports.TuiAvatarHarness = TuiAvatarHarness;
1368
- exports.TuiBadgeHarness = TuiBadgeHarness;
1369
- exports.TuiButtonHarness = TuiButtonHarness;
1370
- exports.TuiCalendarHarness = TuiCalendarHarness;
1371
- exports.TuiCardHarness = TuiCardHarness;
1372
- exports.TuiHostedDropdownHarness = TuiHostedDropdownHarness;
1373
- exports.TuiIslandHarness = TuiIslandHarness;
1374
- exports.TuiMarkerIconHarness = TuiMarkerIconHarness;
1375
- exports.TuiPrimitiveCalendarHarness = TuiPrimitiveCalendarHarness;
1376
- exports.TuiPrimitiveSpinButtonHarness = TuiPrimitiveSpinButtonHarness;
1377
- exports.TuiPrimitiveTextfieldHarness = TuiPrimitiveTextfieldHarness;
1378
- exports.TuiSelectHarness = TuiSelectHarness;
1379
- exports.TuiSvgHarness = TuiSvgHarness;
1380
- exports.TuiTagHarness = TuiTagHarness;
1381
- exports.TuiTextfieldHarness = TuiTextfieldHarness;
1382
- exports.TuiThumbnailCardHarness = TuiThumbnailCardHarness;
1383
- exports.TuiToggleHarness = TuiToggleHarness;
1384
-
1385
- Object.defineProperty(exports, '__esModule', { value: true });
1386
-
1387
- }));
1388
- //# sourceMappingURL=taiga-ui-testing-core.umd.js.map