@umbraco/playwright-testhelpers 2.0.0-beta.9 → 2.0.0-beta.91

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 (194) hide show
  1. package/dist/lib/helpers/ApiHelpers.d.ts +53 -4
  2. package/dist/lib/helpers/ApiHelpers.js +260 -9
  3. package/dist/lib/helpers/ApiHelpers.js.map +1 -1
  4. package/dist/lib/helpers/ContentRenderUiHelper.d.ts +8 -0
  5. package/dist/lib/helpers/ContentRenderUiHelper.js +21 -0
  6. package/dist/lib/helpers/ContentRenderUiHelper.js.map +1 -0
  7. package/dist/lib/helpers/ContentUiHelper.d.ts +190 -0
  8. package/dist/lib/helpers/ContentUiHelper.js +569 -0
  9. package/dist/lib/helpers/ContentUiHelper.js.map +1 -0
  10. package/dist/lib/helpers/DataTypeApiHelper.d.ts +96 -14
  11. package/dist/lib/helpers/DataTypeApiHelper.js +841 -130
  12. package/dist/lib/helpers/DataTypeApiHelper.js.map +1 -1
  13. package/dist/lib/helpers/DataTypeUiHelper.d.ts +266 -0
  14. package/dist/lib/helpers/DataTypeUiHelper.js +850 -0
  15. package/dist/lib/helpers/DataTypeUiHelper.js.map +1 -0
  16. package/dist/lib/helpers/DictionaryApiHelper.d.ts +2 -1
  17. package/dist/lib/helpers/DictionaryApiHelper.js +17 -4
  18. package/dist/lib/helpers/DictionaryApiHelper.js.map +1 -1
  19. package/dist/lib/helpers/DictionaryUiHelper.d.ts +7 -9
  20. package/dist/lib/helpers/DictionaryUiHelper.js +33 -33
  21. package/dist/lib/helpers/DictionaryUiHelper.js.map +1 -1
  22. package/dist/lib/helpers/DocumentApiHelper.d.ts +39 -0
  23. package/dist/lib/helpers/DocumentApiHelper.js +388 -0
  24. package/dist/lib/helpers/DocumentApiHelper.js.map +1 -1
  25. package/dist/lib/helpers/DocumentBlueprintApiHelper.d.ts +18 -0
  26. package/dist/lib/helpers/DocumentBlueprintApiHelper.js +126 -0
  27. package/dist/lib/helpers/DocumentBlueprintApiHelper.js.map +1 -0
  28. package/dist/lib/helpers/DocumentBlueprintUiHelper.d.ts +18 -0
  29. package/dist/lib/helpers/DocumentBlueprintUiHelper.js +54 -0
  30. package/dist/lib/helpers/DocumentBlueprintUiHelper.js.map +1 -0
  31. package/dist/lib/helpers/DocumentTypeApiHelper.d.ts +43 -0
  32. package/dist/lib/helpers/DocumentTypeApiHelper.js +577 -0
  33. package/dist/lib/helpers/DocumentTypeApiHelper.js.map +1 -0
  34. package/dist/lib/helpers/DocumentTypeUiHelper.d.ts +35 -0
  35. package/dist/lib/helpers/DocumentTypeUiHelper.js +98 -0
  36. package/dist/lib/helpers/DocumentTypeUiHelper.js.map +1 -0
  37. package/dist/lib/helpers/ExamineManagementUiHelper.d.ts +15 -0
  38. package/dist/lib/helpers/ExamineManagementUiHelper.js +38 -0
  39. package/dist/lib/helpers/ExamineManagementUiHelper.js.map +1 -0
  40. package/dist/lib/helpers/HealthCheckApiHelper.d.ts +13 -0
  41. package/dist/lib/helpers/HealthCheckApiHelper.js +47 -0
  42. package/dist/lib/helpers/HealthCheckApiHelper.js.map +1 -0
  43. package/dist/lib/helpers/HealthCheckUiHelper.d.ts +23 -0
  44. package/dist/lib/helpers/HealthCheckUiHelper.js +59 -0
  45. package/dist/lib/helpers/HealthCheckUiHelper.js.map +1 -0
  46. package/dist/lib/helpers/IndexerApiHelper.d.ts +7 -0
  47. package/dist/lib/helpers/IndexerApiHelper.js +19 -0
  48. package/dist/lib/helpers/IndexerApiHelper.js.map +1 -0
  49. package/dist/lib/helpers/LanguageApiHelper.d.ts +8 -4
  50. package/dist/lib/helpers/LanguageApiHelper.js +46 -26
  51. package/dist/lib/helpers/LanguageApiHelper.js.map +1 -1
  52. package/dist/lib/helpers/LanguageUiHelper.d.ts +23 -0
  53. package/dist/lib/helpers/LanguageUiHelper.js +68 -0
  54. package/dist/lib/helpers/LanguageUiHelper.js.map +1 -0
  55. package/dist/lib/helpers/LogViewerUiHelper.d.ts +37 -0
  56. package/dist/lib/helpers/LogViewerUiHelper.js +102 -0
  57. package/dist/lib/helpers/LogViewerUiHelper.js.map +1 -0
  58. package/dist/lib/helpers/LoginApiHelper.d.ts +17 -0
  59. package/dist/lib/helpers/LoginApiHelper.js +105 -0
  60. package/dist/lib/helpers/LoginApiHelper.js.map +1 -0
  61. package/dist/lib/helpers/LoginUiHelper.d.ts +11 -0
  62. package/dist/lib/helpers/LoginUiHelper.js +30 -0
  63. package/dist/lib/helpers/LoginUiHelper.js.map +1 -0
  64. package/dist/lib/helpers/MediaApiHelper.d.ts +32 -0
  65. package/dist/lib/helpers/MediaApiHelper.js +245 -0
  66. package/dist/lib/helpers/MediaApiHelper.js.map +1 -0
  67. package/dist/lib/helpers/MediaTypeApiHelper.d.ts +32 -0
  68. package/dist/lib/helpers/MediaTypeApiHelper.js +390 -0
  69. package/dist/lib/helpers/MediaTypeApiHelper.js.map +1 -0
  70. package/dist/lib/helpers/MediaTypeUiHelper.d.ts +14 -0
  71. package/dist/lib/helpers/MediaTypeUiHelper.js +38 -0
  72. package/dist/lib/helpers/MediaTypeUiHelper.js.map +1 -0
  73. package/dist/lib/helpers/MediaUiHelper.d.ts +54 -0
  74. package/dist/lib/helpers/MediaUiHelper.js +158 -0
  75. package/dist/lib/helpers/MediaUiHelper.js.map +1 -0
  76. package/dist/lib/helpers/MemberApiHelper.d.ts +16 -0
  77. package/dist/lib/helpers/MemberApiHelper.js +88 -0
  78. package/dist/lib/helpers/MemberApiHelper.js.map +1 -0
  79. package/dist/lib/helpers/MemberGroupApiHelper.d.ts +14 -0
  80. package/dist/lib/helpers/MemberGroupApiHelper.js +62 -0
  81. package/dist/lib/helpers/MemberGroupApiHelper.js.map +1 -0
  82. package/dist/lib/helpers/MemberGroupUiHelper.d.ts +17 -0
  83. package/dist/lib/helpers/MemberGroupUiHelper.js +48 -0
  84. package/dist/lib/helpers/MemberGroupUiHelper.js.map +1 -0
  85. package/dist/lib/helpers/MemberTypeApiHelper.d.ts +17 -0
  86. package/dist/lib/helpers/MemberTypeApiHelper.js +121 -0
  87. package/dist/lib/helpers/MemberTypeApiHelper.js.map +1 -0
  88. package/dist/lib/helpers/MemberTypeUiHelper.d.ts +13 -0
  89. package/dist/lib/helpers/MemberTypeUiHelper.js +35 -0
  90. package/dist/lib/helpers/MemberTypeUiHelper.js.map +1 -0
  91. package/dist/lib/helpers/MemberUiHelper.d.ts +42 -0
  92. package/dist/lib/helpers/MemberUiHelper.js +120 -0
  93. package/dist/lib/helpers/MemberUiHelper.js.map +1 -0
  94. package/dist/lib/helpers/ModelsBuilderApiHelper.d.ts +6 -0
  95. package/dist/lib/helpers/ModelsBuilderApiHelper.js +15 -0
  96. package/dist/lib/helpers/ModelsBuilderApiHelper.js.map +1 -0
  97. package/dist/lib/helpers/ModelsBuilderUiHelper.d.ts +9 -0
  98. package/dist/lib/helpers/ModelsBuilderUiHelper.js +22 -0
  99. package/dist/lib/helpers/ModelsBuilderUiHelper.js.map +1 -0
  100. package/dist/lib/helpers/NotificationConstantHelper.d.ts +30 -0
  101. package/dist/lib/helpers/NotificationConstantHelper.js +35 -0
  102. package/dist/lib/helpers/NotificationConstantHelper.js.map +1 -0
  103. package/dist/lib/helpers/ObjectTypesApiHelper.d.ts +7 -0
  104. package/dist/lib/helpers/ObjectTypesApiHelper.js +25 -0
  105. package/dist/lib/helpers/ObjectTypesApiHelper.js.map +1 -0
  106. package/dist/lib/helpers/PackageApiHelper.d.ts +3 -2
  107. package/dist/lib/helpers/PackageApiHelper.js +6 -3
  108. package/dist/lib/helpers/PackageApiHelper.js.map +1 -1
  109. package/dist/lib/helpers/PackageUiHelper.d.ts +50 -0
  110. package/dist/lib/helpers/PackageUiHelper.js +140 -0
  111. package/dist/lib/helpers/PackageUiHelper.js.map +1 -0
  112. package/dist/lib/helpers/PartialViewApiHelper.d.ts +5 -4
  113. package/dist/lib/helpers/PartialViewApiHelper.js +36 -30
  114. package/dist/lib/helpers/PartialViewApiHelper.js.map +1 -1
  115. package/dist/lib/helpers/PartialViewUiHelper.d.ts +7 -11
  116. package/dist/lib/helpers/PartialViewUiHelper.js +27 -36
  117. package/dist/lib/helpers/PartialViewUiHelper.js.map +1 -1
  118. package/dist/lib/helpers/ProfilingUiHelper.d.ts +11 -0
  119. package/dist/lib/helpers/ProfilingUiHelper.js +27 -0
  120. package/dist/lib/helpers/ProfilingUiHelper.js.map +1 -0
  121. package/dist/lib/helpers/PublishedCacheApiHelper.d.ts +6 -0
  122. package/dist/lib/helpers/PublishedCacheApiHelper.js +15 -0
  123. package/dist/lib/helpers/PublishedCacheApiHelper.js.map +1 -0
  124. package/dist/lib/helpers/PublishedStatusUiHelper.d.ts +19 -0
  125. package/dist/lib/helpers/PublishedStatusUiHelper.js +47 -0
  126. package/dist/lib/helpers/PublishedStatusUiHelper.js.map +1 -0
  127. package/dist/lib/helpers/RedirectManagementApiHelper.d.ts +10 -0
  128. package/dist/lib/helpers/RedirectManagementApiHelper.js +30 -0
  129. package/dist/lib/helpers/RedirectManagementApiHelper.js.map +1 -0
  130. package/dist/lib/helpers/RedirectManagementUiHelper.d.ts +17 -0
  131. package/dist/lib/helpers/RedirectManagementUiHelper.js +45 -0
  132. package/dist/lib/helpers/RedirectManagementUiHelper.js.map +1 -0
  133. package/dist/lib/helpers/RelationTypeApiHelper.d.ts +15 -0
  134. package/dist/lib/helpers/{RelationType.js → RelationTypeApiHelper.js} +45 -58
  135. package/dist/lib/helpers/RelationTypeApiHelper.js.map +1 -0
  136. package/dist/lib/helpers/RelationTypeUiHelper.d.ts +21 -0
  137. package/dist/lib/helpers/RelationTypeUiHelper.js +55 -0
  138. package/dist/lib/helpers/RelationTypeUiHelper.js.map +1 -0
  139. package/dist/lib/helpers/ScriptApiHelper.d.ts +5 -3
  140. package/dist/lib/helpers/ScriptApiHelper.js +43 -26
  141. package/dist/lib/helpers/ScriptApiHelper.js.map +1 -1
  142. package/dist/lib/helpers/ScriptUiHelper.d.ts +8 -12
  143. package/dist/lib/helpers/ScriptUiHelper.js +31 -40
  144. package/dist/lib/helpers/ScriptUiHelper.js.map +1 -1
  145. package/dist/lib/helpers/StylesheetApiHelper.d.ts +6 -4
  146. package/dist/lib/helpers/StylesheetApiHelper.js +48 -41
  147. package/dist/lib/helpers/StylesheetApiHelper.js.map +1 -1
  148. package/dist/lib/helpers/StylesheetUiHelper.d.ts +17 -15
  149. package/dist/lib/helpers/StylesheetUiHelper.js +60 -47
  150. package/dist/lib/helpers/StylesheetUiHelper.js.map +1 -1
  151. package/dist/lib/helpers/TelemetryDataUiHelper.d.ts +10 -0
  152. package/dist/lib/helpers/TelemetryDataUiHelper.js +25 -0
  153. package/dist/lib/helpers/TelemetryDataUiHelper.js.map +1 -0
  154. package/dist/lib/helpers/TemplateApiHelper.d.ts +5 -0
  155. package/dist/lib/helpers/TemplateApiHelper.js +68 -0
  156. package/dist/lib/helpers/TemplateApiHelper.js.map +1 -1
  157. package/dist/lib/helpers/TemplateUiHelper.d.ts +14 -18
  158. package/dist/lib/helpers/TemplateUiHelper.js +65 -59
  159. package/dist/lib/helpers/TemplateUiHelper.js.map +1 -1
  160. package/dist/lib/helpers/TemporaryFileApiHelper.d.ts +17 -1
  161. package/dist/lib/helpers/TemporaryFileApiHelper.js +23 -10
  162. package/dist/lib/helpers/TemporaryFileApiHelper.js.map +1 -1
  163. package/dist/lib/helpers/UiBaseLocators.d.ts +217 -10
  164. package/dist/lib/helpers/UiBaseLocators.js +718 -40
  165. package/dist/lib/helpers/UiBaseLocators.js.map +1 -1
  166. package/dist/lib/helpers/UiHelpers.d.ts +51 -7
  167. package/dist/lib/helpers/UiHelpers.js +78 -21
  168. package/dist/lib/helpers/UiHelpers.js.map +1 -1
  169. package/dist/lib/helpers/UserApiHelper.d.ts +28 -11
  170. package/dist/lib/helpers/UserApiHelper.js +123 -21
  171. package/dist/lib/helpers/UserApiHelper.js.map +1 -1
  172. package/dist/lib/helpers/UserGroupApiHelper.d.ts +8 -3
  173. package/dist/lib/helpers/UserGroupApiHelper.js +52 -19
  174. package/dist/lib/helpers/UserGroupApiHelper.js.map +1 -1
  175. package/dist/lib/helpers/UserGroupUiHelper.d.ts +20 -0
  176. package/dist/lib/helpers/UserGroupUiHelper.js +56 -0
  177. package/dist/lib/helpers/UserGroupUiHelper.js.map +1 -0
  178. package/dist/lib/helpers/UserUiHelper.d.ts +73 -0
  179. package/dist/lib/helpers/UserUiHelper.js +199 -0
  180. package/dist/lib/helpers/UserUiHelper.js.map +1 -0
  181. package/dist/lib/helpers/WelcomeDashboardUiHelper.d.ts +9 -0
  182. package/dist/lib/helpers/WelcomeDashboardUiHelper.js +22 -0
  183. package/dist/lib/helpers/WelcomeDashboardUiHelper.js.map +1 -0
  184. package/dist/lib/helpers/index.d.ts +1 -0
  185. package/dist/lib/helpers/index.js +3 -1
  186. package/dist/lib/helpers/index.js.map +1 -1
  187. package/dist/lib/helpers/testExtension.js +5 -0
  188. package/dist/lib/helpers/testExtension.js.map +1 -1
  189. package/dist/tsconfig.tsbuildinfo +1 -1
  190. package/dist/umbraco.config.js +1 -1
  191. package/dist/umbraco.config.js.map +1 -1
  192. package/package.json +9 -11
  193. package/dist/lib/helpers/RelationType.d.ts +0 -15
  194. package/dist/lib/helpers/RelationType.js.map +0 -1
