@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.
Files changed (160) hide show
  1. package/cypress/commands/wait-all-img-inside.command.d.ts +0 -1
  2. package/esm2020/core/accordion-item.harness.mjs +32 -0
  3. package/esm2020/core/accordion.harness.mjs +8 -0
  4. package/esm2020/core/action.harness.mjs +13 -0
  5. package/esm2020/core/avatar.harness.mjs +8 -0
  6. package/esm2020/core/badge.harness.mjs +14 -0
  7. package/esm2020/core/button.harness.mjs +16 -0
  8. package/esm2020/core/calendar.harness.mjs +52 -0
  9. package/esm2020/core/card.harness.mjs +20 -0
  10. package/esm2020/core/dialog.harness.mjs +11 -0
  11. package/esm2020/core/hosted-dropdown.harness.mjs +12 -0
  12. package/esm2020/core/island.harness.mjs +38 -0
  13. package/esm2020/core/loader.harness.mjs +20 -0
  14. package/esm2020/core/primitive-calender.harness.mjs +29 -0
  15. package/esm2020/core/primitive-spin-button.harness.mjs +12 -0
  16. package/esm2020/core/primitive-textfield.harness.mjs +11 -0
  17. package/esm2020/core/primitive-year-month-pagination.harness.mjs +32 -0
  18. package/{esm2015/core/primitive-year-picker.harness.js → esm2020/core/primitive-year-picker.harness.mjs} +9 -16
  19. package/esm2020/core/select.harness.mjs +16 -0
  20. package/esm2020/core/svg.harness.mjs +17 -0
  21. package/esm2020/core/tag.harness.mjs +26 -0
  22. package/esm2020/core/textfield.harness.mjs +8 -0
  23. package/esm2020/core/toggle.harness.mjs +16 -0
  24. package/esm2020/cypress/commands/wait-all-img-inside.command.mjs +62 -0
  25. package/esm2020/cypress/snapshot/command.mjs +25 -0
  26. package/esm2020/cypress/snapshot/plugin.mjs +23 -0
  27. package/esm2020/utils/active-element.mjs +12 -0
  28. package/esm2020/utils/configure-test-suite.mjs +32 -0
  29. package/esm2020/utils/input/filler.unit-common.mjs +48 -0
  30. package/esm2020/utils/input/form-control-state.unit-common.mjs +36 -0
  31. package/{esm2015/utils/input/placeholder.unit-common.js → esm2020/utils/input/placeholder.unit-common.mjs} +1 -1
  32. package/{esm2015/utils/input/tooltip.unit-common.js → esm2020/utils/input/tooltip.unit-common.mjs} +1 -1
  33. package/esm2020/utils/native-input.page-object.mjs +53 -0
  34. package/esm2020/utils/replace-nbsp.mjs +5 -0
  35. package/fesm2015/{taiga-ui-testing-core.js → taiga-ui-testing-core.mjs} +1 -1
  36. package/fesm2015/taiga-ui-testing-core.mjs.map +1 -0
  37. package/fesm2015/{taiga-ui-testing-cypress.js → taiga-ui-testing-cypress.mjs} +2 -2
  38. package/fesm2015/taiga-ui-testing-cypress.mjs.map +1 -0
  39. package/fesm2015/{taiga-ui-testing-exceptions.js → taiga-ui-testing-exceptions.mjs} +1 -1
  40. package/fesm2015/taiga-ui-testing-exceptions.mjs.map +1 -0
  41. package/fesm2015/{taiga-ui-testing-mocks.js → taiga-ui-testing-mocks.mjs} +1 -1
  42. package/fesm2015/taiga-ui-testing-mocks.mjs.map +1 -0
  43. package/fesm2015/{taiga-ui-testing-setup-jest.js → taiga-ui-testing-setup-jest.mjs} +1 -1
  44. package/fesm2015/taiga-ui-testing-setup-jest.mjs.map +1 -0
  45. package/fesm2015/{taiga-ui-testing-utils.js → taiga-ui-testing-utils.mjs} +7 -6
  46. package/fesm2015/taiga-ui-testing-utils.mjs.map +1 -0
  47. package/fesm2015/{taiga-ui-testing.js → taiga-ui-testing.mjs} +1 -1
  48. package/fesm2015/taiga-ui-testing.mjs.map +1 -0
  49. package/fesm2020/taiga-ui-testing-core.mjs +405 -0
  50. package/fesm2020/taiga-ui-testing-core.mjs.map +1 -0
  51. package/fesm2020/taiga-ui-testing-cypress.mjs +144 -0
  52. package/fesm2020/taiga-ui-testing-cypress.mjs.map +1 -0
  53. package/fesm2020/taiga-ui-testing-exceptions.mjs +18 -0
  54. package/fesm2020/taiga-ui-testing-exceptions.mjs.map +1 -0
  55. package/fesm2020/taiga-ui-testing-mocks.mjs +40 -0
  56. package/fesm2020/taiga-ui-testing-mocks.mjs.map +1 -0
  57. package/fesm2020/taiga-ui-testing-setup-jest.mjs +122 -0
  58. package/fesm2020/taiga-ui-testing-setup-jest.mjs.map +1 -0
  59. package/fesm2020/taiga-ui-testing-utils.mjs +511 -0
  60. package/fesm2020/taiga-ui-testing-utils.mjs.map +1 -0
  61. package/fesm2020/taiga-ui-testing.mjs +16 -0
  62. package/fesm2020/taiga-ui-testing.mjs.map +1 -0
  63. package/package.json +78 -17
  64. package/utils/configure-test-suite.d.ts +2 -1
  65. package/utils/input/filler.unit-common.d.ts +2 -2
  66. package/utils/input/form-control-state.unit-common.d.ts +2 -2
  67. package/utils/input/placeholder.unit-common.d.ts +2 -2
  68. package/utils/input/tooltip.unit-common.d.ts +2 -2
  69. package/bundles/taiga-ui-testing-core.umd.js +0 -1407
  70. package/bundles/taiga-ui-testing-core.umd.js.map +0 -1
  71. package/bundles/taiga-ui-testing-cypress.umd.js +0 -484
  72. package/bundles/taiga-ui-testing-cypress.umd.js.map +0 -1
  73. package/bundles/taiga-ui-testing-exceptions.umd.js +0 -351
  74. package/bundles/taiga-ui-testing-exceptions.umd.js.map +0 -1
  75. package/bundles/taiga-ui-testing-mocks.umd.js +0 -371
  76. package/bundles/taiga-ui-testing-mocks.umd.js.map +0 -1
  77. package/bundles/taiga-ui-testing-setup-jest.umd.js +0 -135
  78. package/bundles/taiga-ui-testing-setup-jest.umd.js.map +0 -1
  79. package/bundles/taiga-ui-testing-utils.umd.js +0 -933
  80. package/bundles/taiga-ui-testing-utils.umd.js.map +0 -1
  81. package/bundles/taiga-ui-testing.umd.js +0 -46
  82. package/bundles/taiga-ui-testing.umd.js.map +0 -1
  83. package/core/package.json +0 -10
  84. package/core/taiga-ui-testing-core.d.ts +0 -5
  85. package/cypress/package.json +0 -10
  86. package/cypress/taiga-ui-testing-cypress.d.ts +0 -5
  87. package/esm2015/core/accordion-item.harness.js +0 -49
  88. package/esm2015/core/accordion.harness.js +0 -11
  89. package/esm2015/core/action.harness.js +0 -16
  90. package/esm2015/core/avatar.harness.js +0 -11
  91. package/esm2015/core/badge.harness.js +0 -21
  92. package/esm2015/core/button.harness.js +0 -21
  93. package/esm2015/core/calendar.harness.js +0 -84
  94. package/esm2015/core/card.harness.js +0 -25
  95. package/esm2015/core/dialog.harness.js +0 -14
  96. package/esm2015/core/hosted-dropdown.harness.js +0 -17
  97. package/esm2015/core/island.harness.js +0 -53
  98. package/esm2015/core/loader.harness.js +0 -25
  99. package/esm2015/core/primitive-calender.harness.js +0 -40
  100. package/esm2015/core/primitive-spin-button.harness.js +0 -17
  101. package/esm2015/core/primitive-textfield.harness.js +0 -16
  102. package/esm2015/core/primitive-year-month-pagination.harness.js +0 -49
  103. package/esm2015/core/select.harness.js +0 -21
  104. package/esm2015/core/svg.harness.js +0 -27
  105. package/esm2015/core/tag.harness.js +0 -39
  106. package/esm2015/core/textfield.harness.js +0 -11
  107. package/esm2015/core/toggle.harness.js +0 -21
  108. package/esm2015/cypress/commands/wait-all-img-inside.command.js +0 -62
  109. package/esm2015/cypress/snapshot/command.js +0 -25
  110. package/esm2015/cypress/snapshot/plugin.js +0 -26
  111. package/esm2015/utils/active-element.js +0 -14
  112. package/esm2015/utils/configure-test-suite.js +0 -32
  113. package/esm2015/utils/input/filler.unit-common.js +0 -50
  114. package/esm2015/utils/input/form-control-state.unit-common.js +0 -37
  115. package/esm2015/utils/native-input.page-object.js +0 -58
  116. package/esm2015/utils/replace-nbsp.js +0 -6
  117. package/exceptions/package.json +0 -10
  118. package/exceptions/taiga-ui-testing-exceptions.d.ts +0 -5
  119. package/fesm2015/taiga-ui-testing-core.js.map +0 -1
  120. package/fesm2015/taiga-ui-testing-cypress.js.map +0 -1
  121. package/fesm2015/taiga-ui-testing-exceptions.js.map +0 -1
  122. package/fesm2015/taiga-ui-testing-mocks.js.map +0 -1
  123. package/fesm2015/taiga-ui-testing-setup-jest.js.map +0 -1
  124. package/fesm2015/taiga-ui-testing-utils.js.map +0 -1
  125. package/fesm2015/taiga-ui-testing.js.map +0 -1
  126. package/mocks/package.json +0 -10
  127. package/mocks/taiga-ui-testing-mocks.d.ts +0 -5
  128. package/setup-jest/package.json +0 -10
  129. package/setup-jest/taiga-ui-testing-setup-jest.d.ts +0 -5
  130. package/taiga-ui-testing.d.ts +0 -5
  131. package/utils/package.json +0 -10
  132. package/utils/taiga-ui-testing-utils.d.ts +0 -5
  133. /package/{esm2015/core/index.js → esm2020/core/index.mjs} +0 -0
  134. /package/{esm2015/core/marker-icon.harness.js → esm2020/core/marker-icon.harness.mjs} +0 -0
  135. /package/{esm2015/core/taiga-ui-testing-core.js → esm2020/core/taiga-ui-testing-core.mjs} +0 -0
  136. /package/{esm2015/cypress/assertions/be-in-viewport.js → esm2020/cypress/assertions/be-in-viewport.mjs} +0 -0
  137. /package/{esm2015/cypress/assertions/index.js → esm2020/cypress/assertions/index.mjs} +0 -0
  138. /package/{esm2015/cypress/index.js → esm2020/cypress/index.mjs} +0 -0
  139. /package/{esm2015/cypress/taiga-ui-testing-cypress.js → esm2020/cypress/taiga-ui-testing-cypress.mjs} +0 -0
  140. /package/{esm2015/exceptions/element-is-not-input.exception.js → esm2020/exceptions/element-is-not-input.exception.mjs} +0 -0
  141. /package/{esm2015/exceptions/field-not-found.exception.js → esm2020/exceptions/field-not-found.exception.mjs} +0 -0
  142. /package/{esm2015/exceptions/index.js → esm2020/exceptions/index.mjs} +0 -0
  143. /package/{esm2015/exceptions/taiga-ui-testing-exceptions.js → esm2020/exceptions/taiga-ui-testing-exceptions.mjs} +0 -0
  144. /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  145. /package/{esm2015/mocks/event.js → esm2020/mocks/event.mjs} +0 -0
  146. /package/{esm2015/mocks/index.js → esm2020/mocks/index.mjs} +0 -0
  147. /package/{esm2015/mocks/sanitizer.js → esm2020/mocks/sanitizer.mjs} +0 -0
  148. /package/{esm2015/mocks/switch-ng-dev-mode.js → esm2020/mocks/switch-ng-dev-mode.mjs} +0 -0
  149. /package/{esm2015/mocks/taiga-ui-testing-mocks.js → esm2020/mocks/taiga-ui-testing-mocks.mjs} +0 -0
  150. /package/{esm2015/setup-jest/index.js → esm2020/setup-jest/index.mjs} +0 -0
  151. /package/{esm2015/setup-jest/taiga-ui-testing-setup-jest.js → esm2020/setup-jest/taiga-ui-testing-setup-jest.mjs} +0 -0
  152. /package/{esm2015/taiga-ui-testing.js → esm2020/taiga-ui-testing.mjs} +0 -0
  153. /package/{esm2015/utils/date.js → esm2020/utils/date.mjs} +0 -0
  154. /package/{esm2015/utils/helpers.js → esm2020/utils/helpers.mjs} +0 -0
  155. /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
  156. /package/{esm2015/utils/input/cleaner.unit-common.js → esm2020/utils/input/cleaner.unit-common.mjs} +0 -0
  157. /package/{esm2015/utils/keyboard-event.js → esm2020/utils/keyboard-event.mjs} +0 -0
  158. /package/{esm2015/utils/page-object.js → esm2020/utils/page-object.mjs} +0 -0
  159. /package/{esm2015/utils/taiga-ui-testing-utils.js → esm2020/utils/taiga-ui-testing-utils.mjs} +0 -0
  160. /package/{esm2015/utils/viewport.js → esm2020/utils/viewport.mjs} +0 -0
package/package.json CHANGED
@@ -1,19 +1,80 @@
1
1
  {
2
- "name": "@taiga-ui/testing",
3
- "version": "3.57.0",
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.57.0"
11
- },
12
- "main": "bundles/taiga-ui-testing.umd.js",
13
- "module": "fesm2015/taiga-ui-testing.js",
14
- "es2015": "fesm2015/taiga-ui-testing.js",
15
- "esm2015": "esm2015/taiga-ui-testing.js",
16
- "fesm2015": "fesm2015/taiga-ui-testing.js",
17
- "typings": "taiga-ui-testing.d.ts",
18
- "sideEffects": false
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
- export declare const configureTestSuite: (configureModule?: (() => void) | undefined) => void;
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 { FormControl } from '@angular/forms';
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: FormControl;
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 { FormControl } from '@angular/forms';
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: FormControl;
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 { FormControl } from '@angular/forms';
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?: FormControl;
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 { FormControl } from '@angular/forms';
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?: FormControl;
11
+ control?: UntypedFormControl;
12
12
  disabled?: boolean;
13
13
  hintContent: string | null;
14
14
  readOnly: boolean;