@taiga-ui/testing 5.24.0 → 5.25.0-canary.2b025e7

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.
@@ -0,0 +1,64 @@
1
+ const TUI_DATA_LIST_HOST = 'tui-data-list';
2
+ const TUI_DATA_LIST_LOCATORS = {
3
+ HOST: TUI_DATA_LIST_HOST,
4
+ OPTION: `${TUI_DATA_LIST_HOST} [tuiOption]`,
5
+ };
6
+
7
+ const TUI_DROPDOWN_LOCATORS = { HOST: 'tui-dropdown' };
8
+
9
+ const TUI_DROPDOWN_MOBILE_LOCATORS = { HOST: 'tui-dropdown-mobile' };
10
+
11
+ const TUI_HINT_LOCATORS = { HOST: 'tui-hint' };
12
+
13
+ const TUI_TEXTFIELD_LOCATORS = {
14
+ HOST: 'tui-textfield',
15
+ CLEANER: '[tuiButtonX]',
16
+ TOOLTIP: 'tui-icon[tuiTooltip]',
17
+ INPUT: '[tuiInput]',
18
+ FILLER: '.t-filler',
19
+ };
20
+
21
+ const TUI_INPUT_LOCATORS = {
22
+ ...TUI_TEXTFIELD_LOCATORS,
23
+ INPUT: 'input[tuiInput]',
24
+ };
25
+
26
+ const TUI_INPUT_CHIP_LOCATORS = {
27
+ ...TUI_TEXTFIELD_LOCATORS,
28
+ INPUT: 'input[tuiInputChip]',
29
+ CHIPS: '.t-items tui-textfield-item',
30
+ };
31
+
32
+ const TUI_INPUT_RANGE_LOCATORS = {
33
+ HOST: 'tui-input-range',
34
+ INPUT_START: `${TUI_TEXTFIELD_LOCATORS.HOST} [tuiInput]:first-of-type`,
35
+ INPUT_END: `${TUI_TEXTFIELD_LOCATORS.HOST} [tuiInput]:last-of-type`,
36
+ };
37
+
38
+ const TUI_LABEL_LOCATORS = { HOST: 'label[tuiLabel]' };
39
+
40
+ const TUI_RANGE_LOCATORS = {
41
+ HOST: 'tui-range',
42
+ THUMB_START: 'input[automation-id="tui-range__left"]',
43
+ THUMB_END: 'input[automation-id="tui-range__right"]',
44
+ };
45
+
46
+ const TUI_SCROLLBAR_LOCATORS = {
47
+ HOST: 'tui-scrollbar',
48
+ THUMB: '.t-thumb',
49
+ VERTICAL_BAR: '.t-bar_vertical',
50
+ };
51
+
52
+ const TUI_SELECT_LOCATORS = {
53
+ ...TUI_TEXTFIELD_LOCATORS,
54
+ INPUT: '[tuiSelect]',
55
+ };
56
+
57
+ const TUI_SHEET_DIALOG_LOCATORS = { HOST: 'tui-sheet-dialog' };
58
+
59
+ /**
60
+ * Generated bundle index. Do not edit.
61
+ */
62
+
63
+ export { TUI_DATA_LIST_LOCATORS, TUI_DROPDOWN_LOCATORS, TUI_DROPDOWN_MOBILE_LOCATORS, TUI_HINT_LOCATORS, TUI_INPUT_CHIP_LOCATORS, TUI_INPUT_LOCATORS, TUI_INPUT_RANGE_LOCATORS, TUI_LABEL_LOCATORS, TUI_RANGE_LOCATORS, TUI_SCROLLBAR_LOCATORS, TUI_SELECT_LOCATORS, TUI_SHEET_DIALOG_LOCATORS, TUI_TEXTFIELD_LOCATORS };
64
+ //# sourceMappingURL=taiga-ui-testing-locators.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-testing-locators.mjs","sources":["../../../projects/testing/locators/data-list.locators.ts","../../../projects/testing/locators/dropdown.locators.ts","../../../projects/testing/locators/dropdown-mobile.locators.ts","../../../projects/testing/locators/hint.locators.ts","../../../projects/testing/locators/textfield.locators.ts","../../../projects/testing/locators/input.locators.ts","../../../projects/testing/locators/input-chip.locators.ts","../../../projects/testing/locators/input-range.locators.ts","../../../projects/testing/locators/label.locators.ts","../../../projects/testing/locators/range.locators.ts","../../../projects/testing/locators/scrollbar.locators.ts","../../../projects/testing/locators/select.locators.ts","../../../projects/testing/locators/sheet-dialog.locators.ts","../../../projects/testing/locators/taiga-ui-testing-locators.ts"],"sourcesContent":["const TUI_DATA_LIST_HOST = 'tui-data-list';\n\nexport const TUI_DATA_LIST_LOCATORS = {\n HOST: TUI_DATA_LIST_HOST,\n OPTION: `${TUI_DATA_LIST_HOST} [tuiOption]`,\n} as const;\n","export const TUI_DROPDOWN_LOCATORS = {HOST: 'tui-dropdown'} as const;\n","export const TUI_DROPDOWN_MOBILE_LOCATORS = {HOST: 'tui-dropdown-mobile'} as const;\n","export const TUI_HINT_LOCATORS = {HOST: 'tui-hint'} as const;\n","export const TUI_TEXTFIELD_LOCATORS = {\n HOST: 'tui-textfield',\n CLEANER: '[tuiButtonX]',\n TOOLTIP: 'tui-icon[tuiTooltip]',\n INPUT: '[tuiInput]',\n FILLER: '.t-filler',\n} as const;\n","import {TUI_TEXTFIELD_LOCATORS} from './textfield.locators';\n\nexport const TUI_INPUT_LOCATORS = {\n ...TUI_TEXTFIELD_LOCATORS,\n INPUT: 'input[tuiInput]',\n} as const;\n","import {TUI_TEXTFIELD_LOCATORS} from './textfield.locators';\n\nexport const TUI_INPUT_CHIP_LOCATORS = {\n ...TUI_TEXTFIELD_LOCATORS,\n INPUT: 'input[tuiInputChip]',\n CHIPS: '.t-items tui-textfield-item',\n} as const;\n","import {TUI_TEXTFIELD_LOCATORS} from './textfield.locators';\n\nexport const TUI_INPUT_RANGE_LOCATORS = {\n HOST: 'tui-input-range',\n INPUT_START: `${TUI_TEXTFIELD_LOCATORS.HOST} [tuiInput]:first-of-type`,\n INPUT_END: `${TUI_TEXTFIELD_LOCATORS.HOST} [tuiInput]:last-of-type`,\n} as const;\n","export const TUI_LABEL_LOCATORS = {HOST: 'label[tuiLabel]'} as const;\n","export const TUI_RANGE_LOCATORS = {\n HOST: 'tui-range',\n THUMB_START: 'input[automation-id=\"tui-range__left\"]',\n THUMB_END: 'input[automation-id=\"tui-range__right\"]',\n} as const;\n","export const TUI_SCROLLBAR_LOCATORS = {\n HOST: 'tui-scrollbar',\n THUMB: '.t-thumb',\n VERTICAL_BAR: '.t-bar_vertical',\n} as const;\n","import {TUI_TEXTFIELD_LOCATORS} from './textfield.locators';\n\nexport const TUI_SELECT_LOCATORS = {\n ...TUI_TEXTFIELD_LOCATORS,\n INPUT: '[tuiSelect]',\n} as const;\n","export const TUI_SHEET_DIALOG_LOCATORS = {HOST: 'tui-sheet-dialog'} as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA,MAAM,kBAAkB,GAAG,eAAe;AAEnC,MAAM,sBAAsB,GAAG;AAClC,IAAA,IAAI,EAAE,kBAAkB;IACxB,MAAM,EAAE,CAAA,EAAG,kBAAkB,CAAA,YAAA,CAAc;;;MCJlC,qBAAqB,GAAG,EAAC,IAAI,EAAE,cAAc;;MCA7C,4BAA4B,GAAG,EAAC,IAAI,EAAE,qBAAqB;;MCA3D,iBAAiB,GAAG,EAAC,IAAI,EAAE,UAAU;;ACA3C,MAAM,sBAAsB,GAAG;AAClC,IAAA,IAAI,EAAE,eAAe;AACrB,IAAA,OAAO,EAAE,cAAc;AACvB,IAAA,OAAO,EAAE,sBAAsB;AAC/B,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,MAAM,EAAE,WAAW;;;ACHhB,MAAM,kBAAkB,GAAG;AAC9B,IAAA,GAAG,sBAAsB;AACzB,IAAA,KAAK,EAAE,iBAAiB;;;ACFrB,MAAM,uBAAuB,GAAG;AACnC,IAAA,GAAG,sBAAsB;AACzB,IAAA,KAAK,EAAE,qBAAqB;AAC5B,IAAA,KAAK,EAAE,6BAA6B;;;ACHjC,MAAM,wBAAwB,GAAG;AACpC,IAAA,IAAI,EAAE,iBAAiB;AACvB,IAAA,WAAW,EAAE,CAAA,EAAG,sBAAsB,CAAC,IAAI,CAAA,yBAAA,CAA2B;AACtE,IAAA,SAAS,EAAE,CAAA,EAAG,sBAAsB,CAAC,IAAI,CAAA,wBAAA,CAA0B;;;MCL1D,kBAAkB,GAAG,EAAC,IAAI,EAAE,iBAAiB;;ACAnD,MAAM,kBAAkB,GAAG;AAC9B,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,WAAW,EAAE,wCAAwC;AACrD,IAAA,SAAS,EAAE,yCAAyC;;;ACHjD,MAAM,sBAAsB,GAAG;AAClC,IAAA,IAAI,EAAE,eAAe;AACrB,IAAA,KAAK,EAAE,UAAU;AACjB,IAAA,YAAY,EAAE,iBAAiB;;;ACD5B,MAAM,mBAAmB,GAAG;AAC/B,IAAA,GAAG,sBAAsB;AACzB,IAAA,KAAK,EAAE,aAAa;;;MCJX,yBAAyB,GAAG,EAAC,IAAI,EAAE,kBAAkB;;ACAlE;;AAEG;;;;"}
@@ -1,5 +1,6 @@
1
1
  export * from '@taiga-ui/testing/core';
