@taiga-ui/testing 3.57.0 → 3.59.0-canary.10da730
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/cypress/commands/wait-all-img-inside.command.d.ts +0 -1
- package/esm2020/core/accordion-item.harness.mjs +32 -0
- package/esm2020/core/accordion.harness.mjs +8 -0
- package/esm2020/core/action.harness.mjs +13 -0
- package/esm2020/core/avatar.harness.mjs +8 -0
- package/esm2020/core/badge.harness.mjs +14 -0
- package/esm2020/core/button.harness.mjs +16 -0
- package/esm2020/core/calendar.harness.mjs +52 -0
- package/esm2020/core/card.harness.mjs +20 -0
- package/esm2020/core/dialog.harness.mjs +11 -0
- package/esm2020/core/hosted-dropdown.harness.mjs +12 -0
- package/esm2020/core/island.harness.mjs +38 -0
- package/esm2020/core/loader.harness.mjs +20 -0
- package/esm2020/core/primitive-calender.harness.mjs +29 -0
- package/esm2020/core/primitive-spin-button.harness.mjs +12 -0
- package/esm2020/core/primitive-textfield.harness.mjs +11 -0
- package/esm2020/core/primitive-year-month-pagination.harness.mjs +32 -0
- package/{esm2015/core/primitive-year-picker.harness.js → esm2020/core/primitive-year-picker.harness.mjs} +9 -16
- package/esm2020/core/select.harness.mjs +16 -0
- package/esm2020/core/svg.harness.mjs +17 -0
- package/esm2020/core/tag.harness.mjs +26 -0
- package/esm2020/core/textfield.harness.mjs +8 -0
- package/esm2020/core/toggle.harness.mjs +16 -0
- package/esm2020/cypress/commands/wait-all-img-inside.command.mjs +62 -0
- package/esm2020/cypress/snapshot/command.mjs +25 -0
- package/esm2020/cypress/snapshot/plugin.mjs +23 -0
- package/esm2020/utils/active-element.mjs +12 -0
- package/esm2020/utils/configure-test-suite.mjs +32 -0
- package/esm2020/utils/input/filler.unit-common.mjs +48 -0
- package/esm2020/utils/input/form-control-state.unit-common.mjs +36 -0
- package/{esm2015/utils/input/placeholder.unit-common.js → esm2020/utils/input/placeholder.unit-common.mjs} +1 -1
- package/{esm2015/utils/input/tooltip.unit-common.js → esm2020/utils/input/tooltip.unit-common.mjs} +1 -1
- package/esm2020/utils/native-input.page-object.mjs +53 -0
- package/esm2020/utils/replace-nbsp.mjs +5 -0
- package/fesm2015/{taiga-ui-testing-core.js → taiga-ui-testing-core.mjs} +1 -1
- package/fesm2015/taiga-ui-testing-core.mjs.map +1 -0
- package/fesm2015/{taiga-ui-testing-cypress.js → taiga-ui-testing-cypress.mjs} +2 -2
- package/fesm2015/taiga-ui-testing-cypress.mjs.map +1 -0
- package/fesm2015/{taiga-ui-testing-exceptions.js → taiga-ui-testing-exceptions.mjs} +1 -1
- package/fesm2015/taiga-ui-testing-exceptions.mjs.map +1 -0
- package/fesm2015/{taiga-ui-testing-mocks.js → taiga-ui-testing-mocks.mjs} +1 -1
- package/fesm2015/taiga-ui-testing-mocks.mjs.map +1 -0
- package/fesm2015/{taiga-ui-testing-setup-jest.js → taiga-ui-testing-setup-jest.mjs} +1 -1
- package/fesm2015/taiga-ui-testing-setup-jest.mjs.map +1 -0
- package/fesm2015/{taiga-ui-testing-utils.js → taiga-ui-testing-utils.mjs} +7 -6
- package/fesm2015/taiga-ui-testing-utils.mjs.map +1 -0
- package/fesm2015/{taiga-ui-testing.js → taiga-ui-testing.mjs} +1 -1
- package/fesm2015/taiga-ui-testing.mjs.map +1 -0
- package/fesm2020/taiga-ui-testing-core.mjs +405 -0
- package/fesm2020/taiga-ui-testing-core.mjs.map +1 -0
- package/fesm2020/taiga-ui-testing-cypress.mjs +144 -0
- package/fesm2020/taiga-ui-testing-cypress.mjs.map +1 -0
- package/fesm2020/taiga-ui-testing-exceptions.mjs +18 -0
- package/fesm2020/taiga-ui-testing-exceptions.mjs.map +1 -0
- package/fesm2020/taiga-ui-testing-mocks.mjs +40 -0
- package/fesm2020/taiga-ui-testing-mocks.mjs.map +1 -0
- package/fesm2020/taiga-ui-testing-setup-jest.mjs +122 -0
- package/fesm2020/taiga-ui-testing-setup-jest.mjs.map +1 -0
- package/fesm2020/taiga-ui-testing-utils.mjs +511 -0
- package/fesm2020/taiga-ui-testing-utils.mjs.map +1 -0
- package/fesm2020/taiga-ui-testing.mjs +16 -0
- package/fesm2020/taiga-ui-testing.mjs.map +1 -0
- package/package.json +78 -17
- package/utils/configure-test-suite.d.ts +2 -1
- package/utils/input/filler.unit-common.d.ts +2 -2
- package/utils/input/form-control-state.unit-common.d.ts +2 -2
- package/utils/input/placeholder.unit-common.d.ts +2 -2
- package/utils/input/tooltip.unit-common.d.ts +2 -2
- package/bundles/taiga-ui-testing-core.umd.js +0 -1407
- package/bundles/taiga-ui-testing-core.umd.js.map +0 -1
- package/bundles/taiga-ui-testing-cypress.umd.js +0 -484
- package/bundles/taiga-ui-testing-cypress.umd.js.map +0 -1
- package/bundles/taiga-ui-testing-exceptions.umd.js +0 -351
- package/bundles/taiga-ui-testing-exceptions.umd.js.map +0 -1
- package/bundles/taiga-ui-testing-mocks.umd.js +0 -371
- package/bundles/taiga-ui-testing-mocks.umd.js.map +0 -1
- package/bundles/taiga-ui-testing-setup-jest.umd.js +0 -135
- package/bundles/taiga-ui-testing-setup-jest.umd.js.map +0 -1
- package/bundles/taiga-ui-testing-utils.umd.js +0 -933
- package/bundles/taiga-ui-testing-utils.umd.js.map +0 -1
- package/bundles/taiga-ui-testing.umd.js +0 -46
- package/bundles/taiga-ui-testing.umd.js.map +0 -1
- package/core/package.json +0 -10
- package/core/taiga-ui-testing-core.d.ts +0 -5
- package/cypress/package.json +0 -10
- package/cypress/taiga-ui-testing-cypress.d.ts +0 -5
- package/esm2015/core/accordion-item.harness.js +0 -49
- package/esm2015/core/accordion.harness.js +0 -11
- package/esm2015/core/action.harness.js +0 -16
- package/esm2015/core/avatar.harness.js +0 -11
- package/esm2015/core/badge.harness.js +0 -21
- package/esm2015/core/button.harness.js +0 -21
- package/esm2015/core/calendar.harness.js +0 -84
- package/esm2015/core/card.harness.js +0 -25
- package/esm2015/core/dialog.harness.js +0 -14
- package/esm2015/core/hosted-dropdown.harness.js +0 -17
- package/esm2015/core/island.harness.js +0 -53
- package/esm2015/core/loader.harness.js +0 -25
- package/esm2015/core/primitive-calender.harness.js +0 -40
- package/esm2015/core/primitive-spin-button.harness.js +0 -17
- package/esm2015/core/primitive-textfield.harness.js +0 -16
- package/esm2015/core/primitive-year-month-pagination.harness.js +0 -49
- package/esm2015/core/select.harness.js +0 -21
- package/esm2015/core/svg.harness.js +0 -27
- package/esm2015/core/tag.harness.js +0 -39
- package/esm2015/core/textfield.harness.js +0 -11
- package/esm2015/core/toggle.harness.js +0 -21
- package/esm2015/cypress/commands/wait-all-img-inside.command.js +0 -62
- package/esm2015/cypress/snapshot/command.js +0 -25
- package/esm2015/cypress/snapshot/plugin.js +0 -26
- package/esm2015/utils/active-element.js +0 -14
- package/esm2015/utils/configure-test-suite.js +0 -32
- package/esm2015/utils/input/filler.unit-common.js +0 -50
- package/esm2015/utils/input/form-control-state.unit-common.js +0 -37
- package/esm2015/utils/native-input.page-object.js +0 -58
- package/esm2015/utils/replace-nbsp.js +0 -6
- package/exceptions/package.json +0 -10
- package/exceptions/taiga-ui-testing-exceptions.d.ts +0 -5
- package/fesm2015/taiga-ui-testing-core.js.map +0 -1
- package/fesm2015/taiga-ui-testing-cypress.js.map +0 -1
- package/fesm2015/taiga-ui-testing-exceptions.js.map +0 -1
- package/fesm2015/taiga-ui-testing-mocks.js.map +0 -1
- package/fesm2015/taiga-ui-testing-setup-jest.js.map +0 -1
- package/fesm2015/taiga-ui-testing-utils.js.map +0 -1
- package/fesm2015/taiga-ui-testing.js.map +0 -1
- package/mocks/package.json +0 -10
- package/mocks/taiga-ui-testing-mocks.d.ts +0 -5
- package/setup-jest/package.json +0 -10
- package/setup-jest/taiga-ui-testing-setup-jest.d.ts +0 -5
- package/taiga-ui-testing.d.ts +0 -5
- package/utils/package.json +0 -10
- package/utils/taiga-ui-testing-utils.d.ts +0 -5
- /package/{esm2015/core/index.js → esm2020/core/index.mjs} +0 -0
- /package/{esm2015/core/marker-icon.harness.js → esm2020/core/marker-icon.harness.mjs} +0 -0
- /package/{esm2015/core/taiga-ui-testing-core.js → esm2020/core/taiga-ui-testing-core.mjs} +0 -0
- /package/{esm2015/cypress/assertions/be-in-viewport.js → esm2020/cypress/assertions/be-in-viewport.mjs} +0 -0
- /package/{esm2015/cypress/assertions/index.js → esm2020/cypress/assertions/index.mjs} +0 -0
- /package/{esm2015/cypress/index.js → esm2020/cypress/index.mjs} +0 -0
- /package/{esm2015/cypress/taiga-ui-testing-cypress.js → esm2020/cypress/taiga-ui-testing-cypress.mjs} +0 -0
- /package/{esm2015/exceptions/element-is-not-input.exception.js → esm2020/exceptions/element-is-not-input.exception.mjs} +0 -0
- /package/{esm2015/exceptions/field-not-found.exception.js → esm2020/exceptions/field-not-found.exception.mjs} +0 -0
- /package/{esm2015/exceptions/index.js → esm2020/exceptions/index.mjs} +0 -0
- /package/{esm2015/exceptions/taiga-ui-testing-exceptions.js → esm2020/exceptions/taiga-ui-testing-exceptions.mjs} +0 -0
- /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- /package/{esm2015/mocks/event.js → esm2020/mocks/event.mjs} +0 -0
- /package/{esm2015/mocks/index.js → esm2020/mocks/index.mjs} +0 -0
- /package/{esm2015/mocks/sanitizer.js → esm2020/mocks/sanitizer.mjs} +0 -0
- /package/{esm2015/mocks/switch-ng-dev-mode.js → esm2020/mocks/switch-ng-dev-mode.mjs} +0 -0
- /package/{esm2015/mocks/taiga-ui-testing-mocks.js → esm2020/mocks/taiga-ui-testing-mocks.mjs} +0 -0
- /package/{esm2015/setup-jest/index.js → esm2020/setup-jest/index.mjs} +0 -0
- /package/{esm2015/setup-jest/taiga-ui-testing-setup-jest.js → esm2020/setup-jest/taiga-ui-testing-setup-jest.mjs} +0 -0
- /package/{esm2015/taiga-ui-testing.js → esm2020/taiga-ui-testing.mjs} +0 -0
- /package/{esm2015/utils/date.js → esm2020/utils/date.mjs} +0 -0
- /package/{esm2015/utils/helpers.js → esm2020/utils/helpers.mjs} +0 -0
- /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
- /package/{esm2015/utils/input/cleaner.unit-common.js → esm2020/utils/input/cleaner.unit-common.mjs} +0 -0
- /package/{esm2015/utils/keyboard-event.js → esm2020/utils/keyboard-event.mjs} +0 -0
- /package/{esm2015/utils/page-object.js → esm2020/utils/page-object.mjs} +0 -0
- /package/{esm2015/utils/taiga-ui-testing-utils.js → esm2020/utils/taiga-ui-testing-utils.mjs} +0 -0
- /package/{esm2015/utils/viewport.js → esm2020/utils/viewport.mjs} +0 -0
package/package.json
CHANGED
@@ -1,19 +1,80 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
2
|
+
"name": "@taiga-ui/testing",
|
3
|
+
"version": "3.59.0-canary.10da730",
|
4
|
+
"description": "Utils functions for testing Taiga UI packages",
|
5
|
+
"dependencies": {
|
6
|
+
"cypress-image-snapshot": "4.0.1",
|
7
|
+
"tslib": "2.6.2"
|
8
|
+
},
|
9
|
+
"peerDependencies": {
|
10
|
+
"@taiga-ui/cdk": ">=3.59.0-canary.10da730"
|
11
|
+
},
|
12
|
+
"module": "fesm2015/taiga-ui-testing.mjs",
|
13
|
+
"es2020": "fesm2020/taiga-ui-testing.mjs",
|
14
|
+
"esm2020": "esm2020/taiga-ui-testing.mjs",
|
15
|
+
"fesm2020": "fesm2020/taiga-ui-testing.mjs",
|
16
|
+
"fesm2015": "fesm2015/taiga-ui-testing.mjs",
|
17
|
+
"typings": "index.d.ts",
|
18
|
+
"exports": {
|
19
|
+
"./package.json": {
|
20
|
+
"default": "./package.json"
|
21
|
+
},
|
22
|
+
".": {
|
23
|
+
"types": "./index.d.ts",
|
24
|
+
"esm2020": "./esm2020/taiga-ui-testing.mjs",
|
25
|
+
"es2020": "./fesm2020/taiga-ui-testing.mjs",
|
26
|
+
"es2015": "./fesm2015/taiga-ui-testing.mjs",
|
27
|
+
"node": "./fesm2015/taiga-ui-testing.mjs",
|
28
|
+
"default": "./fesm2020/taiga-ui-testing.mjs"
|
29
|
+
},
|
30
|
+
"./core": {
|
31
|
+
"types": "./core/index.d.ts",
|
32
|
+
"esm2020": "./esm2020/core/taiga-ui-testing-core.mjs",
|
33
|
+
"es2020": "./fesm2020/taiga-ui-testing-core.mjs",
|
34
|
+
"es2015": "./fesm2015/taiga-ui-testing-core.mjs",
|
35
|
+
"node": "./fesm2015/taiga-ui-testing-core.mjs",
|
36
|
+
"default": "./fesm2020/taiga-ui-testing-core.mjs"
|
37
|
+
},
|
38
|
+
"./cypress": {
|
39
|
+
"types": "./cypress/index.d.ts",
|
40
|
+
"esm2020": "./esm2020/cypress/taiga-ui-testing-cypress.mjs",
|
41
|
+
"es2020": "./fesm2020/taiga-ui-testing-cypress.mjs",
|
42
|
+
"es2015": "./fesm2015/taiga-ui-testing-cypress.mjs",
|
43
|
+
"node": "./fesm2015/taiga-ui-testing-cypress.mjs",
|
44
|
+
"default": "./fesm2020/taiga-ui-testing-cypress.mjs"
|
45
|
+
},
|
46
|
+
"./exceptions": {
|
47
|
+
"types": "./exceptions/index.d.ts",
|
48
|
+
"esm2020": "./esm2020/exceptions/taiga-ui-testing-exceptions.mjs",
|
49
|
+
"es2020": "./fesm2020/taiga-ui-testing-exceptions.mjs",
|
50
|
+
"es2015": "./fesm2015/taiga-ui-testing-exceptions.mjs",
|
51
|
+
"node": "./fesm2015/taiga-ui-testing-exceptions.mjs",
|
52
|
+
"default": "./fesm2020/taiga-ui-testing-exceptions.mjs"
|
53
|
+
},
|
54
|
+
"./mocks": {
|
55
|
+
"types": "./mocks/index.d.ts",
|
56
|
+
"esm2020": "./esm2020/mocks/taiga-ui-testing-mocks.mjs",
|
57
|
+
"es2020": "./fesm2020/taiga-ui-testing-mocks.mjs",
|
58
|
+
"es2015": "./fesm2015/taiga-ui-testing-mocks.mjs",
|
59
|
+
"node": "./fesm2015/taiga-ui-testing-mocks.mjs",
|
60
|
+
"default": "./fesm2020/taiga-ui-testing-mocks.mjs"
|
61
|
+
},
|
62
|
+
"./setup-jest": {
|
63
|
+
"types": "./setup-jest/index.d.ts",
|
64
|
+
"esm2020": "./esm2020/setup-jest/taiga-ui-testing-setup-jest.mjs",
|
65
|
+
"es2020": "./fesm2020/taiga-ui-testing-setup-jest.mjs",
|
66
|
+
"es2015": "./fesm2015/taiga-ui-testing-setup-jest.mjs",
|
67
|
+
"node": "./fesm2015/taiga-ui-testing-setup-jest.mjs",
|
68
|
+
"default": "./fesm2020/taiga-ui-testing-setup-jest.mjs"
|
69
|
+
},
|
70
|
+
"./utils": {
|
71
|
+
"types": "./utils/index.d.ts",
|
72
|
+
"esm2020": "./esm2020/utils/taiga-ui-testing-utils.mjs",
|
73
|
+
"es2020": "./fesm2020/taiga-ui-testing-utils.mjs",
|
74
|
+
"es2015": "./fesm2015/taiga-ui-testing-utils.mjs",
|
75
|
+
"node": "./fesm2015/taiga-ui-testing-utils.mjs",
|
76
|
+
"default": "./fesm2020/taiga-ui-testing-utils.mjs"
|
77
|
+
}
|
78
|
+
},
|
79
|
+
"sideEffects": false
|
19
80
|
}
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
/** deprecated, will be removed in 4.0 */
|
2
|
+
export declare const configureTestSuite: (configureModule?: () => void) => void;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ComponentFixture } from '@angular/core/testing';
|
2
|
-
import {
|
2
|
+
import { UntypedFormControl } from '@angular/forms';
|
3
3
|
import { TuiNativeInputPO } from '../native-input.page-object';
|
4
4
|
import { TuiPageObject } from '../page-object';
|
5
5
|
interface TestParams {
|
@@ -10,7 +10,7 @@ interface TestParams {
|
|
10
10
|
testComponent: TestComponent;
|
11
11
|
}
|
12
12
|
interface TestComponent {
|
13
|
-
control:
|
13
|
+
control: UntypedFormControl;
|
14
14
|
}
|
15
15
|
export declare function tuiTestFiller(context: TestParams, setValue?: unknown, clearValue?: unknown): void;
|
16
16
|
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ComponentFixture } from '@angular/core/testing';
|
2
|
-
import {
|
2
|
+
import { UntypedFormControl } from '@angular/forms';
|
3
3
|
import { TuiNativeInputPO } from '../native-input.page-object';
|
4
4
|
interface TestParams {
|
5
5
|
fixture: ComponentFixture<unknown>;
|
@@ -7,7 +7,7 @@ interface TestParams {
|
|
7
7
|
testComponent: TestComponent;
|
8
8
|
}
|
9
9
|
interface TestComponent {
|
10
|
-
control:
|
10
|
+
control: UntypedFormControl;
|
11
11
|
}
|
12
12
|
export declare function tuiTestFormControlState(context: TestParams): void;
|
13
13
|
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ComponentFixture } from '@angular/core/testing';
|
2
|
-
import {
|
2
|
+
import { UntypedFormControl } from '@angular/forms';
|
3
3
|
import { TuiPageObject } from '../page-object';
|
4
4
|
interface TestParams {
|
5
5
|
fixture: ComponentFixture<unknown>;
|
@@ -8,7 +8,7 @@ interface TestParams {
|
|
8
8
|
testComponent: TestComponent;
|
9
9
|
}
|
10
10
|
interface TestComponent {
|
11
|
-
control?:
|
11
|
+
control?: UntypedFormControl;
|
12
12
|
labelOutside: boolean;
|
13
13
|
size: 'l' | 'm' | 's';
|
14
14
|
value?: unknown;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ComponentFixture } from '@angular/core/testing';
|
2
|
-
import {
|
2
|
+
import { UntypedFormControl } from '@angular/forms';
|
3
3
|
import { TuiPageObject } from '../page-object';
|
4
4
|
interface TestParams {
|
5
5
|
fixture: ComponentFixture<unknown>;
|
@@ -8,7 +8,7 @@ interface TestParams {
|
|
8
8
|
testComponent: TestComponent;
|
9
9
|
}
|
10
10
|
interface TestComponent {
|
11
|
-
control?:
|
11
|
+
control?: UntypedFormControl;
|
12
12
|
disabled?: boolean;
|
13
13
|
hintContent: string | null;
|
14
14
|
readOnly: boolean;
|