@@ -0,0 +1,850 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DataTypeUiHelper = void 0;
4
+ const test_1 = require("@playwright/test");
5
+ const UiBaseLocators_1 = require("./UiBaseLocators");
6
+ class DataTypeUiHelper extends UiBaseLocators_1.UiBaseLocators {
7
+ moveToBtn;
8
+ duplicateToBtn;
9
+ newDataTypeThreeDotsBtn;
10
+ dataTypeNameTxt;
11
+ createDataTypeFolderBtn;
12
+ updateDataTypeFolderBtn;
13
+ includeLabelsSlider;
14
+ addColorBtn;
15
+ colorValueTxt;
16
+ offsetTimeSlider;
17
+ dateFormatTxt;
18
+ pageSizeTxt;
19
+ ascendingRadioBtn;
20
+ descendingRadioBtn;
21
+ chooseColumnsDisplayedBtn;
22
+ contentAppNameTxt;
23
+ orderByDropDownBox;
24
+ showContentAppFirstSlider;
25
+ editInInfiniteEditorSlider;
26
+ contentAppIconBtn;
27
+ aliasTxt;
28
+ widthTxt;
29
+ heightTxt;
30
+ addCropBtn;
31
+ saveCropBtn;
32
+ minimumTxt;
33
+ maximumTxt;
34
+ stepSizeTxt;
35
+ optionTxt;
36
+ addOptionBtn;
37
+ maximumAllowedCharsTxt;
38
+ numberOfRowsTxt;
39
+ minHeightTxt;
40
+ maxHeightTxt;
41
+ acceptedFileExtensionsTxt;
42
+ addAcceptedFileExtensionsBtn;
43
+ minimumNumberOfItemsTxt;
44
+ maximumNumberOfItemsTxt;
45
+ ignoreUserStartNodesSlider;
46
+ overlaySizeDropDownBox;
47
+ hideAnchorQueryStringInputSlider;
48
+ pickMultipleItemsSlider;
49
+ enableFocalPointSlider;
50
+ amountLowValueTxt;
51
+ amountHighValueTxt;
52
+ toolbarCheckboxes;
53
+ addStylesheetBtn;
54
+ dimensionsWidthTxt;
55
+ dimensionsHeightTxt;
56
+ maxImageSizeTxt;
57
+ hideLabelSlider;
58
+ defineTagGroupTxt;
59
+ showOpenButtonSlider;
60
+ enableMultipleChoiceSlider;
61
+ addOptionsBtn;
62
+ initialStateSlider;
63
+ showToggleLabelsSlider;
64
+ labelOnTxt;
65
+ labelOffTxt;
66
+ labelTxt;
67
+ chooseAcceptedTypesBtn;
68
+ chooseWithPlusBtn;
69
+ storageTypeDropDownBox;
70
+ allowDecimalsSlider;
71
+ chooseLayoutsBtn;
72
+ columnsDisplayedItems;
73
+ layoutsItems;
74
+ inlineRadioBtn;
75
+ duplicateBtn;
76
+ addWithPlusBtn;
77
+ selectAPropertyEditorBtn;
78
+ typeToFilterTxt;
79
+ chooseStartNodeBtn;
80
+ addBlockBtn;
81
+ minAmountTxt;
82
+ maxAmountTxt;
83
+ singleBlockModeBtn;
84
+ liveEditingModeBtn;
85
+ inlineEditingModeBtn;
86
+ propertyEditorWidthTxt;
87
+ labelTextTxt;
88
+ overlaySizeOption;
89
+ chooseContentModelBtn;
90
+ chooseSettingsModelBtn;
91
+ contentModelNode;
92
+ settingsModelNode;
93
+ removeExactContentModelNodeBtn;
94
+ removeExactSettingsModelNodeBtn;
95
+ openBtn;
96
+ backgroundColorBtn;
97
+ backgroundColorTxt;
98
+ chooseCustomStylesheetBtn;
99
+ iconColorBtn;
100
+ iconColorTxt;
101
+ stylesheetRemoveBtn;
102
+ hideContentEditorBlockGridBtn;
103
+ hideContentEditorBlockListBtn;
104
+ customStylesheetLabel;
105
+ documentTypeWorkspace;
106
+ editorWidthTxt;
107
+ createButtonLabelTxt;
108
+ gridColumnsTxt;
109
+ showResizeOptionsBtn;
110
+ columnSpanOptions;
111
+ areasTabBtn;
112
+ availableRowSpansLowValueTxt;
113
+ availableRowSpansHighValueTxt;
114
+ areaGridColumnsTxt;
115
+ addAreaBtn;
116
+ blockAreaConfig;
117
+ aliasAliasTxt;
118
+ blockGridAreaWorkspaceSubmitBtn;
119
+ createLabelTxt;
120
+ minAllowedTxt;
121
+ maxAllowedTxt;
122
+ addSpecifiedAllowanceBtn;
123
+ advancedTabBtn;
124
+ allowBlockAtRootBtn;
125
+ allowInAreasBtn;
126
+ chooseThumbnailAlias;
127
+ expandChildItemsForMediaBtn;
128
+ constructor(page) {
129
+ super(page);
130
+ this.moveToBtn = page.locator('umb-entity-action').getByLabel('Move to');
131
+ this.duplicateToBtn = page.locator('umb-entity-action').getByLabel('Duplicate to');
132
+ this.newDataTypeThreeDotsBtn = page.locator('umb-data-type-create-options-modal').getByLabel('New Data Type...');
133
+ this.dataTypeNameTxt = page.locator('umb-data-type-workspace-editor #nameInput #input');
134
+ this.createDataTypeFolderBtn = page.getByLabel('Create folder');
135
+ this.updateDataTypeFolderBtn = page.getByLabel('Update folder');
136
+ this.ignoreUserStartNodesSlider = page.locator('umb-property[label="Ignore user start nodes"] #slider, umb-property[label="Ignore User Start Nodes"] #slider');
137
+ this.duplicateBtn = this.sidebarModal.getByLabel('Duplicate', { exact: true });
138
+ this.selectAPropertyEditorBtn = page.getByLabel('Select a property editor');
139
+ this.typeToFilterTxt = page.locator('#filter #input');
140
+ // Approved Color
141
+ this.includeLabelsSlider = page.locator('#slider');
142
+ this.addColorBtn = page.getByLabel('Add');
143
+ this.colorValueTxt = page.getByPlaceholder('Value').getByRole('textbox');
144
+ // Date Picker
145
+ this.offsetTimeSlider = page.locator('umb-property[label="Offset time"] #slider');
146
+ this.dateFormatTxt = page.locator('umb-property[label="Date format"] #input');
147
+ // List View
148
+ this.pageSizeTxt = page.locator('umb-property[label="Page Size"] #input');
149
+ this.ascendingRadioBtn = page.locator('uui-radio[label="Ascending [a-z]"] #button');
150
+ this.descendingRadioBtn = page.locator('uui-radio[label="Descending [z-a]"] #button');
151
+ this.chooseColumnsDisplayedBtn = page.locator('umb-property[label="Columns Displayed"]').getByLabel('Choose');
152
+ this.columnsDisplayedItems = page.locator('umb-property[label="Columns Displayed"] .layout-item');
153
+ this.contentAppNameTxt = page.locator('umb-property[label="Content app name"] #input');
154
+ this.showContentAppFirstSlider = page.locator('umb-property[label="Show Content App First"] #slider');
155
+ this.editInInfiniteEditorSlider = page.locator('umb-property[label="Edit in Infinite Editor"] #slider');
156
+ this.contentAppIconBtn = page.locator('umb-property[label="Content app icon"] uui-icon');
157
+ this.orderByDropDownBox = page.locator('umb-property[label="Order By"] select');
158
+ this.chooseLayoutsBtn = page.locator('umb-property[label="Layouts"]').getByLabel('Choose');
159
+ this.layoutsItems = page.locator('umb-property[label="Layouts"] .layout-item');
160
+ // Image Cropper
161
+ this.labelTxt = page.getByLabel('Label', { exact: true });
162
+ this.aliasTxt = page.getByLabel('Alias', { exact: true });
163
+ this.widthTxt = page.getByLabel('Width', { exact: true });
164
+ this.heightTxt = page.getByLabel('Height', { exact: true });
165
+ this.addCropBtn = page.getByLabel('Add', { exact: true });
166
+ this.saveCropBtn = page.locator('[alias="crops"]').getByLabel('Save');
167
+ // Numeric
168
+ this.minimumTxt = page.locator('umb-property[label="Minimum"] #input');
169
+ this.maximumTxt = page.locator('umb-property[label="Maximum"] #input');
170
+ this.stepSizeTxt = page.locator('umb-property[label="Step size"] #input');
171
+ this.allowDecimalsSlider = page.locator('umb-property[label="Allow decimals"] #slider');
172
+ // Radiobox
173
+ this.optionTxt = page.locator('umb-property[label="Add option"] #input, umb-property[label="Add options"] #input');
174
+ this.addOptionBtn = page.locator('umb-property[label="Add option"], umb-property[label="Add options"]').getByLabel('Add', { exact: true });
175
+ // Textarea - Textstring
176
+ this.maximumAllowedCharsTxt = page.locator('umb-property[label="Maximum allowed characters"] #input');
177
+ this.numberOfRowsTxt = page.locator('umb-property[label="Number of rows"] #input');
178
+ this.minHeightTxt = page.locator('umb-property[label="Min height (pixels)"] #input');
179
+ this.maxHeightTxt = page.locator('umb-property[label="Max height (pixels)"] #input');
180
+ // Upload
181
+ this.acceptedFileExtensionsTxt = page.locator('umb-property[label="Accepted file extensions"] #input');
182
+ this.addAcceptedFileExtensionsBtn = page.locator('umb-property[label="Accepted file extensions"]').getByLabel('Add', { exact: true });
183
+ // Multi URL Picker
184
+ this.minimumNumberOfItemsTxt = page.locator('umb-property[label="Minimum number of items"] #input');
185
+ this.maximumNumberOfItemsTxt = page.locator('umb-property[label="Maximum number of items"] #input');
186
+ this.overlaySizeDropDownBox = page.locator('umb-property[label="Overlay Size"] select');
187
+ this.hideAnchorQueryStringInputSlider = page.locator('umb-property[label="Hide anchor/query string input"] #slider');
188
+ // Media Picker
189
+ this.pickMultipleItemsSlider = page.locator('umb-property[label="Pick multiple items"] #slider');
190
+ this.enableFocalPointSlider = page.locator('umb-property[label="Enable Focal Point"] #slider');
191
+ this.amountLowValueTxt = page.locator('umb-property[label="Amount"]').getByLabel('Low value');
192
+ this.amountHighValueTxt = page.locator('umb-property[label="Amount"]').getByLabel('High value');
193
+ this.chooseAcceptedTypesBtn = page.locator('umb-property[label="Accepted types"]').getByLabel('Choose');
194
+ this.chooseWithPlusBtn = page.locator('#btn-add').filter({ hasText: 'Choose' });
195
+ this.chooseStartNodeBtn = page.locator('umb-property[label="Start node"] #btn-add');
196
+ // Rich Editor
197
+ this.toolbarCheckboxes = page.locator('umb-property[label="Toolbar"] uui-checkbox');
198
+ this.addStylesheetBtn = page.locator('umb-property[label="Stylesheets"]').getByLabel('Add stylesheet');
199
+ this.dimensionsWidthTxt = page.locator('umb-property[label="Dimensions"]').getByLabel('Width');
200
+ this.dimensionsHeightTxt = page.locator('umb-property[label="Dimensions"]').getByLabel('Height');
201
+ this.maxImageSizeTxt = page.locator('umb-property[label="Maximum size for inserted images"] #input');
202
+ this.hideLabelSlider = page.locator('umb-property[label="Hide Label"] #slider');
203
+ this.inlineRadioBtn = page.locator('umb-property[label="Mode"] uui-radio[value="Inline"]');
204
+ this.addWithPlusBtn = page.locator('umb-property[label="Available Blocks"] #add-button');
205
+ // Tags
206
+ this.defineTagGroupTxt = page.locator('umb-property[label="Define a tag group"] #input');
207
+ this.storageTypeDropDownBox = page.locator('#native');
208
+ // Content Picker
209
+ this.showOpenButtonSlider = page.locator('umb-property[label="Show open button"] #slider');
210
+ // Dropdown
211
+ this.enableMultipleChoiceSlider = page.locator('umb-property[label="Enable multiple choice"] #slider');
212
+ this.addOptionsBtn = page.locator('umb-property[label="Add options"]').getByLabel('Add', { exact: true });
213
+ // True/false
214
+ this.initialStateSlider = page.locator('umb-property[label="Initial State"] #slider');
215
+ this.showToggleLabelsSlider = page.locator('umb-property[label="Show toggle labels"] #slider');
216
+ this.labelOnTxt = page.locator('umb-property[label="Label On"] #input');
217
+ this.labelOffTxt = page.locator('umb-property[label="Label Off"] #input');
218
+ // Block List Editor and Block Grid Editor
219
+ this.addBlockBtn = page.locator('umb-input-block-type #blocks').getByLabel('open');
220
+ this.minAmountTxt = page.getByLabel('Low value');
221
+ this.maxAmountTxt = page.getByLabel('High value');
222
+ this.singleBlockModeBtn = this.page.locator('umb-property-layout').filter({ hasText: 'Single block mode' }).locator('#slider');
223
+ this.liveEditingModeBtn = this.page.locator('umb-property-layout').filter({ hasText: 'Live editing' }).locator('#slider');
224
+ this.inlineEditingModeBtn = this.page.locator('umb-property-layout').filter({ hasText: 'Inline editing' }).locator('#slider');
225
+ this.propertyEditorWidthTxt = this.page.locator('umb-property-layout').filter({ hasText: 'Property editor width' }).locator('#input');
226
+ this.labelTextTxt = this.page.locator('[label="Label"]').locator('#input');
227
+ this.overlaySizeOption = this.page.locator('[label="Overlay editor size"]').locator('#native');
228
+ this.chooseContentModelBtn = this.page.locator('[alias="contentElementTypeKey"]').getByLabel('Choose');
229
+ this.chooseSettingsModelBtn = this.page.locator('[alias="settingsElementTypeKey"]').getByLabel('Choose');
230
+ this.contentModelNode = this.page.locator('[alias="contentElementTypeKey"]').locator('uui-ref-node-document-type');
231
+ this.settingsModelNode = this.page.locator('[alias="settingsElementTypeKey"]').locator('uui-ref-node-document-type');
232
+ this.removeExactContentModelNodeBtn = this.page.locator('[alias="contentElementTypeKey"]').getByLabel('Remove', { exact: true });
233
+ this.removeExactSettingsModelNodeBtn = this.page.locator('[alias="settingsElementTypeKey"]').getByLabel('Remove', { exact: true });
234
+ this.openBtn = this.page.getByLabel('Open', { exact: true });
235
+ this.backgroundColorBtn = this.page.locator('umb-property-layout').filter({ hasText: 'Background color' }).getByLabel('Eye dropper');
236
+ this.backgroundColorTxt = this.page.locator('[label="Background color"]').locator('[label="Eye dropper"]').locator('#input');
237
+ this.iconColorBtn = this.page.locator('umb-property-layout').filter({ hasText: 'Icon color' }).getByLabel('Eye dropper');
238
+ this.iconColorTxt = this.page.locator('[label="Icon color"]').locator('[label="Eye dropper"]').locator('#input');
239
+ this.stylesheetRemoveBtn = this.page.locator('uui-ref-node').getByLabel('Remove', { exact: true });
240
+ this.hideContentEditorBlockListBtn = this.page.locator('[alias="forceHideContentEditorInOverlay"]').locator('#slider');
241
+ this.hideContentEditorBlockGridBtn = this.page.locator('[alias="hideContentEditor"]').locator('#slider');
242
+ this.customStylesheetLabel = this.page.locator('[label="Custom stylesheet"]');
243
+ this.chooseThumbnailAlias = this.page.locator('[alias="thumbnail"]').getByLabel('Choose');
244
+ this.documentTypeWorkspace = this.page.locator('[alias="Umb.Workspace.DocumentType"]');
245
+ this.editorWidthTxt = this.page.locator('umb-property-layout').filter({ hasText: 'Editor width' }).locator('#input');
246
+ this.createButtonLabelTxt = this.page.locator('umb-property-layout').filter({ hasText: 'Create button label' }).locator('#input');
247
+ this.gridColumnsTxt = this.page.locator('umb-property-layout').filter({ hasText: 'Grid columns' }).locator('#input');
248
+ this.showResizeOptionsBtn = this.page.getByLabel('Show resize options');
249
+ this.columnSpanOptions = this.page.locator('[alias="columnSpanOptions"]');
250
+ this.areasTabBtn = this.page.getByRole('tab', { name: 'Areas' });
251
+ this.availableRowSpansLowValueTxt = this.page.locator('[label="Available row spans"]').getByLabel('Low value');
252
+ this.availableRowSpansHighValueTxt = this.page.locator('[label="Available row spans"]').getByLabel('High value');
253
+ this.areaGridColumnsTxt = this.page.locator('[alias="areaGridColumns"]').locator('#input');
254
+ this.addAreaBtn = this.page.getByLabel('Add area');
255
+ this.blockAreaConfig = this.page.locator('umb-block-area-config-entry');
256
+ this.aliasAliasTxt = this.page.locator('[alias="alias"]').locator('#input');
257
+ this.blockGridAreaWorkspaceSubmitBtn = this.page.locator('umb-block-grid-area-type-workspace-editor').getByLabel('Submit');
258
+ this.createLabelTxt = this.page.locator('[alias="createLabel"]').locator('#input');
259
+ this.minAllowedTxt = this.page.locator('#container').getByLabel('Low value');
260
+ this.maxAllowedTxt = this.page.locator('#container').getByLabel('High value');
261
+ this.addSpecifiedAllowanceBtn = this.page.locator('[alias="specifiedAllowance"]').getByLabel('Add');
262
+ this.advancedTabBtn = this.page.getByRole('tab', { name: 'Advanced' });
263
+ this.allowBlockAtRootBtn = this.page.locator('[alias="allowAtRoot"]');
264
+ this.allowInAreasBtn = this.page.locator('[alias="allowInAreas"]');
265
+ this.expandChildItemsForMediaBtn = this.page.getByLabel('Expand child items for media', { exact: true });
266
+ this.chooseCustomStylesheetBtn = this.page.locator('[label="Custom stylesheet"]').getByLabel('Choose');
267
+ }
268
+ async clickActionsMenuForDataType(name) {
269
+ await this.clickActionsMenuForName(name);
270
+ }
271
+ async clickActionsMenuAtRoot() {
272
+ await this.clickActionsMenuForDataType('Data Types');
273
+ }
274
+ async clickRootFolderCaretButton() {
275
+ await this.clickCaretButtonForName('Data Types');
276
+ }
277
+ async goToDataType(dataTypeName) {
278
+ await this.clickRootFolderCaretButton();
279
+ await this.page.getByLabel(dataTypeName, { exact: true }).click();
280
+ }
281
+ async clickMoveToButton() {
282
+ await (0, test_1.expect)(this.moveToBtn).toBeVisible();
283
+ await this.moveToBtn.click();
284
+ }
285
+ async clickDuplicateToButton() {
286
+ await (0, test_1.expect)(this.duplicateToBtn).toBeVisible();
287
+ await this.duplicateToBtn.click();
288
+ }
289
+ async clickNewDataTypeThreeDotsButton() {
290
+ await this.newDataTypeThreeDotsBtn.click();
291
+ }
292
+ async clickNewDataTypeFolderButton() {
293
+ await this.newFolderThreeDotsBtn.click();
294
+ }
295
+ async enterDataTypeName(name) {
296
+ await this.dataTypeNameTxt.click();
297
+ await this.dataTypeNameTxt.clear();
298
+ await this.dataTypeNameTxt.fill(name);
299
+ }
300
+ async clickCreateFolderButton() {
301
+ await this.createDataTypeFolderBtn.click();
302
+ }
303
+ async clickUpdateFolderButton() {
304
+ await this.updateDataTypeFolderBtn.click();
305
+ }
306
+ async deleteDataType(name) {
307
+ await this.clickActionsMenuForDataType(name);
308
+ await this.clickDeleteAndConfirmButton();
309
+ }
310
+ async deleteDataTypeFolder(folderName) {
311
+ await this.clickActionsMenuForDataType(folderName);
312
+ await this.deleteFolder();
313
+ }
314
+ async moveDataTypeToFolder(folderName) {
315
+ await this.clickMoveToButton();
316
+ await (0, test_1.expect)(this.modalCaretBtn).toBeVisible();
317
+ await this.modalCaretBtn.click();
318
+ await this.sidebarModal.getByText(folderName, { exact: true }).click();
319
+ await this.chooseModalBtn.click();
320
+ }
321
+ async duplicateDataTypeToFolder(folderName) {
322
+ await this.clickDuplicateToButton();
323
+ await (0, test_1.expect)(this.modalCaretBtn).toBeVisible();
324
+ await this.modalCaretBtn.click();
325
+ await this.sidebarModal.getByText(folderName, { exact: true }).click();
326
+ await this.duplicateBtn.click();
327
+ }
328
+ async addMediaStartNode(mediaName) {
329
+ await this.mediaCardItems.filter({ hasText: mediaName }).click();
330
+ await this.clickSubmitButton();
331
+ }
332
+ async addContentStartNode(contentName) {
333
+ await this.clickTextButtonWithName(contentName);
334
+ await this.chooseModalBtn.click();
335
+ }
336
+ async clickSelectAPropertyEditorButton() {
337
+ await this.selectAPropertyEditorBtn.click();
338
+ }
339
+ async selectAPropertyEditor(propertyName) {
340
+ await this.typeToFilterTxt.fill(propertyName);
341
+ await this.clickTextButtonWithName(propertyName);
342
+ }
343
+ // Approved Color
344
+ async clickIncludeLabelsSlider() {
345
+ await this.includeLabelsSlider.click();
346
+ }
347
+ async removeColorByValue(value) {
348
+ await this.page.locator('[value="' + value + '"] uui-button svg').click();
349
+ await this.confirmToDeleteBtn.click();
350
+ }
351
+ async addColor(value) {
352
+ await this.addColorBtn.click();
353
+ await this.colorValueTxt.clear();
354
+ await this.colorValueTxt.fill(value);
355
+ }
356
+ // Label
357
+ async changeValueType(valueType) {
358
+ await this.page.getByLabel('Select a value type').selectOption({ label: valueType });
359
+ }
360
+ // Date Picker
361
+ async clickOffsetTimeSlider() {
362
+ await this.offsetTimeSlider.click();
363
+ }
364
+ async enterDateFormatValue(value) {
365
+ await this.dateFormatTxt.clear();
366
+ await this.dateFormatTxt.fill(value);
367
+ }
368
+ // List View
369
+ async enterPageSizeValue(value) {
370
+ await this.pageSizeTxt.clear();
371
+ await this.pageSizeTxt.fill(value);
372
+ }
373
+ async chooseOrderDirection(isAscending) {
374
+ if (isAscending) {
375
+ await this.ascendingRadioBtn.click();
376
+ }
377
+ else {
378
+ await this.descendingRadioBtn.click();
379
+ }
380
+ }
381
+ async addColumnDisplayed(contentType, contentName, propertyAlias) {
382
+ await this.chooseColumnsDisplayedBtn.click();
383
+ await this.clickTextButtonWithName(contentType);
384
+ await this.clickTextButtonWithName(contentName);
385
+ await this.clickChooseContainerButton();
386
+ await this.clickTextButtonWithName(propertyAlias);
387
+ }
388
+ async removeColumnDisplayed(propertyAlias) {
389
+ await this.columnsDisplayedItems.filter({ has: this.page.getByText(propertyAlias, { exact: true }) }).getByText('Remove').click();
390
+ }
391
+ async addLayouts(layoutAlias) {
392
+ await this.chooseLayoutsBtn.click();
393
+ await this.page.locator('[detail="' + layoutAlias + '"]').click();
394
+ }
395
+ async removeLayouts(layoutAlias) {
396
+ await this.layoutsItems.filter({ has: this.page.getByText(layoutAlias, { exact: true }) }).getByText('Remove').click();
397
+ }
398
+ async chooseOrderByValue(value) {
399
+ await this.orderByDropDownBox.selectOption({ label: value });
400
+ }
401
+ async enterContentAppName(name) {
402
+ await this.contentAppNameTxt.clear();
403
+ await this.contentAppNameTxt.fill(name);
404
+ }
405
+ async clickShowContentAppFirstSlider() {
406
+ await this.showContentAppFirstSlider.click();
407
+ }
408
+ async clickEditInInfiniteEditorSlider() {
409
+ await this.editInInfiniteEditorSlider.click();
410
+ }
411
+ async clickBulkActionPermissionsSliderByValue(value) {
412
+ await this.page.locator("uui-toggle[label='" + value + "'] #slider").click();
413
+ }
414
+ async clickContentAppIconButton() {
415
+ await this.contentAppIconBtn.click();
416
+ }
417
+ async chooseContentAppIconByValue(value) {
418
+ await this.page.locator('[label="' + value + '"] svg').click();
419
+ await this.submitBtn.click();
420
+ }
421
+ // Image Cropper
422
+ async enterCropValues(label, alias, width, height) {
423
+ await this.labelTxt.clear();
424
+ await this.labelTxt.fill(label);
425
+ await this.aliasTxt.clear();
426
+ await this.aliasTxt.fill(alias);
427
+ await this.widthTxt.clear();
428
+ await this.widthTxt.fill(width);
429
+ await this.heightTxt.clear();
430
+ await this.heightTxt.fill(height);
431
+ }
432
+ async clickAddCropButton() {
433
+ await this.addCropBtn.click();
434
+ }
435
+ async clickSaveCropButton() {
436
+ await this.saveCropBtn.click();
437
+ }
438
+ async editCropByAlias(alias) {
439
+ await this.page.locator('.crop').filter({ has: this.page.getByText(alias) }).getByText('Edit').click();
440
+ }
441
+ async removeCropByAlias(alias) {
442
+ await this.page.locator('.crop').filter({ has: this.page.getByText(alias) }).getByText('Remove').click();
443
+ }
444
+ // Numeric
445
+ async enterMinimumValue(value) {
446
+ await this.minimumTxt.clear();
447
+ await this.minimumTxt.fill(value);
448
+ }
449
+ async enterMaximumValue(value) {
450
+ await this.maximumTxt.clear();
451
+ await this.maximumTxt.fill(value);
452
+ }
453
+ async enterStepSizeValue(value) {
454
+ await this.stepSizeTxt.clear();
455
+ await this.stepSizeTxt.fill(value);
456
+ }
457
+ async clickAllowDecimalsSlider() {
458
+ await this.allowDecimalsSlider.click();
459
+ }
460
+ // Radiobox
461
+ async removeOptionByName(name) {
462
+ await this.page.locator("uui-button[label='Remove " + name + "'] svg").click();
463
+ await this.confirmToDeleteBtn.click();
464
+ }
465
+ async enterOptionName(name) {
466
+ await this.optionTxt.last().clear();
467
+ await this.optionTxt.last().fill(name);
468
+ }
469
+ async clickAddOptionButton() {
470
+ await this.addOptionBtn.click();
471
+ }
472
+ // Textarea - Textstring
473
+ async enterMaximumAllowedCharactersValue(value) {
474
+ await this.maximumAllowedCharsTxt.clear();
475
+ await this.maximumAllowedCharsTxt.fill(value);
476
+ }
477
+ async enterNumberOfRowsValue(value) {
478
+ await this.numberOfRowsTxt.clear();
479
+ await this.numberOfRowsTxt.fill(value);
480
+ }
481
+ async enterMaxHeightValue(value) {
482
+ await this.maxHeightTxt.clear();
483
+ await this.maxHeightTxt.fill(value);
484
+ }
485
+ async enterMinHeightValue(value) {
486
+ await this.minHeightTxt.clear();
487
+ await this.minHeightTxt.fill(value);
488
+ }
489
+ // Upload
490
+ async enterAcceptedFileExtensions(value) {
491
+ await this.acceptedFileExtensionsTxt.last().clear();
492
+ await this.acceptedFileExtensionsTxt.last().fill(value);
493
+ }
494
+ async removeAcceptedFileExtensionsByValue(value) {
495
+ await this.page.locator("uui-button[label='Remove " + value + "'] svg").click();
496
+ await this.confirmToDeleteBtn.click();
497
+ }
498
+ async clickAddAcceptedFileExtensionsButton() {
499
+ await this.addAcceptedFileExtensionsBtn.click();
500
+ }
501
+ // Multi URL Picker
502
+ async enterMinimumNumberOfItemsValue(value) {
503
+ await this.minimumNumberOfItemsTxt.clear();
504
+ await this.minimumNumberOfItemsTxt.fill(value);
505
+ }
506
+ async enterMaximumNumberOfItemsValue(value) {
507
+ await this.maximumNumberOfItemsTxt.clear();
508
+ await this.maximumNumberOfItemsTxt.fill(value);
509
+ }
510
+ async clickIgnoreUserStartNodesSlider() {
511
+ await this.ignoreUserStartNodesSlider.click();
512
+ }
513
+ async chooseOverlaySizeByValue(value) {
514
+ await this.overlaySizeDropDownBox.selectOption({ value: value });
515
+ }
516
+ async clickHideAnchorQueryStringInputSlider() {
517
+ await this.hideAnchorQueryStringInputSlider.click();
518
+ }
519
+ // Media Picker
520
+ async clickPickMultipleItemsSlider() {
521
+ await this.pickMultipleItemsSlider.click();
522
+ }
523
+ async clickEnableFocalPointSlider() {
524
+ await this.enableFocalPointSlider.click();
525
+ }
526
+ async enterAmountValue(lowValue, highValue) {
527
+ await this.amountLowValueTxt.clear();
528
+ await this.amountLowValueTxt.fill(lowValue);
529
+ await this.amountHighValueTxt.clear();
530
+ await this.amountHighValueTxt.fill(highValue);
531
+ }
532
+ async addAcceptedType(mediaTypeName) {
533
+ await this.chooseAcceptedTypesBtn.click();
534
+ await this.clickTextButtonWithName(mediaTypeName);
535
+ await this.chooseModalBtn.click();
536
+ }
537
+ async removeAcceptedType(mediaTypeName) {
538
+ await this.page.locator('uui-ref-node-document-type[name="' + mediaTypeName + '"]').getByLabel('Remove').click();
539
+ await this.confirmToRemoveBtn.click();
540
+ }
541
+ async removeMediaStartNode(mediaName) {
542
+ await this.page.locator('uui-card-media[name="' + mediaName + '"]').locator('[label="Remove"]').click();
543
+ await this.confirmToRemoveBtn.click();
544
+ }
545
+ async clickChooseStartNodeButton() {
546
+ await this.chooseStartNodeBtn.click();
547
+ }
548
+ // Richtext Editor
549
+ async pickTheToolbarOptionByValue(values) {
550
+ for (var index in values) {
551
+ await this.toolbarCheckboxes.filter({ has: this.page.getByLabel(values[index]) }).locator('#ticker svg').click();
552
+ }
553
+ }
554
+ async addStylesheet(stylesheetName) {
555
+ await this.addStylesheetBtn.click();
556
+ await this.page.getByLabel(stylesheetName).click();
557
+ await this.chooseModalBtn.click();
558
+ }
559
+ async enterDimensionsValue(width, height) {
560
+ await this.dimensionsWidthTxt.clear();
561
+ await this.dimensionsWidthTxt.fill(width);
562
+ await this.dimensionsHeightTxt.clear();
563
+ await this.dimensionsHeightTxt.fill(height);
564
+ }
565
+ async enterMaximumSizeForImages(value) {
566
+ await this.maxImageSizeTxt.clear();
567
+ await this.maxImageSizeTxt.fill(value);
568
+ }
569
+ async clickHideLabelSlider() {
570
+ await this.hideLabelSlider.click();
571
+ }
572
+ async clickInlineRadioButton() {
573
+ await this.inlineRadioBtn.click();
574
+ }
575
+ async clickChooseWithPlusButton() {
576
+ await this.chooseWithPlusBtn.click();
577
+ }
578
+ async addImageUploadFolder(mediaFolderName) {
579
+ await this.clickChooseWithPlusButton();
580
+ await this.mediaCardItems.filter({ hasText: mediaFolderName }).click();
581
+ await this.clickSubmitButton();
582
+ }
583
+ async clickAddWithPlusButton() {
584
+ await this.addWithPlusBtn.click();
585
+ }
586
+ async addAvailableBlocks(blockName) {
587
+ await this.clickAddWithPlusButton();
588
+ await this.clickTextButtonWithName(blockName);
589
+ await this.chooseModalBtn.click();
590
+ await this.clickSubmitButton();
591
+ }
592
+ // Tags
593
+ async enterDefineTagGroupValue(value) {
594
+ await this.defineTagGroupTxt.clear();
595
+ await this.defineTagGroupTxt.fill(value);
596
+ }
597
+ async selectStorageTypeOption(option) {
598
+ await this.storageTypeDropDownBox.selectOption({ label: option });
599
+ }
600
+ // Content Picker
601
+ async clickShowOpenButtonSlider() {
602
+ await this.showOpenButtonSlider.click();
603
+ }
604
+ async removeContentStartNode(contentName) {
605
+ await this.page.locator('[name="' + contentName + '"] uui-button').getByLabel('Remove').click();
606
+ await this.confirmToRemoveBtn.click();
607
+ }
608
+ // Dropdown
609
+ async clickEnableMultipleChoiceSlider() {
610
+ await this.enableMultipleChoiceSlider.click();
611
+ }
612
+ async clickAddOptionsButton() {
613
+ await this.addOptionsBtn.click();
614
+ }
615
+ // True/false
616
+ async clickInitialStateSlider() {
617
+ await this.initialStateSlider.click();
618
+ }
619
+ async clickShowToggleLabelsSlider() {
620
+ await this.showToggleLabelsSlider.click();
621
+ }
622
+ async enterLabelOnValue(value) {
623
+ await this.labelOnTxt.clear();
624
+ await this.labelOnTxt.fill(value);
625
+ }
626
+ async enterLabelOffValue(value) {
627
+ await this.labelOffTxt.clear();
628
+ await this.labelOffTxt.fill(value);
629
+ }
630
+ // Block List Editor
631
+ async clickAddBlockButton(index = 0) {
632
+ await this.addBlockBtn.nth(index).click({ force: true });
633
+ }
634
+ async clickRemoveBlockWithName(name) {
635
+ await this.page.locator('umb-block-type-card', { hasText: name }).getByLabel('Remove block').click({ force: true });
636
+ }
637
+ async enterMinAmount(value) {
638
+ await this.minAmountTxt.clear();
639
+ await this.minAmountTxt.fill(value);
640
+ }
641
+ async enterMaxAmount(value) {
642
+ await this.maxAmountTxt.clear();
643
+ await this.maxAmountTxt.fill(value);
644
+ }
645
+ async doesAmountContainErrorMessageWithText(errorMessage) {
646
+ return await (0, test_1.expect)(this.page.getByText(errorMessage)).toBeVisible();
647
+ }
648
+ async clickSingleBlockMode() {
649
+ // We need to wait, otherwise this would be flaky
650
+ await this.singleBlockModeBtn.waitFor();
651
+ await this.singleBlockModeBtn.click();
652
+ }
653
+ async clickLiveEditingMode() {
654
+ await this.liveEditingModeBtn.click();
655
+ }
656
+ async clickInlineEditingMode() {
657
+ await this.inlineEditingModeBtn.click();
658
+ }
659
+ async enterPropertyEditorWidth(width) {
660
+ await this.propertyEditorWidthTxt.clear();
661
+ await this.propertyEditorWidthTxt.fill(width);
662
+ }
663
+ async goToBlockWithName(name) {
664
+ await this.page.getByRole('link', { name: name }).click();
665
+ }
666
+ async enterBlockLabelText(label) {
667
+ await this.labelTextTxt.clear();
668
+ await this.labelTextTxt.fill(label);
669
+ }
670
+ async removeBlockLabelText() {
671
+ await this.labelTextTxt.clear();
672
+ }
673
+ async clickAllowInRootForBlock() {
674
+ await this.allowBlockAtRootBtn.click();
675
+ }
676
+ async clickAllowInAreasForBlock() {
677
+ await this.allowInAreasBtn.click();
678
+ }
679
+ async updateBlockOverlaySize(size) {
680
+ await this.overlaySizeOption.selectOption(size);
681
+ }
682
+ async addBlockContentModel(elementName) {
683
+ await this.chooseContentModelBtn.click();
684
+ await this.clickButtonWithName(elementName);
685
+ await this.clickChooseButton();
686
+ }
687
+ async addBlockSettingsModel(elementName) {
688
+ await this.chooseSettingsModelBtn.click();
689
+ await this.clickButtonWithName(elementName);
690
+ await this.clickChooseModalButton();
691
+ }
692
+ async removeBlockContentModel() {
693
+ await this.contentModelNode.hover();
694
+ await this.removeExactContentModelNodeBtn.click();
695
+ }
696
+ async removeBlockSettingsModel() {
697
+ await this.settingsModelNode.hover();
698
+ await this.removeExactSettingsModelNodeBtn.click();
699
+ }
700
+ async openBlockContentModel() {
701
+ await this.contentModelNode.hover();
702
+ await this.openBtn.click();
703
+ }
704
+ async openBlockSettingsModel() {
705
+ await this.settingsModelNode.hover();
706
+ await this.openBtn.click();
707
+ }
708
+ async isElementWorkspaceOpenInBlock(elementTypeName) {
709
+ return await (0, test_1.expect)(this.documentTypeWorkspace.filter({ hasText: elementTypeName })).toBeVisible();
710
+ }
711
+ async selectBlockBackgroundColor(color) {
712
+ await this.backgroundColorBtn.click();
713
+ await this.backgroundColorTxt.clear();
714
+ await this.backgroundColorTxt.fill(color);
715
+ }
716
+ async selectBlockIconColor(color) {
717
+ await this.iconColorBtn.click();
718
+ await this.iconColorTxt.clear();
719
+ await this.iconColorTxt.fill(color);
720
+ }
721
+ async clickExpandChildItemsForMediaButton() {
722
+ await this.expandChildItemsForMediaBtn.click();
723
+ }
724
+ async clickRemoveCustomStylesheetWithName(name) {
725
+ await this.customStylesheetLabel.locator('[name="' + name + '"]').click();
726
+ await this.stylesheetRemoveBtn.click();
727
+ await this.clickConfirmRemoveButton();
728
+ }
729
+ async clickBlockGridHideContentEditorButton() {
730
+ await this.hideContentEditorBlockGridBtn.click();
731
+ }
732
+ async chooseBlockCustomStylesheetWithName(name) {
733
+ await this.chooseCustomStylesheetBtn.click();
734
+ await this.clickCaretButtonForName('wwwroot');
735
+ await this.clickCaretButtonForName('css');
736
+ await this.page.getByLabel(name, { exact: true }).click();
737
+ await this.clickChooseModalButton();
738
+ }
739
+ async chooseBlockThumbnailWithPath(name, mediaPath) {
740
+ await this.chooseThumbnailAlias.click();
741
+ await this.clickCaretButtonForName('wwwroot');
742
+ await this.clickExpandChildItemsForMediaButton();
743
+ await this.clickCaretButtonForName(mediaPath);
744
+ await this.page.getByLabel(name, { exact: true }).click();
745
+ await this.clickChooseModalButton();
746
+ }
747
+ async clickBlockListHideContentEditorButton() {
748
+ await this.hideContentEditorBlockListBtn.click();
749
+ }
750
+ async enterEditorWidth(value) {
751
+ await this.editorWidthTxt.clear();
752
+ await this.editorWidthTxt.fill(value);
753
+ }
754
+ async enterCreateButtonLabel(value) {
755
+ await this.createButtonLabelTxt.clear();
756
+ await this.createButtonLabelTxt.fill(value);
757
+ }
758
+ async enterGridColumns(value) {
759
+ await this.gridColumnsTxt.clear();
760
+ if (value === undefined) {
761
+ return;
762
+ }
763
+ await this.gridColumnsTxt.fill(value.toString());
764
+ }
765
+ async clickShowResizeOptions() {
766
+ await this.showResizeOptionsBtn.click();
767
+ }
768
+ async clickAvailableColumnSpans(columnSpans) {
769
+ for (let index in columnSpans) {
770
+ await this.columnSpanOptions.getByLabel(columnSpans[index].toString(), { exact: true }).click();
771
+ }
772
+ }
773
+ async goToBlockAreasTab() {
774
+ await this.areasTabBtn.click();
775
+ }
776
+ async enterMinRowSpan(value) {
777
+ await this.availableRowSpansLowValueTxt.clear();
778
+ if (value === undefined) {
779
+ return;
780
+ }
781
+ await this.availableRowSpansLowValueTxt.fill(value.toString());
782
+ }
783
+ async enterMaxRowSpan(value) {
784
+ await this.availableRowSpansHighValueTxt.clear();
785
+ if (value === undefined) {
786
+ return;
787
+ }
788
+ await this.availableRowSpansHighValueTxt.fill(value.toString());
789
+ }
790
+ async enterGridColumnsForArea(value) {
791
+ await this.areaGridColumnsTxt.clear();
792
+ if (value === undefined) {
793
+ return;
794
+ }
795
+ await this.areaGridColumnsTxt.fill(value.toString());
796
+ }
797
+ async addAreaButton() {
798
+ await this.addAreaBtn.click();
799
+ }
800
+ async goToAreaByAlias(alias) {
801
+ await this.blockAreaConfig.filter({ hasText: alias }).getByLabel('edit').click({ force: true });
802
+ }
803
+ async clickRemoveAreaByAlias(alias) {
804
+ await this.blockAreaConfig.filter({ hasText: alias }).getByLabel('delete').click({ force: true });
805
+ await this.clickConfirmToDeleteButton();
806
+ }
807
+ async enterAreaAlias(alias) {
808
+ await this.aliasAliasTxt.clear();
809
+ await this.aliasAliasTxt.fill(alias);
810
+ }
811
+ async clickAreaSubmitButton() {
812
+ await this.blockGridAreaWorkspaceSubmitBtn.click();
813
+ await this.page.waitForTimeout(500);
814
+ }
815
+ async enterCreateButtonLabelInArea(value) {
816
+ await this.createLabelTxt.nth(1).clear();
817
+ if (value === undefined) {
818
+ return;
819
+ }
820
+ await this.createLabelTxt.nth(1).fill(value);
821
+ }
822
+ async enterMinAllowedInArea(value) {
823
+ await this.minAllowedTxt.clear();
824
+ if (value === undefined) {
825
+ return;
826
+ }
827
+ await this.minAllowedTxt.fill(value.toString());
828
+ }
829
+ async enterMaxAllowedInArea(value) {
830
+ await this.maxAllowedTxt.clear();
831
+ if (value === undefined) {
832
+ return;
833
+ }
834
+ await this.maxAllowedTxt.fill(value.toString());
835
+ }
836
+ async clickAddSpecifiedAllowanceButton() {
837
+ await this.addSpecifiedAllowanceBtn.click();
838
+ }
839
+ async goToBlockAdvancedTab() {
840
+ await this.advancedTabBtn.click();
841
+ }
842
+ async getLinkWithName(name) {
843
+ return this.page.getByRole('link', { name: name });
844
+ }
845
+ async getAddButtonInGroupWithName(name) {
846
+ return this.page.locator('.group').filter({ hasText: name }).locator('#add-button');
847
+ }
848
+ }
849
+ exports.DataTypeUiHelper = DataTypeUiHelper;
850
+ //# sourceMappingURL=DataTypeUiHelper.js.map