2
2
  export * from '@taiga-ui/testing/exceptions';
3
+ export * from '@taiga-ui/testing/locators';
3
4
  export * from '@taiga-ui/testing/utils';
4
5
 
5
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-testing.mjs","sources":["../../../projects/testing/index.ts","../../../projects/testing/taiga-ui-testing.ts"],"sourcesContent":["/**\n * Public API Surface of testing\n *\n * @note:\n * don't export the cypress plugin as it isn't unit testing related\n */\nexport * from '@taiga-ui/testing/core';\nexport * from '@taiga-ui/testing/exceptions';\nexport * from '@taiga-ui/testing/utils';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;;;;AAKG;;ACLH;;AAEG"}
1
+ {"version":3,"file":"taiga-ui-testing.mjs","sources":["../../../projects/testing/index.ts","../../../projects/testing/taiga-ui-testing.ts"],"sourcesContent":["/**\n * Public API Surface of testing\n *\n * @note:\n * don't export the cypress plugin as it isn't unit testing related\n */\nexport * from '@taiga-ui/testing/core';\nexport * from '@taiga-ui/testing/exceptions';\nexport * from '@taiga-ui/testing/locators';\nexport * from '@taiga-ui/testing/utils';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;;;;;AAKG;;ACLH;;AAEG"}
package/index.d.ts CHANGED
@@ -6,4 +6,5 @@
6
6
  */
7
7
  export * from '@taiga-ui/testing/core';
8
8
  export * from '@taiga-ui/testing/exceptions';
9
+ export * from '@taiga-ui/testing/locators';
9
10
  export * from '@taiga-ui/testing/utils';
@@ -0,0 +1,4 @@
1
+ export declare const TUI_DATA_LIST_LOCATORS: {
2
+ readonly HOST: "tui-data-list";
3
+ readonly OPTION: "tui-data-list [tuiOption]";
4
+ };
@@ -0,0 +1,3 @@
1
+ export declare const TUI_DROPDOWN_MOBILE_LOCATORS: {
2
+ readonly HOST: "tui-dropdown-mobile";
3
+ };
@@ -0,0 +1,3 @@
1
+ export declare const TUI_DROPDOWN_LOCATORS: {
2
+ readonly HOST: "tui-dropdown";
3
+ };
@@ -0,0 +1,3 @@
1
+ export declare const TUI_HINT_LOCATORS: {
2
+ readonly HOST: "tui-hint";
3
+ };
@@ -0,0 +1,13 @@
1
+ export * from './data-list.locators';
2
+ export * from './dropdown.locators';
3
+ export * from './dropdown-mobile.locators';
4
+ export * from './hint.locators';
5
+ export * from './input.locators';
6
+ export * from './input-chip.locators';
7
+ export * from './input-range.locators';
8
+ export * from './label.locators';
9
+ export * from './range.locators';
10
+ export * from './scrollbar.locators';
11
+ export * from './select.locators';
12
+ export * from './sheet-dialog.locators';
13
+ export * from './textfield.locators';
@@ -0,0 +1,8 @@
1
+ export declare const TUI_INPUT_CHIP_LOCATORS: {
2
+ readonly INPUT: "input[tuiInputChip]";
3
+ readonly CHIPS: ".t-items tui-textfield-item";
4
+ readonly HOST: "tui-textfield";
5
+ readonly CLEANER: "[tuiButtonX]";
6
+ readonly TOOLTIP: "tui-icon[tuiTooltip]";
7
+ readonly FILLER: ".t-filler";
8
+ };
@@ -0,0 +1,5 @@
1
+ export declare const TUI_INPUT_RANGE_LOCATORS: {
2
+ readonly HOST: "tui-input-range";
3
+ readonly INPUT_START: "tui-textfield [tuiInput]:first-of-type";
4
+ readonly INPUT_END: "tui-textfield [tuiInput]:last-of-type";
5
+ };
@@ -0,0 +1,7 @@
1
+ export declare const TUI_INPUT_LOCATORS: {
2
+ readonly INPUT: "input[tuiInput]";
3
+ readonly HOST: "tui-textfield";
4
+ readonly CLEANER: "[tuiButtonX]";
5
+ readonly TOOLTIP: "tui-icon[tuiTooltip]";
6
+ readonly FILLER: ".t-filler";
7
+ };
@@ -0,0 +1,3 @@
1
+ export declare const TUI_LABEL_LOCATORS: {
2
+ readonly HOST: "label[tuiLabel]";
3
+ };
@@ -0,0 +1,5 @@
1
+ export declare const TUI_RANGE_LOCATORS: {
2
+ readonly HOST: "tui-range";
3
+ readonly THUMB_START: "input[automation-id=\"tui-range__left\"]";
4
+ readonly THUMB_END: "input[automation-id=\"tui-range__right\"]";
5
+ };
@@ -0,0 +1,5 @@
1
+ export declare const TUI_SCROLLBAR_LOCATORS: {
2
+ readonly HOST: "tui-scrollbar";
3
+ readonly THUMB: ".t-thumb";
4
+ readonly VERTICAL_BAR: ".t-bar_vertical";
5
+ };
@@ -0,0 +1,7 @@
1
+ export declare const TUI_SELECT_LOCATORS: {
2
+ readonly INPUT: "[tuiSelect]";
3
+ readonly HOST: "tui-textfield";
4
+ readonly CLEANER: "[tuiButtonX]";
5
+ readonly TOOLTIP: "tui-icon[tuiTooltip]";
6
+ readonly FILLER: ".t-filler";
7
+ };
@@ -0,0 +1,3 @@
1
+ export declare const TUI_SHEET_DIALOG_LOCATORS: {
2
+ readonly HOST: "tui-sheet-dialog";
3
+ };
@@ -0,0 +1,7 @@
1
+ export declare const TUI_TEXTFIELD_LOCATORS: {
2
+ readonly HOST: "tui-textfield";
3
+ readonly CLEANER: "[tuiButtonX]";
4
+ readonly TOOLTIP: "tui-icon[tuiTooltip]";
5
+ readonly INPUT: "[tuiInput]";
6
+ readonly FILLER: ".t-filler";
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/testing",
3
- "version": "5.24.0",
3
+ "version": "5.25.0-canary.2b025e7",
4
4
  "description": "Utils functions for testing Taiga UI packages",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,7 +22,7 @@
22
22
  }
23
23
  ],
24
24
  "peerDependencies": {
25
- "@taiga-ui/cdk": "5.24.0",
25
+ "@taiga-ui/cdk": "5.25.0",
26
26
  "resize-observer-polyfill": ">=1.5.1",
27
27
  "sharp": "<0.35.0"
28
28
  },
@@ -44,6 +44,10 @@
44
44
  "types": "./exceptions/index.d.ts",
45
45
  "default": "./fesm2022/taiga-ui-testing-exceptions.mjs"
46
46
  },
47
+ "./locators": {
48
+ "types": "./locators/index.d.ts",
49
+ "default": "./fesm2022/taiga-ui-testing-locators.mjs"
50
+ },
47
51
  "./utils": {
48
52
  "types": "./utils/index.d.ts",
49
53
  "default": "./fesm2022/taiga-ui-testing-utils.mjs"