@taiga-ui/testing 3.59.0 → 3.60.0-canary.799e7d6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taiga-ui-testing-core.umd.js +78 -78
- package/bundles/taiga-ui-testing-core.umd.js.map +1 -1
- package/bundles/taiga-ui-testing-cypress.umd.js +19 -19
- package/bundles/taiga-ui-testing-cypress.umd.js.map +1 -1
- package/bundles/taiga-ui-testing-setup-jest.umd.js +19 -19
- package/bundles/taiga-ui-testing-setup-jest.umd.js.map +1 -1
- package/bundles/taiga-ui-testing-utils.umd.js +67 -67
- package/bundles/taiga-ui-testing-utils.umd.js.map +1 -1
- package/esm2015/core/accordion-item.harness.js +8 -8
- package/esm2015/core/accordion.harness.js +3 -3
- package/esm2015/core/action.harness.js +2 -2
- package/esm2015/core/avatar.harness.js +2 -2
- package/esm2015/core/badge.harness.js +3 -3
- package/esm2015/core/button.harness.js +2 -2
- package/esm2015/core/calendar.harness.js +3 -3
- package/esm2015/core/card.harness.js +5 -5
- package/esm2015/core/dialog.harness.js +3 -3
- package/esm2015/core/hosted-dropdown.harness.js +3 -3
- package/esm2015/core/island.harness.js +13 -13
- package/esm2015/core/loader.harness.js +4 -4
- package/esm2015/core/marker-icon.harness.js +2 -2
- package/esm2015/core/primitive-calender.harness.js +7 -7
- package/esm2015/core/primitive-spin-button.harness.js +4 -4
- package/esm2015/core/primitive-textfield.harness.js +4 -4
- package/esm2015/core/primitive-year-month-pagination.harness.js +7 -7
- package/esm2015/core/primitive-year-picker.harness.js +5 -5
- package/esm2015/core/select.harness.js +2 -2
- package/esm2015/core/svg.harness.js +4 -4
- package/esm2015/core/tag.harness.js +6 -6
- package/esm2015/core/textfield.harness.js +3 -3
- package/esm2015/core/toggle.harness.js +3 -3
- package/esm2015/cypress/assertions/be-in-viewport.js +4 -4
- package/esm2015/cypress/commands/wait-all-img-inside.command.js +9 -9
- package/esm2015/cypress/snapshot/command.js +5 -5
- package/esm2015/cypress/snapshot/plugin.js +6 -6
- package/esm2015/setup-jest/index.js +20 -20
- package/esm2015/utils/active-element.js +3 -3
- package/esm2015/utils/helpers.js +2 -2
- package/esm2015/utils/input/cleaner.unit-common.js +12 -12
- package/esm2015/utils/input/filler.unit-common.js +9 -9
- package/esm2015/utils/input/form-control-state.unit-common.js +9 -9
- package/esm2015/utils/input/placeholder.unit-common.js +17 -17
- package/esm2015/utils/input/tooltip.unit-common.js +8 -8
- package/esm2015/utils/keyboard-event.js +4 -4
- package/esm2015/utils/native-input.page-object.js +4 -4
- package/esm2015/utils/page-object.js +3 -3
- package/esm2015/utils/replace-nbsp.js +2 -2
- package/esm2015/utils/viewport.js +5 -5
- package/fesm2015/taiga-ui-testing-core.js +75 -75
- package/fesm2015/taiga-ui-testing-core.js.map +1 -1
- package/fesm2015/taiga-ui-testing-cypress.js +19 -19
- package/fesm2015/taiga-ui-testing-cypress.js.map +1 -1
- package/fesm2015/taiga-ui-testing-setup-jest.js +19 -19
- package/fesm2015/taiga-ui-testing-setup-jest.js.map +1 -1
- package/fesm2015/taiga-ui-testing-utils.js +66 -66
- package/fesm2015/taiga-ui-testing-utils.js.map +1 -1
- package/package.json +17 -17
@@ -331,15 +331,15 @@
|
|
331
331
|
return __awaiter(this, void 0, void 0, function () {
|
332
332
|
return __generator(this, function (_a) {
|
333
333
|
switch (_a.label) {
|
334
|
-
case 0: return [4 /*yield*/, this.locatorFor(
|
335
|
-
case 1: return [2 /*return*/, (_a.sent()).hasClass(
|
334
|
+
case 0: return [4 /*yield*/, this.locatorFor('.t-group')()];
|
335
|
+
case 1: return [2 /*return*/, (_a.sent()).hasClass('tui-group_rounded')];
|
336
336
|
}
|
337
337
|
});
|
338
338
|
});
|
339
339
|
};
|
340
340
|
return TuiAccordionHarness;
|
341
341
|
}(utils.TuiContentContainerComponentHarness));
|
342
|
-
TuiAccordionHarness.hostSelector =
|
342
|
+
TuiAccordionHarness.hostSelector = 'tui-accordion';
|
343
343
|
|
344
344
|
var TuiSvgHarness = /** @class */ (function (_super) {
|
345
345
|
__extends(TuiSvgHarness, _super);
|
@@ -370,7 +370,7 @@
|
|
370
370
|
return __awaiter(this, void 0, void 0, function () {
|
371
371
|
return __generator(this, function (_c) {
|
372
372
|
switch (_c.label) {
|
373
|
-
case 0: return [4 /*yield*/, this.locatorForOptional(
|
373
|
+
case 0: return [4 /*yield*/, this.locatorForOptional('div')()];
|
374
374
|
case 1: return [2 /*return*/, !!(_c.sent())];
|
375
375
|
}
|
376
376
|
});
|
@@ -381,28 +381,28 @@
|
|
381
381
|
return __awaiter(this, void 0, void 0, function () {
|
382
382
|
return __generator(this, function (_c) {
|
383
383
|
switch (_c.label) {
|
384
|
-
case 0: return [4 /*yield*/, this.locatorForOptional(
|
385
|
-
case 1: return [2 /*return*/, ((_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.getAttribute(
|
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
386
|
}
|
387
387
|
});
|
388
388
|
});
|
389
389
|
};
|
390
390
|
return TuiSvgHarness;
|
391
391
|
}(utils.TuiComponentHarness));
|
392
|
-
TuiSvgHarness.hostSelector =
|
392
|
+
TuiSvgHarness.hostSelector = 'tui-svg';
|
393
393
|
|
394
394
|
var TuiAccordionItemHarness = /** @class */ (function (_super) {
|
395
395
|
__extends(TuiAccordionItemHarness, _super);
|
396
396
|
function TuiAccordionItemHarness() {
|
397
397
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
398
|
-
_this.header = _this.locatorFor(
|
398
|
+
_this.header = _this.locatorFor('.t-header');
|
399
399
|
return _this;
|
400
400
|
}
|
401
401
|
TuiAccordionItemHarness.prototype.getTitle = function () {
|
402
402
|
return __awaiter(this, void 0, void 0, function () {
|
403
403
|
return __generator(this, function (_c) {
|
404
404
|
switch (_c.label) {
|
405
|
-
case 0: return [4 /*yield*/, this.locatorFor(
|
405
|
+
case 0: return [4 /*yield*/, this.locatorFor('.t-title')()];
|
406
406
|
case 1: return [2 /*return*/, (_c.sent()).text()];
|
407
407
|
}
|
408
408
|
});
|
@@ -413,7 +413,7 @@
|
|
413
413
|
return __awaiter(this, void 0, void 0, function () {
|
414
414
|
return __generator(this, function (_c) {
|
415
415
|
switch (_c.label) {
|
416
|
-
case 0: return [4 /*yield*/, this.locatorForOptional(
|
416
|
+
case 0: return [4 /*yield*/, this.locatorForOptional('.t-content')()];
|
417
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
418
|
}
|
419
419
|
});
|
@@ -423,7 +423,7 @@
|
|
423
423
|
return __awaiter(this, void 0, void 0, function () {
|
424
424
|
return __generator(this, function (_c) {
|
425
425
|
switch (_c.label) {
|
426
|
-
case 0: return [4 /*yield*/, this.locatorFor(
|
426
|
+
case 0: return [4 /*yield*/, this.locatorFor('.t-header')()];
|
427
427
|
case 1: return [2 /*return*/, (_c.sent()).click()];
|
428
428
|
}
|
429
429
|
});
|
@@ -434,7 +434,7 @@
|
|
434
434
|
return __generator(this, function (_c) {
|
435
435
|
switch (_c.label) {
|
436
436
|
case 0: return [4 /*yield*/, this.host()];
|
437
|
-
case 1: return [2 /*return*/, (_c.sent()).getAttribute(
|
437
|
+
case 1: return [2 /*return*/, (_c.sent()).getAttribute('data-borders')];
|
438
438
|
}
|
439
439
|
});
|
440
440
|
});
|
@@ -444,7 +444,7 @@
|
|
444
444
|
return __awaiter(this, void 0, void 0, function () {
|
445
445
|
return __generator(this, function (_c) {
|
446
446
|
switch (_c.label) {
|
447
|
-
case 0: return [4 /*yield*/, this.locatorForOptional(TuiSvgHarness.with({ selector:
|
447
|
+
case 0: return [4 /*yield*/, this.locatorForOptional(TuiSvgHarness.with({ selector: '.t-icon' }))()];
|
448
448
|
case 1: return [2 /*return*/, ((_a = !!(_c.sent())) !== null && _a !== void 0 ? _a : false)];
|
449
449
|
}
|
450
450
|
});
|
@@ -472,7 +472,7 @@
|
|
472
472
|
};
|
473
473
|
return TuiAccordionItemHarness;
|
474
474
|
}(utils.TuiContentContainerComponentHarness));
|
475
|
-
TuiAccordionItemHarness.hostSelector =
|
475
|
+
TuiAccordionItemHarness.hostSelector = 'tui-accordion-item';
|
476
476
|
|
477
477
|
var TuiMarkerIconHarness = /** @class */ (function (_super) {
|
478
478
|
__extends(TuiMarkerIconHarness, _super);
|
@@ -481,7 +481,7 @@
|
|
481
481
|
}
|
482
482
|
return TuiMarkerIconHarness;
|
483
483
|
}(utils.TuiComponentHarness));
|
484
|
-
TuiMarkerIconHarness.hostSelector =
|
484
|
+
TuiMarkerIconHarness.hostSelector = 'tui-marker-icon';
|
485
485
|
|
486
486
|
var TuiActionHarness = /** @class */ (function (_super) {
|
487
487
|
__extends(TuiActionHarness, _super);
|
@@ -499,7 +499,7 @@
|
|
499
499
|
};
|
500
500
|
return TuiActionHarness;
|
501
501
|
}(utils.TuiComponentHarness));
|
502
|
-
TuiActionHarness.hostSelector =
|
502
|
+
TuiActionHarness.hostSelector = 'button[tuiAction], a[tuiAction]';
|
503
503
|
|
504
504
|
var TuiAvatarHarness = /** @class */ (function (_super) {
|
505
505
|
__extends(TuiAvatarHarness, _super);
|
@@ -518,7 +518,7 @@
|
|
518
518
|
};
|
519
519
|
return TuiAvatarHarness;
|
520
520
|
}(utils.TuiComponentHarness));
|
521
|
-
TuiAvatarHarness.hostSelector =
|
521
|
+
TuiAvatarHarness.hostSelector = 'tui-avatar';
|
522
522
|
|
523
523
|
var TuiBadgeHarness = /** @class */ (function (_super) {
|
524
524
|
__extends(TuiBadgeHarness, _super);
|
@@ -540,7 +540,7 @@
|
|
540
540
|
return __generator(this, function (_a) {
|
541
541
|
switch (_a.label) {
|
542
542
|
case 0: return [4 /*yield*/, this.host()];
|
543
|
-
case 1: return [2 /*return*/, (_a.sent()).getAttribute(
|
543
|
+
case 1: return [2 /*return*/, (_a.sent()).getAttribute('data-padding')];
|
544
544
|
}
|
545
545
|
});
|
546
546
|
});
|
@@ -557,13 +557,13 @@
|
|
557
557
|
};
|
558
558
|
return TuiBadgeHarness;
|
559
559
|
}(utils.TuiComponentHarness));
|
560
|
-
TuiBadgeHarness.hostSelector =
|
560
|
+
TuiBadgeHarness.hostSelector = 'tui-badge';
|
561
561
|
|
562
562
|
exports.TuiLoaderHarness = /** @class */ (function (_super) {
|
563
563
|
__extends(TuiLoaderHarness, _super);
|
564
564
|
function TuiLoaderHarness() {
|
565
565
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
566
|
-
_this.loader = _this.locatorForOptional(
|
566
|
+
_this.loader = _this.locatorForOptional('fieldset.t-content + .t-loader');
|
567
567
|
return _this;
|
568
568
|
}
|
569
569
|
TuiLoaderHarness.prototype.isLoading = function () {
|
@@ -585,13 +585,13 @@
|
|
585
585
|
case 0: return [4 /*yield*/, this.loader()];
|
586
586
|
case 1:
|
587
587
|
loader = _b.sent();
|
588
|
-
return [2 /*return*/, (_a = loader === null || loader === void 0 ? void 0 : loader.text()) !== null && _a !== void 0 ? _a :
|
588
|
+
return [2 /*return*/, (_a = loader === null || loader === void 0 ? void 0 : loader.text()) !== null && _a !== void 0 ? _a : ''];
|
589
589
|
}
|
590
590
|
});
|
591
591
|
});
|
592
592
|
};
|
593
593
|
return TuiLoaderHarness;
|
594
|
-
}(utils.tuiHarnessWith(
|
594
|
+
}(utils.tuiHarnessWith('tui-loader')));
|
595
595
|
exports.TuiLoaderHarness = __decorate([
|
596
596
|
utils.tuiWithPredicate
|
597
597
|
], exports.TuiLoaderHarness);
|
@@ -625,7 +625,7 @@
|
|
625
625
|
};
|
626
626
|
return TuiButtonHarness;
|
627
627
|
}(utils.TuiComponentHarness));
|
628
|
-
TuiButtonHarness.hostSelector =
|
628
|
+
TuiButtonHarness.hostSelector = 'button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]';
|
629
629
|
|
630
630
|
var TuiDayCellHarness = /** @class */ (function (_super) {
|
631
631
|
__extends(TuiDayCellHarness, _super);
|
@@ -634,7 +634,7 @@
|
|
634
634
|
}
|
635
635
|
TuiDayCellHarness.with = function (options) {
|
636
636
|
var _this = this;
|
637
|
-
return new testing.HarnessPredicate(TuiDayCellHarness, options).addOption(
|
637
|
+
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) {
|
638
638
|
return [2 /*return*/, testing.HarnessPredicate.stringMatches(harness.getText(), "" + text)];
|
639
639
|
}); }); });
|
640
640
|
};
|
@@ -642,7 +642,7 @@
|
|
642
642
|
return __awaiter(this, void 0, void 0, function () {
|
643
643
|
return __generator(this, function (_a) {
|
644
644
|
switch (_a.label) {
|
645
|
-
case 0: return [4 /*yield*/, this.locatorFor(
|
645
|
+
case 0: return [4 /*yield*/, this.locatorFor('.t-item')()];
|
646
646
|
case 1: return [2 /*return*/, (_a.sent()).text()];
|
647
647
|
}
|
648
648
|
});
|
@@ -670,7 +670,7 @@
|
|
670
670
|
};
|
671
671
|
return TuiDayCellHarness;
|
672
672
|
}(testing.ComponentHarness));
|
673
|
-
TuiDayCellHarness.hostSelector =
|
673
|
+
TuiDayCellHarness.hostSelector = '.t-cell:not(.t-cell_unavailable)';
|
674
674
|
var TuiPrimitiveCalendarHarness = /** @class */ (function (_super) {
|
675
675
|
__extends(TuiPrimitiveCalendarHarness, _super);
|
676
676
|
function TuiPrimitiveCalendarHarness() {
|
@@ -681,7 +681,7 @@
|
|
681
681
|
var dayCell;
|
682
682
|
return __generator(this, function (_a) {
|
683
683
|
switch (_a.label) {
|
684
|
-
case 0: return [4 /*yield*/, this.locatorFor(TuiDayCellHarness.with({ day: day, ancestor:
|
684
|
+
case 0: return [4 /*yield*/, this.locatorFor(TuiDayCellHarness.with({ day: day, ancestor: '#date-rows' }))()];
|
685
685
|
case 1:
|
686
686
|
dayCell = _a.sent();
|
687
687
|
return [2 /*return*/, dayCell.click()];
|
@@ -694,7 +694,7 @@
|
|
694
694
|
var dayCell;
|
695
695
|
return __generator(this, function (_a) {
|
696
696
|
switch (_a.label) {
|
697
|
-
case 0: return [4 /*yield*/, this.locatorFor(TuiDayCellHarness.with({ day: day, ancestor:
|
697
|
+
case 0: return [4 /*yield*/, this.locatorFor(TuiDayCellHarness.with({ day: day, ancestor: '#date-rows' }))()];
|
698
698
|
case 1:
|
699
699
|
dayCell = _a.sent();
|
700
700
|
return [2 /*return*/, dayCell.hover()];
|
@@ -704,7 +704,7 @@
|
|
704
704
|
};
|
705
705
|
return TuiPrimitiveCalendarHarness;
|
706
706
|
}(utils.TuiComponentHarness));
|
707
|
-
TuiPrimitiveCalendarHarness.hostSelector =
|
707
|
+
TuiPrimitiveCalendarHarness.hostSelector = 'tui-primitive-calendar';
|
708
708
|
|
709
709
|
var TuiPrimitiveSpinButtonHarness = /** @class */ (function (_super) {
|
710
710
|
__extends(TuiPrimitiveSpinButtonHarness, _super);
|
@@ -716,7 +716,7 @@
|
|
716
716
|
return __generator(this, function (_a) {
|
717
717
|
switch (_a.label) {
|
718
718
|
case 0: return [4 /*yield*/, this.locatorForAll(TuiButtonHarness)()];
|
719
|
-
case 1: return [2 /*return*/, (_a.sent())[0].hasClass(
|
719
|
+
case 1: return [2 /*return*/, (_a.sent())[0].hasClass('t-hidden')];
|
720
720
|
}
|
721
721
|
});
|
722
722
|
});
|
@@ -726,23 +726,23 @@
|
|
726
726
|
return __generator(this, function (_a) {
|
727
727
|
switch (_a.label) {
|
728
728
|
case 0: return [4 /*yield*/, this.locatorForAll(TuiButtonHarness)()];
|
729
|
-
case 1: return [2 /*return*/, (_a.sent())[1].hasClass(
|
729
|
+
case 1: return [2 /*return*/, (_a.sent())[1].hasClass('t-hidden')];
|
730
730
|
}
|
731
731
|
});
|
732
732
|
});
|
733
733
|
};
|
734
734
|
return TuiPrimitiveSpinButtonHarness;
|
735
735
|
}(utils.TuiComponentHarness));
|
736
|
-
TuiPrimitiveSpinButtonHarness.hostSelector =
|
736
|
+
TuiPrimitiveSpinButtonHarness.hostSelector = 'tui-primitive-spin-button';
|
737
737
|
|
738
738
|
var TuiPrimitiveYearMonthPaginationHarness = /** @class */ (function (_super) {
|
739
739
|
__extends(TuiPrimitiveYearMonthPaginationHarness, _super);
|
740
740
|
function TuiPrimitiveYearMonthPaginationHarness() {
|
741
741
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
742
|
-
_this.buttonLeft = _this.locatorForOptional(
|
743
|
-
_this.content = _this.locatorForOptional(
|
744
|
-
_this.buttonRight = _this.locatorForOptional(
|
745
|
-
_this.button = _this.locatorForOptional(
|
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
746
|
_this.primitiveSpinButton = _this.locatorFor(TuiPrimitiveSpinButtonHarness);
|
747
747
|
return _this;
|
748
748
|
}
|
@@ -763,7 +763,7 @@
|
|
763
763
|
return __generator(this, function (_c) {
|
764
764
|
switch (_c.label) {
|
765
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 :
|
766
|
+
case 1: return [2 /*return*/, (_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.text()) !== null && _b !== void 0 ? _b : ''];
|
767
767
|
}
|
768
768
|
});
|
769
769
|
});
|
@@ -812,7 +812,7 @@
|
|
812
812
|
};
|
813
813
|
return TuiPrimitiveYearMonthPaginationHarness;
|
814
814
|
}(utils.TuiComponentHarness));
|
815
|
-
TuiPrimitiveYearMonthPaginationHarness.hostSelector =
|
815
|
+
TuiPrimitiveYearMonthPaginationHarness.hostSelector = 'tui-primitive-year-month-pagination';
|
816
816
|
|
817
817
|
var TuiYearCellHarness = /** @class */ (function (_super) {
|
818
818
|
__extends(TuiYearCellHarness, _super);
|
@@ -821,7 +821,7 @@
|
|
821
821
|
}
|
822
822
|
TuiYearCellHarness.with = function (options) {
|
823
823
|
var _this = this;
|
824
|
-
return new testing.HarnessPredicate(TuiYearCellHarness, options).addOption(
|
824
|
+
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) {
|
825
825
|
return [2 /*return*/, testing.HarnessPredicate.stringMatches(harness.getText(), text)];
|
826
826
|
}); }); });
|
827
827
|
};
|
@@ -829,7 +829,7 @@
|
|
829
829
|
return __awaiter(this, void 0, void 0, function () {
|
830
830
|
return __generator(this, function (_a) {
|
831
831
|
switch (_a.label) {
|
832
|
-
case 0: return [4 /*yield*/, this.locatorFor(
|
832
|
+
case 0: return [4 /*yield*/, this.locatorFor('.t-item')()];
|
833
833
|
case 1: return [2 /*return*/, (_a.sent()).text()];
|
834
834
|
}
|
835
835
|
});
|
@@ -847,7 +847,7 @@
|
|
847
847
|
};
|
848
848
|
return TuiYearCellHarness;
|
849
849
|
}(testing.ComponentHarness));
|
850
|
-
TuiYearCellHarness.hostSelector =
|
850
|
+
TuiYearCellHarness.hostSelector = '.t-cell';
|
851
851
|
var TuiPrimitiveYearPickerHarness = /** @class */ (function (_super) {
|
852
852
|
__extends(TuiPrimitiveYearPickerHarness, _super);
|
853
853
|
function TuiPrimitiveYearPickerHarness() {
|
@@ -868,7 +868,7 @@
|
|
868
868
|
};
|
869
869
|
return TuiPrimitiveYearPickerHarness;
|
870
870
|
}(utils.TuiComponentHarness));
|
871
|
-
TuiPrimitiveYearPickerHarness.hostSelector =
|
871
|
+
TuiPrimitiveYearPickerHarness.hostSelector = 'tui-primitive-year-picker';
|
872
872
|
|
873
873
|
var TuiCalendarHarness = /** @class */ (function (_super) {
|
874
874
|
__extends(TuiCalendarHarness, _super);
|
@@ -948,7 +948,7 @@
|
|
948
948
|
return __generator(this, function (_c) {
|
949
949
|
switch (_c.label) {
|
950
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 :
|
951
|
+
case 1: return [2 /*return*/, ((_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.getContentText()) !== null && _b !== void 0 ? _b : '')];
|
952
952
|
}
|
953
953
|
});
|
954
954
|
});
|
@@ -1010,7 +1010,7 @@
|
|
1010
1010
|
};
|
1011
1011
|
return TuiCalendarHarness;
|
1012
1012
|
}(utils.TuiComponentHarness));
|
1013
|
-
TuiCalendarHarness.hostSelector =
|
1013
|
+
TuiCalendarHarness.hostSelector = 'tui-calendar';
|
1014
1014
|
|
1015
1015
|
var TuiThumbnailCardHarness = /** @class */ (function (_super) {
|
1016
1016
|
__extends(TuiThumbnailCardHarness, _super);
|
@@ -1022,7 +1022,7 @@
|
|
1022
1022
|
var tuiSvg;
|
1023
1023
|
return __generator(this, function (_a) {
|
1024
1024
|
switch (_a.label) {
|
1025
|
-
case 0: return [4 /*yield*/, this.locatorForOptional(TuiSvgHarness.with({ selector:
|
1025
|
+
case 0: return [4 /*yield*/, this.locatorForOptional(TuiSvgHarness.with({ selector: '.t-payment-system-logo' }))()];
|
1026
1026
|
case 1:
|
1027
1027
|
tuiSvg = _a.sent();
|
1028
1028
|
return [2 /*return*/, !!tuiSvg];
|
@@ -1035,7 +1035,7 @@
|
|
1035
1035
|
var tuiSvg;
|
1036
1036
|
return __generator(this, function (_a) {
|
1037
1037
|
switch (_a.label) {
|
1038
|
-
case 0: return [4 /*yield*/, this.locatorForOptional(TuiSvgHarness.with({ selector:
|
1038
|
+
case 0: return [4 /*yield*/, this.locatorForOptional(TuiSvgHarness.with({ selector: '.t-brand-logo' }))()];
|
1039
1039
|
case 1:
|
1040
1040
|
tuiSvg = _a.sent();
|
1041
1041
|
return [2 /*return*/, !!tuiSvg];
|
@@ -1045,7 +1045,7 @@
|
|
1045
1045
|
};
|
1046
1046
|
return TuiThumbnailCardHarness;
|
1047
1047
|
}(utils.TuiComponentHarness));
|
1048
|
-
TuiThumbnailCardHarness.hostSelector =
|
1048
|
+
TuiThumbnailCardHarness.hostSelector = 'tui-thumbnail-card';
|
1049
1049
|
/**
|
1050
1050
|
* @deprecated use {@link TuiThumbnailCardHarness}
|
1051
1051
|
*/
|
@@ -1056,7 +1056,7 @@
|
|
1056
1056
|
}
|
1057
1057
|
return TuiCardHarness;
|
1058
1058
|
}(TuiThumbnailCardHarness));
|
1059
|
-
TuiCardHarness.hostSelector =
|
1059
|
+
TuiCardHarness.hostSelector = 'tui-card';
|
1060
1060
|
|
1061
1061
|
var TuiDialogHarness = /** @class */ (function (_super) {
|
1062
1062
|
__extends(TuiDialogHarness, _super);
|
@@ -1067,14 +1067,14 @@
|
|
1067
1067
|
return __awaiter(this, void 0, void 0, function () {
|
1068
1068
|
return __generator(this, function (_a) {
|
1069
1069
|
return [2 /*return*/, this.locatorForOptional(TuiButtonHarness.with({
|
1070
|
-
selector:
|
1070
|
+
selector: '[automation-id=tui-dialog__close]',
|
1071
1071
|
}))()];
|
1072
1072
|
});
|
1073
1073
|
});
|
1074
1074
|
};
|
1075
1075
|
return TuiDialogHarness;
|
1076
1076
|
}(utils.TuiContentContainerComponentHarness));
|
1077
|
-
TuiDialogHarness.hostSelector =
|
1077
|
+
TuiDialogHarness.hostSelector = 'tui-dialog';
|
1078
1078
|
|
1079
1079
|
var TuiHostedDropdownHarness = /** @class */ (function (_super) {
|
1080
1080
|
__extends(TuiHostedDropdownHarness, _super);
|
@@ -1086,7 +1086,7 @@
|
|
1086
1086
|
return __generator(this, function (_a) {
|
1087
1087
|
switch (_a.label) {
|
1088
1088
|
case 0: return [4 /*yield*/, this.host()];
|
1089
|
-
case 1: return [2 /*return*/, (_a.sent()).sendKeys(
|
1089
|
+
case 1: return [2 /*return*/, (_a.sent()).sendKeys(' ')];
|
1090
1090
|
}
|
1091
1091
|
});
|
1092
1092
|
});
|
@@ -1103,7 +1103,7 @@
|
|
1103
1103
|
};
|
1104
1104
|
return TuiHostedDropdownHarness;
|
1105
1105
|
}(utils.TuiContentContainerComponentHarness));
|
1106
|
-
TuiHostedDropdownHarness.hostSelector =
|
1106
|
+
TuiHostedDropdownHarness.hostSelector = 'tui-hosted-dropdown';
|
1107
1107
|
|
1108
1108
|
var TuiIslandHarness = /** @class */ (function (_super) {
|
1109
1109
|
__extends(TuiIslandHarness, _super);
|
@@ -1117,14 +1117,14 @@
|
|
1117
1117
|
case 0: return [4 /*yield*/, this.isSizeL()];
|
1118
1118
|
case 1:
|
1119
1119
|
if (_a.sent()) {
|
1120
|
-
return [2 /*return*/,
|
1120
|
+
return [2 /*return*/, 'l'];
|
1121
1121
|
}
|
1122
1122
|
return [4 /*yield*/, this.isSizeM()];
|
1123
1123
|
case 2:
|
1124
1124
|
if (_a.sent()) {
|
1125
|
-
return [2 /*return*/,
|
1125
|
+
return [2 /*return*/, 'm'];
|
1126
1126
|
}
|
1127
|
-
return [2 /*return*/,
|
1127
|
+
return [2 /*return*/, 's'];
|
1128
1128
|
}
|
1129
1129
|
});
|
1130
1130
|
});
|
@@ -1136,14 +1136,14 @@
|
|
1136
1136
|
case 0: return [4 /*yield*/, this.isTextAlignLeft()];
|
1137
1137
|
case 1:
|
1138
1138
|
if (_a.sent()) {
|
1139
|
-
return [2 /*return*/,
|
1139
|
+
return [2 /*return*/, 'left'];
|
1140
1140
|
}
|
1141
1141
|
return [4 /*yield*/, this.isTextAlignCenter()];
|
1142
1142
|
case 2:
|
1143
1143
|
if (_a.sent()) {
|
1144
|
-
return [2 /*return*/,
|
1144
|
+
return [2 /*return*/, 'center'];
|
1145
1145
|
}
|
1146
|
-
return [2 /*return*/,
|
1146
|
+
return [2 /*return*/, 'right'];
|
1147
1147
|
}
|
1148
1148
|
});
|
1149
1149
|
});
|
@@ -1153,7 +1153,7 @@
|
|
1153
1153
|
return __generator(this, function (_a) {
|
1154
1154
|
switch (_a.label) {
|
1155
1155
|
case 0: return [4 /*yield*/, this.host()];
|
1156
|
-
case 1: return [2 /*return*/, (_a.sent()).hasClass(
|
1156
|
+
case 1: return [2 /*return*/, (_a.sent()).hasClass('tui-island_hoverable')];
|
1157
1157
|
}
|
1158
1158
|
});
|
1159
1159
|
});
|
@@ -1163,7 +1163,7 @@
|
|
1163
1163
|
return __generator(this, function (_a) {
|
1164
1164
|
switch (_a.label) {
|
1165
1165
|
case 0: return [4 /*yield*/, this.host()];
|
1166
|
-
case 1: return [2 /*return*/, (_a.sent()).hasClass(
|
1166
|
+
case 1: return [2 /*return*/, (_a.sent()).hasClass('tui-island_text-align_left')];
|
1167
1167
|
}
|
1168
1168
|
});
|
1169
1169
|
});
|
@@ -1173,7 +1173,7 @@
|
|
1173
1173
|
return __generator(this, function (_a) {
|
1174
1174
|
switch (_a.label) {
|
1175
1175
|
case 0: return [4 /*yield*/, this.host()];
|
1176
|
-
case 1: return [2 /*return*/, (_a.sent()).hasClass(
|
1176
|
+
case 1: return [2 /*return*/, (_a.sent()).hasClass('tui-island_text-align_center')];
|
1177
1177
|
}
|
1178
1178
|
});
|
1179
1179
|
});
|
@@ -1183,7 +1183,7 @@
|
|
1183
1183
|
return __generator(this, function (_a) {
|
1184
1184
|
switch (_a.label) {
|
1185
1185
|
case 0: return [4 /*yield*/, this.host()];
|
1186
|
-
case 1: return [2 /*return*/, (_a.sent()).hasClass(
|
1186
|
+
case 1: return [2 /*return*/, (_a.sent()).hasClass('tui-island_size_m')];
|
1187
1187
|
}
|
1188
1188
|
});
|
1189
1189
|
});
|
@@ -1193,14 +1193,14 @@
|
|
1193
1193
|
return __generator(this, function (_a) {
|
1194
1194
|
switch (_a.label) {
|
1195
1195
|
case 0: return [4 /*yield*/, this.host()];
|
1196
|
-
case 1: return [2 /*return*/, (_a.sent()).hasClass(
|
1196
|
+
case 1: return [2 /*return*/, (_a.sent()).hasClass('tui-island_size_l')];
|
1197
1197
|
}
|
1198
1198
|
});
|
1199
1199
|
});
|
1200
1200
|
};
|
1201
1201
|
return TuiIslandHarness;
|
1202
1202
|
}(utils.TuiComponentHarness));
|
1203
|
-
TuiIslandHarness.hostSelector =
|
1203
|
+
TuiIslandHarness.hostSelector = 'tui-island';
|
1204
1204
|
|
1205
1205
|
var TuiPrimitiveTextfieldHarness = /** @class */ (function (_super) {
|
1206
1206
|
__extends(TuiPrimitiveTextfieldHarness, _super);
|
@@ -1211,7 +1211,7 @@
|
|
1211
1211
|
return __awaiter(this, void 0, void 0, function () {
|
1212
1212
|
return __generator(this, function (_a) {
|
1213
1213
|
switch (_a.label) {
|
1214
|
-
case 0: return [4 /*yield*/, this.locatorFor(
|
1214
|
+
case 0: return [4 /*yield*/, this.locatorFor('tui-value-decoration')()];
|
1215
1215
|
case 1: return [2 /*return*/, (_a.sent()).text()];
|
1216
1216
|
}
|
1217
1217
|
});
|
@@ -1221,15 +1221,15 @@
|
|
1221
1221
|
return __awaiter(this, void 0, void 0, function () {
|
1222
1222
|
return __generator(this, function (_a) {
|
1223
1223
|
switch (_a.label) {
|
1224
|
-
case 0: return [4 /*yield*/, this.locatorFor(
|
1225
|
-
case 1: return [2 /*return*/, (_a.sent()).getProperty(
|
1224
|
+
case 0: return [4 /*yield*/, this.locatorFor('input')()];
|
1225
|
+
case 1: return [2 /*return*/, (_a.sent()).getProperty('placeholder')];
|
1226
1226
|
}
|
1227
1227
|
});
|
1228
1228
|
});
|
1229
1229
|
};
|
1230
1230
|
return TuiPrimitiveTextfieldHarness;
|
1231
1231
|
}(utils.TuiComponentHarness));
|
1232
|
-
TuiPrimitiveTextfieldHarness.hostSelector =
|
1232
|
+
TuiPrimitiveTextfieldHarness.hostSelector = 'tui-primitive-textfield';
|
1233
1233
|
|
1234
1234
|
var TuiSelectHarness = /** @class */ (function (_super) {
|
1235
1235
|
__extends(TuiSelectHarness, _super);
|
@@ -1260,7 +1260,7 @@
|
|
1260
1260
|
};
|
1261
1261
|
return TuiSelectHarness;
|
1262
1262
|
}(utils.TuiComponentHarness));
|
1263
|
-
TuiSelectHarness.hostSelector =
|
1263
|
+
TuiSelectHarness.hostSelector = 'tui-select';
|
1264
1264
|
|
1265
1265
|
var TuiTagHarness = /** @class */ (function (_super) {
|
1266
1266
|
__extends(TuiTagHarness, _super);
|
@@ -1270,7 +1270,7 @@
|
|
1270
1270
|
TuiTagHarness.prototype.getCrossIcon = function () {
|
1271
1271
|
return __awaiter(this, void 0, void 0, function () {
|
1272
1272
|
return __generator(this, function (_a) {
|
1273
|
-
return [2 /*return*/, this.locatorForOptional(TuiSvgHarness.with({ selector:
|
1273
|
+
return [2 /*return*/, this.locatorForOptional(TuiSvgHarness.with({ selector: '.t-icon' }))()];
|
1274
1274
|
});
|
1275
1275
|
});
|
1276
1276
|
};
|
@@ -1279,10 +1279,10 @@
|
|
1279
1279
|
var div;
|
1280
1280
|
return __generator(this, function (_a) {
|
1281
1281
|
switch (_a.label) {
|
1282
|
-
case 0: return [4 /*yield*/, this.locatorFor(
|
1282
|
+
case 0: return [4 /*yield*/, this.locatorFor(':first-child')()];
|
1283
1283
|
case 1:
|
1284
1284
|
div = _a.sent();
|
1285
|
-
return [2 /*return*/, div.getCssValue(
|
1285
|
+
return [2 /*return*/, div.getCssValue('background-color')];
|
1286
1286
|
}
|
1287
1287
|
});
|
1288
1288
|
});
|
@@ -1290,7 +1290,7 @@
|
|
1290
1290
|
TuiTagHarness.prototype.getInput = function () {
|
1291
1291
|
return __awaiter(this, void 0, void 0, function () {
|
1292
1292
|
return __generator(this, function (_a) {
|
1293
|
-
return [2 /*return*/, this.locatorForOptional(
|
1293
|
+
return [2 /*return*/, this.locatorForOptional('input.t-edit')()];
|
1294
1294
|
});
|
1295
1295
|
});
|
1296
1296
|
};
|
@@ -1326,7 +1326,7 @@
|
|
1326
1326
|
};
|
1327
1327
|
return TuiTagHarness;
|
1328
1328
|
}(utils.TuiComponentHarness));
|
1329
|
-
TuiTagHarness.hostSelector =
|
1329
|
+
TuiTagHarness.hostSelector = 'tui-tag';
|
1330
1330
|
|
1331
1331
|
var TuiTextfieldHarness = /** @class */ (function (_super) {
|
1332
1332
|
__extends(TuiTextfieldHarness, _super);
|
@@ -1338,20 +1338,20 @@
|
|
1338
1338
|
return __generator(this, function (_a) {
|
1339
1339
|
switch (_a.label) {
|
1340
1340
|
case 0: return [4 /*yield*/, this.host()];
|
1341
|
-
case 1: return [2 /*return*/, (_a.sent()).sendKeys(
|
1341
|
+
case 1: return [2 /*return*/, (_a.sent()).sendKeys(' ')];
|
1342
1342
|
}
|
1343
1343
|
});
|
1344
1344
|
});
|
1345
1345
|
};
|
1346
1346
|
return TuiTextfieldHarness;
|
1347
1347
|
}(utils.TuiComponentHarness));
|
1348
|
-
TuiTextfieldHarness.hostSelector =
|
1348
|
+
TuiTextfieldHarness.hostSelector = 'input[tuiTextfield], textarea[tuiTextfield]';
|
1349
1349
|
|
1350
1350
|
var TuiToggleHarness = /** @class */ (function (_super) {
|
1351
1351
|
__extends(TuiToggleHarness, _super);
|
1352
1352
|
function TuiToggleHarness() {
|
1353
1353
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
1354
|
-
_this.input = _this.locatorFor(
|
1354
|
+
_this.input = _this.locatorFor('input');
|
1355
1355
|
return _this;
|
1356
1356
|
}
|
1357
1357
|
TuiToggleHarness.prototype.toggle = function () {
|
@@ -1373,7 +1373,7 @@
|
|
1373
1373
|
};
|
1374
1374
|
return TuiToggleHarness;
|
1375
1375
|
}(utils.TuiComponentHarness));
|
1376
|
-
TuiToggleHarness.hostSelector =
|
1376
|
+
TuiToggleHarness.hostSelector = 'tui-toggle';
|
1377
1377
|
|
1378
1378
|
/**
|
1379
1379
|
* Generated bundle index. Do not edit.
|