@umbraco/playwright-testhelpers 2.0.0-beta.7 → 2.0.0-beta.71

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