@umbraco/playwright-testhelpers 16.0.16 → 16.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/helpers/ConsoleErrorHelper.d.ts +9 -0
- package/dist/lib/helpers/ConsoleErrorHelper.js +39 -0
- package/dist/lib/helpers/ConsoleErrorHelper.js.map +1 -0
- package/dist/lib/helpers/ConstantHelper.d.ts +2 -0
- package/dist/lib/helpers/ConstantHelper.js +16 -14
- package/dist/lib/helpers/ConstantHelper.js.map +1 -1
- package/dist/lib/helpers/ContentRenderUiHelper.js +1 -1
- package/dist/lib/helpers/ContentRenderUiHelper.js.map +1 -1
- package/dist/lib/helpers/ContentUiHelper.d.ts +5 -5
- package/dist/lib/helpers/ContentUiHelper.js +29 -28
- package/dist/lib/helpers/ContentUiHelper.js.map +1 -1
- package/dist/lib/helpers/CurrentUserProfileUiHelper.js +1 -1
- package/dist/lib/helpers/CurrentUserProfileUiHelper.js.map +1 -1
- package/dist/lib/helpers/DataTypeUiHelper.d.ts +3 -1
- package/dist/lib/helpers/DataTypeUiHelper.js +66 -54
- package/dist/lib/helpers/DataTypeUiHelper.js.map +1 -1
- package/dist/lib/helpers/DictionaryUiHelper.js +3 -3
- package/dist/lib/helpers/DictionaryUiHelper.js.map +1 -1
- package/dist/lib/helpers/DocumentBlueprintUiHelper.js +1 -1
- package/dist/lib/helpers/DocumentBlueprintUiHelper.js.map +1 -1
- package/dist/lib/helpers/DocumentTypeUiHelper.js +2 -2
- package/dist/lib/helpers/DocumentTypeUiHelper.js.map +1 -1
- package/dist/lib/helpers/LanguageUiHelper.d.ts +3 -0
- package/dist/lib/helpers/LanguageUiHelper.js +9 -2
- package/dist/lib/helpers/LanguageUiHelper.js.map +1 -1
- package/dist/lib/helpers/MediaUiHelper.js +3 -3
- package/dist/lib/helpers/MediaUiHelper.js.map +1 -1
- package/dist/lib/helpers/MemberGroupUiHelper.js +1 -1
- package/dist/lib/helpers/MemberGroupUiHelper.js.map +1 -1
- package/dist/lib/helpers/MemberUiHelper.d.ts +2 -0
- package/dist/lib/helpers/MemberUiHelper.js +6 -0
- package/dist/lib/helpers/MemberUiHelper.js.map +1 -1
- package/dist/lib/helpers/NotificationConstantHelper.d.ts +1 -0
- package/dist/lib/helpers/NotificationConstantHelper.js +2 -1
- package/dist/lib/helpers/NotificationConstantHelper.js.map +1 -1
- package/dist/lib/helpers/PartialViewUiHelper.js +2 -2
- package/dist/lib/helpers/PartialViewUiHelper.js.map +1 -1
- package/dist/lib/helpers/ScriptUiHelper.js +2 -2
- package/dist/lib/helpers/ScriptUiHelper.js.map +1 -1
- package/dist/lib/helpers/StylesheetUiHelper.js +3 -3
- package/dist/lib/helpers/StylesheetUiHelper.js.map +1 -1
- package/dist/lib/helpers/UiBaseLocators.d.ts +27 -3
- package/dist/lib/helpers/UiBaseLocators.js +111 -32
- package/dist/lib/helpers/UiBaseLocators.js.map +1 -1
- package/dist/lib/helpers/UserGroupApiHelper.d.ts +4 -2
- package/dist/lib/helpers/UserGroupApiHelper.js +52 -24
- package/dist/lib/helpers/UserGroupApiHelper.js.map +1 -1
- package/dist/lib/helpers/UserGroupUiHelper.d.ts +1 -1
- package/dist/lib/helpers/UserGroupUiHelper.js +3 -3
- package/dist/lib/helpers/UserGroupUiHelper.js.map +1 -1
- package/dist/lib/helpers/testExtension.js +14 -2
- package/dist/lib/helpers/testExtension.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class ConsoleErrorHelper {
|
|
2
|
+
writeConsoleErrorToFile(error: any): void;
|
|
3
|
+
updateConsoleErrorTextToJson(errorMessage: string, testTitle: string, testLocation: string): {
|
|
4
|
+
testTitle: string;
|
|
5
|
+
testLocation: string;
|
|
6
|
+
errorText: string;
|
|
7
|
+
errorCount: number;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConsoleErrorHelper = void 0;
|
|
4
|
+
const fs = require("fs");
|
|
5
|
+
class ConsoleErrorHelper {
|
|
6
|
+
writeConsoleErrorToFile(error) {
|
|
7
|
+
const filePath = process.env.CONSOLE_ERRORS_PATH;
|
|
8
|
+
if (filePath) {
|
|
9
|
+
try {
|
|
10
|
+
const jsonString = fs.readFileSync(filePath, 'utf-8');
|
|
11
|
+
const data = JSON.parse(jsonString);
|
|
12
|
+
// Checks if the error already exists in the file for the specific test, and if it does. We increment the error count instead of adding it again.
|
|
13
|
+
const duplicateError = data.consoleErrors.find(item => (item.testTitle === error.testTitle) && (item.errorText === error.errorText));
|
|
14
|
+
if (duplicateError) {
|
|
15
|
+
duplicateError.errorCount++;
|
|
16
|
+
data.consoleErrors[data.consoleErrors.indexOf(duplicateError[0])] = duplicateError;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
data.consoleErrors.push(error);
|
|
20
|
+
}
|
|
21
|
+
const updatedJsonString = JSON.stringify(data, null, 2);
|
|
22
|
+
fs.writeFileSync(filePath, updatedJsonString, 'utf-8');
|
|
23
|
+
}
|
|
24
|
+
catch (error) {
|
|
25
|
+
console.error('Error updating console error:', error);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
updateConsoleErrorTextToJson(errorMessage, testTitle, testLocation) {
|
|
30
|
+
return {
|
|
31
|
+
testTitle: testTitle,
|
|
32
|
+
testLocation: testLocation,
|
|
33
|
+
errorText: errorMessage,
|
|
34
|
+
errorCount: 1,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.ConsoleErrorHelper = ConsoleErrorHelper;
|
|
39
|
+
//# sourceMappingURL=ConsoleErrorHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsoleErrorHelper.js","sourceRoot":"","sources":["../../../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YAAY,EAAE,YAAY;YAC1B,SAAS,EAAE,YAAY;YACvB,UAAU,EAAE,CAAC;SACd,CAAC;IACJ,CAAC;CACF;AAlCD,gDAkCC","sourcesContent":["import * as fs from \"fs\";\n\nexport class ConsoleErrorHelper {\n\n writeConsoleErrorToFile(error) {\n const filePath = process.env.CONSOLE_ERRORS_PATH;\n if (filePath) {\n try {\n const jsonString = fs.readFileSync(filePath, 'utf-8');\n const data = JSON.parse(jsonString);\n\n // Checks if the error already exists in the file for the specific test, and if it does. We increment the error count instead of adding it again.\n const duplicateError = data.consoleErrors.find(item => (item.testTitle === error.testTitle) && (item.errorText === error.errorText));\n if (duplicateError) {\n duplicateError.errorCount++;\n data.consoleErrors[data.consoleErrors.indexOf(duplicateError[0])] = duplicateError;\n } else {\n data.consoleErrors.push(error);\n }\n\n const updatedJsonString = JSON.stringify(data, null, 2);\n fs.writeFileSync(filePath, updatedJsonString, 'utf-8');\n } catch (error) {\n console.error('Error updating console error:', error);\n }\n }\n }\n\n updateConsoleErrorTextToJson(errorMessage: string, testTitle: string, testLocation: string) {\n return {\n testTitle: testTitle,\n testLocation: testLocation,\n errorText: errorMessage,\n errorCount: 1,\n };\n }\n}"]}
|
|
@@ -17,7 +17,7 @@ class ConstantHelper {
|
|
|
17
17
|
password: 'verySecurePassword123'
|
|
18
18
|
};
|
|
19
19
|
static validationMessages = {
|
|
20
|
-
emptyLinkPicker: 'Please enter an anchor or querystring,
|
|
20
|
+
emptyLinkPicker: 'Please enter an anchor or querystring, select a document or media item, or manually configure the URL.',
|
|
21
21
|
invalidValue: 'Value is invalid, it does not match the correct pattern',
|
|
22
22
|
unsupportInvariantContentItemWithVariantBlocks: 'One or more Block Types of this Block Editor is using a Element-Type that is configured to Vary By Culture or Vary By Segment. This is not supported on a Content item that does not vary by Culture or Segment.',
|
|
23
23
|
emptyValue: 'Value cannot be empty'
|
|
@@ -143,21 +143,23 @@ class ConstantHelper {
|
|
|
143
143
|
0: ['Documents', 'Assign permissions to specific documents']
|
|
144
144
|
};
|
|
145
145
|
static userGroupPermissionsSettings = {
|
|
146
|
-
0: ['
|
|
146
|
+
0: ['Read', 'Allow access to read a Document', 'Umb.Document.Read'],
|
|
147
147
|
1: ['Create Document Blueprint', 'Allow access to create a Document Blueprint', 'Umb.Document.CreateBlueprint'],
|
|
148
|
-
2: ['Delete', 'Allow access to delete
|
|
149
|
-
3: ['Create', 'Allow access to create
|
|
150
|
-
4: ['Notifications', 'Allow access to setup notifications for
|
|
151
|
-
5: ['Publish', 'Allow access to publish a
|
|
152
|
-
6: ['Set permissions', 'Allow access to change permissions for a
|
|
153
|
-
7: ['Unpublish', 'Allow access to unpublish a
|
|
154
|
-
8: ['Update', 'Allow access to save a
|
|
155
|
-
9: ['Duplicate', 'Allow access to copy a
|
|
156
|
-
10: ['Move to', 'Allow access to move a
|
|
157
|
-
11: ['Sort children', 'Allow access to change the sort order for
|
|
148
|
+
2: ['Delete', 'Allow access to delete a Document', 'Umb.Document.Delete'],
|
|
149
|
+
3: ['Create', 'Allow access to create a Document', 'Umb.Document.Create'],
|
|
150
|
+
4: ['Notifications', 'Allow access to setup notifications for Documents', 'Umb.Document.Notifications'],
|
|
151
|
+
5: ['Publish', 'Allow access to publish a Document', 'Umb.Document.Publish'],
|
|
152
|
+
6: ['Set permissions', 'Allow access to change permissions for a Document', 'Umb.Document.Permissions'],
|
|
153
|
+
7: ['Unpublish', 'Allow access to unpublish a Document', 'Umb.Document.Unpublish'],
|
|
154
|
+
8: ['Update', 'Allow access to save a Document', 'Umb.Document.Update'],
|
|
155
|
+
9: ['Duplicate', 'Allow access to copy a Document', 'Umb.Document.Duplicate'],
|
|
156
|
+
10: ['Move to', 'Allow access to move a Document', 'Umb.Document.Move'],
|
|
157
|
+
11: ['Sort children', 'Allow access to change the sort order for Documents', 'Umb.Document.Sort'],
|
|
158
158
|
12: ['Culture and Hostnames', 'Allow access to assign culture and hostnames', 'Umb.Document.CultureAndHostnames'],
|
|
159
|
-
13: ['Public Access', 'Allow access to set and change access restrictions for a
|
|
160
|
-
14: ['Rollback', 'Allow access to roll back a
|
|
159
|
+
13: ['Public Access', 'Allow access to set and change access restrictions for a Document', 'Umb.Document.PublicAccess'],
|
|
160
|
+
14: ['Rollback', 'Allow access to roll back a Document to a previous state', 'Umb.Document.Rollback'],
|
|
161
|
+
15: ['UI Read', 'Allow access to read Document property values in the UI', 'Umb.Document.PropertyValue.Read'],
|
|
162
|
+
16: ['UI Write', 'Allow access to write Document property values from the UI', 'Umb.Document.PropertyValue.Write'],
|
|
161
163
|
};
|
|
162
164
|
static userGroupSectionsSettings = {
|
|
163
165
|
0: ['Content', 'Umb.Section.Content'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConstantHelper.js","sourceRoot":"","sources":["../../../lib/helpers/ConstantHelper.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAc;IAElB,MAAM,CAAU,QAAQ,GAAG;QAChC,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,SAAS;QAClB,UAAU,EAAE,aAAa;QACzB,KAAK,EAAE,OAAO;KACf,CAAA;IAEM,MAAM,CAAU,mBAAmB,GAAG;QAC3C,IAAI,EAAE,WAAW;QACjB,KAAK,EAAE,0BAA0B;QACjC,QAAQ,EAAE,uBAAuB;KAClC,CAAA;IAEM,MAAM,CAAU,kBAAkB,GAAG;QAC1C,eAAe,EAAE,oHAAoH;QACrI,YAAY,EAAE,yDAAyD;QACvE,8CAA8C,EAAE,kNAAkN;QAClQ,UAAU,EAAE,uBAAuB;KACpC,CAAA;IAEM,MAAM,CAAU,UAAU,GAAG;QAClC,OAAO,EAAE,OAAO;QAChB,MAAM,EAAE,kBAAkB;KAC3B,CAAA;IAEM,MAAM,CAAU,qBAAqB,GAAG;QAC7C,CAAC,EAAE,CAAC,iBAAiB,EAAE,iHAAiH,CAAC;QACzI,CAAC,EAAE,C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["export class ConstantHelper {\n\n public static readonly sections = {\n content: \"Content\",\n media: \"Media\",\n settings: \"Settings\",\n packages: \"Packages\",\n members: \"Members\",\n dictionary: \"Translation\",\n users: \"Users\"\n }\n\n public static readonly testUserCredentials = {\n name: 'Test User',\n email: 'verySecureEmail@123.test',\n password: 'verySecurePassword123'\n }\n\n public static readonly validationMessages = {\n emptyLinkPicker: 'Please enter an anchor or querystring, or select a published document or media item, or manually configure the URL',\n invalidValue: 'Value is invalid, it does not match the correct pattern',\n unsupportInvariantContentItemWithVariantBlocks: 'One or more Block Types of this Block Editor is using a Element-Type that is configured to Vary By Culture or Vary By Segment. This is not supported on a Content item that does not vary by Culture or Segment.',\n emptyValue: 'Value cannot be empty'\n }\n\n public static readonly inputTypes = {\n general: 'input',\n tipTap: 'umb-input-tiptap'\n }\n\n public static readonly approvedColorSettings = {\n 0: ['Include labels?', 'Stores colors as a JSON object containing both the color hex string and label, rather than just the hex string.'],\n 1: ['Colors', 'Add, remove or sort colors'],\n }\n\n public static readonly checkboxListSettings = {\n 0: ['Add option', 'Add, remove or sort options for the list.']\n }\n\n public static readonly contentPickerSettings = {\n 0: ['Ignore user start nodes', 'Selecting this option allows a user to choose nodes that they normally dont have access to.'],\n 1: ['Start node', '']\n }\n\n public static readonly datePickerSettings = {\n 0: ['Date format', 'If left empty then the format is YYYY-MM-DD'],\n //1: ['Offset time', \"When enabled the time displayed will be offset with the server's timezone, this is useful for scenarios like scheduled publishing when an editor is in a different timezone than the hosted server\"]\n }\n\n public static readonly dropdownSettings = {\n 0: ['Enable multiple choice', ''],\n 1: ['Add options', '']\n }\n\n public static readonly imageCropperSettings = {\n 0: ['Define Crops', ''],\n }\n\n public static readonly mediaPickerSettings = {\n 0: ['Accepted types', 'Limit to specific types'],\n 1: ['Pick multiple items', 'Outputs a IEnumerable'],\n 2: ['Amount', 'Set a required range of medias'],\n 3: ['Start node', ''],\n 4: ['Enable Focal Point', ''],\n 5: ['Image Crops', 'Local crops, stored on document'],\n 6: ['Ignore User Start Nodes', 'Selecting this option allows a user to choose nodes that they normally dont have access to.'],\n }\n\n public static readonly labelSettings = {\n 0: ['Value type', 'The type of value to store'],\n }\n\n public static readonly listViewSettings = {\n 0: ['Columns Displayed', 'The properties that will be displayed for each column.'],\n 1: ['Layouts', 'The properties that will be displayed for each column.'],\n 2: ['Order By', 'The default sort order for the Collection.'],\n 3: ['Order Direction', ''],\n 4: ['Page Size', 'Number of items per page.'],\n 5: ['Workspace View icon', \"The icon for the Collection's Workspace View.\"],\n 6: ['Workspace View name', \"The name of the Collection's Workspace View (default if empty: Child Items).\"],\n 7: ['Show Content Workspace View First', \"Enable this to show the Content Workspace View by default instead of the Collection's.\"],\n }\n\n public static readonly multiURLPickerSettings = {\n 0: ['Minimum number of items', ''],\n 1: ['Maximum number of items', ''],\n 2: ['Ignore user start nodes', 'Selecting this option allows a user to choose nodes that they normally dont have access to.'],\n 3: ['Overlay Size', 'Select the width of the overlay.'],\n 4: ['Hide anchor/query string input', 'Selecting this hides the anchor/query string input field in the link picker overlay.'],\n }\n \n public static readonly numericSettings = {\n 0: ['Minimum', 'Enter the minimum amount of number to be entered'],\n 1: ['Maximum', 'Enter the maximum amount of number to be entered'],\n 2: ['Step size', 'Enter the intervals amount between each step of number to be entered']\n }\n\n public static readonly radioboxSettings = {\n 0: ['Add option', 'Add, remove or sort options for the list.'],\n }\n\n public static readonly tagsSettings = {\n 0: ['Tag group', ''],\n 1: ['Storage Type', 'Select whether to store the tags in cache as JSON (default) or CSV format. Notice that CSV does not support commas in the tag value.']\n }\n\n public static readonly textareaSettings = {\n 0: ['Maximum allowed characters', 'If empty - no character limit'],\n 1: ['Number of rows', 'If empty or zero, the textarea is set to auto-height']\n }\n\n public static readonly textstringSettings = {\n 0: ['Maximum allowed characters', 'If empty, 512 character limit'],\n }\n\n public static readonly trueFalseSettings = {\n 0: ['Preset value', ''],\n 1: ['Show on/off labels', ''],\n 2: ['Label On', 'Displays text when enabled.'],\n 3: ['Label Off', 'Displays text when disabled.'],\n 4: ['Screen Reader Label', ''],\n }\n\n public static readonly uploadSettings = {\n 0: ['Accepted file extensions', ''],\n }\n\n public static readonly tipTapSettings = {\n 0: ['Capabilities', 'Choose which Tiptap extensions to enable.\\nOnce enabled, the related actions will be available for the toolbar and statusbar.'],\n 1: ['Toolbar', 'Design the available actions.\\nDrag and drop the available actions onto the toolbar.'],\n 2: ['Statusbar', 'Design the available statuses.\\nDrag and drop the available actions onto the statusbar areas.'],\n 3: ['Stylesheets', 'Pick the stylesheets whose editor styles should be available when editing.'],\n 4: ['Dimensions', 'Set the maximum width and height of the editor. This excludes the toolbar height.'],\n 5: ['Maximum size for inserted images', 'Maximum width or height - enter 0 to disable resizing.'],\n 6: ['Overlay size', 'Select the width of the overlay (link picker).'],\n 7: ['Available Blocks', 'Define the available blocks.'],\n 8: ['Image Upload Folder', 'Choose the upload location of pasted images.'],\n 9: ['Ignore User Start Nodes', ''],\n }\n\n public static readonly tinyMCESettings = {\n 0: ['Toolbar', 'Pick the toolbar options that should be available when editing'],\n 1: ['Stylesheets', 'Pick the stylesheets whose editor styles should be available when editing'],\n 2: ['Dimensions', 'Set the editor dimensions'],\n 3: ['Maximum size for inserted images', 'Maximum width or height - enter 0 to disable resizing.'],\n 4: ['Mode', 'Select the mode for the editor'],\n 5: ['Available Blocks', 'Define the available blocks.'],\n 6: ['Overlay size', 'Select the width of the overlay (link picker).'],\n 7: ['Hide Label', ''],\n 8: ['Image Upload Folder', 'Choose the upload location of pasted images.'],\n 9: ['Ignore User Start Nodes', ''],\n }\n\n public static readonly userGroupAssignAccessSettings = {\n 0: ['Sections', 'Add sections to give users access'],\n 1: ['Languages', 'Limit the languages users have access to edit'],\n 2: ['Select content start node', 'Limit the content tree to a specific start node'],\n 3: ['Select media start node', 'Limit the media library to a specific start node']\n }\n\n public static readonly userGroupDefaultPermissionsSettings = {\n 0: ['Permissions', 'Assign permissions for actions']\n }\n\n public static readonly userGroupGranularPermissionsSettings = {\n 0: ['Documents', 'Assign permissions to specific documents']\n }\n\n public static readonly userGroupPermissionsSettings = {\n 0: ['Browse', 'Allow access to view a node', 'Umb.Document.Read'],\n 1: ['Create Document Blueprint', 'Allow access to create a Document Blueprint', 'Umb.Document.CreateBlueprint'],\n 2: ['Delete', 'Allow access to delete nodes', 'Umb.Document.Delete'],\n 3: ['Create', 'Allow access to create nodes', 'Umb.Document.Create'],\n 4: ['Notifications', 'Allow access to setup notifications for content nodes', 'Umb.Document.Notifications'],\n 5: ['Publish', 'Allow access to publish a node', 'Umb.Document.Publish'],\n 6: ['Set permissions', 'Allow access to change permissions for a node', 'Umb.Document.Permissions'],\n 7: ['Unpublish', 'Allow access to unpublish a node', 'Umb.Document.Unpublish'],\n 8: ['Update', 'Allow access to save a node', 'Umb.Document.Update'],\n 9: ['Duplicate', 'Allow access to copy a node', 'Umb.Document.Duplicate'],\n 10: ['Move to', 'Allow access to move a node', 'Umb.Document.Move'],\n 11: ['Sort children', 'Allow access to change the sort order for nodes', 'Umb.Document.Sort'],\n 12: ['Culture and Hostnames', 'Allow access to assign culture and hostnames', 'Umb.Document.CultureAndHostnames'],\n 13: ['Public Access', 'Allow access to set and change access restrictions for a node', 'Umb.Document.PublicAccess'],\n 14: ['Rollback', 'Allow access to roll back a node to a previous state', 'Umb.Document.Rollback'],\n }\n\n public static readonly userGroupSectionsSettings = {\n 0: ['Content', 'Umb.Section.Content'],\n 1: ['Forms', 'Umb.Section.Forms'],\n 2: ['Media', 'Umb.Section.Media'],\n 3: ['Members', 'Umb.Section.Members'],\n 4: ['Packages', 'Umb.Section.Packages'],\n 5: ['Settings', 'Umb.Section.Settings'],\n 6: ['Translation', 'Umb.Section.Translation'],\n 7: ['Users', 'Umb.Section.Users'],\n }\n\n public static readonly trashDeleteDialogMessage = {\n referenceHeadline: 'The following items depend on this',\n bulkReferenceHeadline: 'The following items are used by other content.'\n }\n}"]}
|
|
1
|
+
{"version":3,"file":"ConstantHelper.js","sourceRoot":"","sources":["../../../lib/helpers/ConstantHel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kC,CAAC;QACjH,EAAE,EAAE,CAAC,eAAe,EAAE,mEAAmE,EAAE,2BAA2B,CAAC;QACvH,EAAE,EAAE,CAAC,UAAU,EAAE,0DAA0D,EAAE,uBAAuB,CAAC;QACrG,EAAE,EAAE,CAAC,SAAS,EAAE,yDAAyD,EAAE,iCAAiC,CAAC;QAC7G,EAAE,EAAE,CAAC,UAAU,EAAE,4DAA4D,EAAE,kCAAkC,CAAC;KACnH,CAAA;IAEM,MAAM,CAAU,yBAAyB,GAAG;QACjD,CAAC,EAAE,CAAC,SAAS,EAAE,qBAAqB,CAAC;QACrC,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,CAAC;QACjC,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,CAAC;QACjC,CAAC,EAAE,CAAC,SAAS,EAAE,qBAAqB,CAAC;QACrC,CAAC,EAAE,CAAC,UAAU,EAAE,sBAAsB,CAAC;QACvC,CAAC,EAAE,CAAC,UAAU,EAAE,sBAAsB,CAAC;QACvC,CAAC,EAAE,CAAC,aAAa,EAAE,yBAAyB,CAAC;QAC7C,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,CAAC;KAClC,CAAA;IAEM,MAAM,CAAU,wBAAwB,GAAG;QAChD,iBAAiB,EAAE,oCAAoC;QACvD,qBAAqB,EAAE,gDAAgD;KACxE,CAAA;;AA1MH,wCA2MC","sourcesContent":["export class ConstantHelper {\n\n public static readonly sections = {\n content: \"Content\",\n media: \"Media\",\n settings: \"Settings\",\n packages: \"Packages\",\n members: \"Members\",\n dictionary: \"Translation\",\n users: \"Users\"\n }\n\n public static readonly testUserCredentials = {\n name: 'Test User',\n email: 'verySecureEmail@123.test',\n password: 'verySecurePassword123'\n }\n\n public static readonly validationMessages = {\n emptyLinkPicker: 'Please enter an anchor or querystring, select a document or media item, or manually configure the URL.',\n invalidValue: 'Value is invalid, it does not match the correct pattern',\n unsupportInvariantContentItemWithVariantBlocks: 'One or more Block Types of this Block Editor is using a Element-Type that is configured to Vary By Culture or Vary By Segment. This is not supported on a Content item that does not vary by Culture or Segment.',\n emptyValue: 'Value cannot be empty'\n }\n\n public static readonly inputTypes = {\n general: 'input',\n tipTap: 'umb-input-tiptap'\n }\n\n public static readonly approvedColorSettings = {\n 0: ['Include labels?', 'Stores colors as a JSON object containing both the color hex string and label, rather than just the hex string.'],\n 1: ['Colors', 'Add, remove or sort colors'],\n }\n\n public static readonly checkboxListSettings = {\n 0: ['Add option', 'Add, remove or sort options for the list.']\n }\n\n public static readonly contentPickerSettings = {\n 0: ['Ignore user start nodes', 'Selecting this option allows a user to choose nodes that they normally dont have access to.'],\n 1: ['Start node', '']\n }\n\n public static readonly datePickerSettings = {\n 0: ['Date format', 'If left empty then the format is YYYY-MM-DD'],\n //1: ['Offset time', \"When enabled the time displayed will be offset with the server's timezone, this is useful for scenarios like scheduled publishing when an editor is in a different timezone than the hosted server\"]\n }\n\n public static readonly dropdownSettings = {\n 0: ['Enable multiple choice', ''],\n 1: ['Add options', '']\n }\n\n public static readonly imageCropperSettings = {\n 0: ['Define Crops', ''],\n }\n\n public static readonly mediaPickerSettings = {\n 0: ['Accepted types', 'Limit to specific types'],\n 1: ['Pick multiple items', 'Outputs a IEnumerable'],\n 2: ['Amount', 'Set a required range of medias'],\n 3: ['Start node', ''],\n 4: ['Enable Focal Point', ''],\n 5: ['Image Crops', 'Local crops, stored on document'],\n 6: ['Ignore User Start Nodes', 'Selecting this option allows a user to choose nodes that they normally dont have access to.'],\n }\n\n public static readonly labelSettings = {\n 0: ['Value type', 'The type of value to store'],\n }\n\n public static readonly listViewSettings = {\n 0: ['Columns Displayed', 'The properties that will be displayed for each column.'],\n 1: ['Layouts', 'The properties that will be displayed for each column.'],\n 2: ['Order By', 'The default sort order for the Collection.'],\n 3: ['Order Direction', ''],\n 4: ['Page Size', 'Number of items per page.'],\n 5: ['Workspace View icon', \"The icon for the Collection's Workspace View.\"],\n 6: ['Workspace View name', \"The name of the Collection's Workspace View (default if empty: Child Items).\"],\n 7: ['Show Content Workspace View First', \"Enable this to show the Content Workspace View by default instead of the Collection's.\"],\n }\n\n public static readonly multiURLPickerSettings = {\n 0: ['Minimum number of items', ''],\n 1: ['Maximum number of items', ''],\n 2: ['Ignore user start nodes', 'Selecting this option allows a user to choose nodes that they normally dont have access to.'],\n 3: ['Overlay Size', 'Select the width of the overlay.'],\n 4: ['Hide anchor/query string input', 'Selecting this hides the anchor/query string input field in the link picker overlay.'],\n }\n \n public static readonly numericSettings = {\n 0: ['Minimum', 'Enter the minimum amount of number to be entered'],\n 1: ['Maximum', 'Enter the maximum amount of number to be entered'],\n 2: ['Step size', 'Enter the intervals amount between each step of number to be entered']\n }\n\n public static readonly radioboxSettings = {\n 0: ['Add option', 'Add, remove or sort options for the list.'],\n }\n\n public static readonly tagsSettings = {\n 0: ['Tag group', ''],\n 1: ['Storage Type', 'Select whether to store the tags in cache as JSON (default) or CSV format. Notice that CSV does not support commas in the tag value.']\n }\n\n public static readonly textareaSettings = {\n 0: ['Maximum allowed characters', 'If empty - no character limit'],\n 1: ['Number of rows', 'If empty or zero, the textarea is set to auto-height']\n }\n\n public static readonly textstringSettings = {\n 0: ['Maximum allowed characters', 'If empty, 512 character limit'],\n }\n\n public static readonly trueFalseSettings = {\n 0: ['Preset value', ''],\n 1: ['Show on/off labels', ''],\n 2: ['Label On', 'Displays text when enabled.'],\n 3: ['Label Off', 'Displays text when disabled.'],\n 4: ['Screen Reader Label', ''],\n }\n\n public static readonly uploadSettings = {\n 0: ['Accepted file extensions', ''],\n }\n\n public static readonly tipTapSettings = {\n 0: ['Capabilities', 'Choose which Tiptap extensions to enable.\\nOnce enabled, the related actions will be available for the toolbar and statusbar.'],\n 1: ['Toolbar', 'Design the available actions.\\nDrag and drop the available actions onto the toolbar.'],\n 2: ['Statusbar', 'Design the available statuses.\\nDrag and drop the available actions onto the statusbar areas.'],\n 3: ['Stylesheets', 'Pick the stylesheets whose editor styles should be available when editing.'],\n 4: ['Dimensions', 'Set the maximum width and height of the editor. This excludes the toolbar height.'],\n 5: ['Maximum size for inserted images', 'Maximum width or height - enter 0 to disable resizing.'],\n 6: ['Overlay size', 'Select the width of the overlay (link picker).'],\n 7: ['Available Blocks', 'Define the available blocks.'],\n 8: ['Image Upload Folder', 'Choose the upload location of pasted images.'],\n 9: ['Ignore User Start Nodes', ''],\n }\n\n public static readonly tinyMCESettings = {\n 0: ['Toolbar', 'Pick the toolbar options that should be available when editing'],\n 1: ['Stylesheets', 'Pick the stylesheets whose editor styles should be available when editing'],\n 2: ['Dimensions', 'Set the editor dimensions'],\n 3: ['Maximum size for inserted images', 'Maximum width or height - enter 0 to disable resizing.'],\n 4: ['Mode', 'Select the mode for the editor'],\n 5: ['Available Blocks', 'Define the available blocks.'],\n 6: ['Overlay size', 'Select the width of the overlay (link picker).'],\n 7: ['Hide Label', ''],\n 8: ['Image Upload Folder', 'Choose the upload location of pasted images.'],\n 9: ['Ignore User Start Nodes', ''],\n }\n\n public static readonly userGroupAssignAccessSettings = {\n 0: ['Sections', 'Add sections to give users access'],\n 1: ['Languages', 'Limit the languages users have access to edit'],\n 2: ['Select content start node', 'Limit the content tree to a specific start node'],\n 3: ['Select media start node', 'Limit the media library to a specific start node']\n }\n\n public static readonly userGroupDefaultPermissionsSettings = {\n 0: ['Permissions', 'Assign permissions for actions']\n }\n\n public static readonly userGroupGranularPermissionsSettings = {\n 0: ['Documents', 'Assign permissions to specific documents']\n }\n\n public static readonly userGroupPermissionsSettings = {\n 0: ['Read', 'Allow access to read a Document', 'Umb.Document.Read'],\n 1: ['Create Document Blueprint', 'Allow access to create a Document Blueprint', 'Umb.Document.CreateBlueprint'],\n 2: ['Delete', 'Allow access to delete a Document', 'Umb.Document.Delete'],\n 3: ['Create', 'Allow access to create a Document', 'Umb.Document.Create'],\n 4: ['Notifications', 'Allow access to setup notifications for Documents', 'Umb.Document.Notifications'],\n 5: ['Publish', 'Allow access to publish a Document', 'Umb.Document.Publish'],\n 6: ['Set permissions', 'Allow access to change permissions for a Document', 'Umb.Document.Permissions'],\n 7: ['Unpublish', 'Allow access to unpublish a Document', 'Umb.Document.Unpublish'],\n 8: ['Update', 'Allow access to save a Document', 'Umb.Document.Update'],\n 9: ['Duplicate', 'Allow access to copy a Document', 'Umb.Document.Duplicate'],\n 10: ['Move to', 'Allow access to move a Document', 'Umb.Document.Move'],\n 11: ['Sort children', 'Allow access to change the sort order for Documents', 'Umb.Document.Sort'],\n 12: ['Culture and Hostnames', 'Allow access to assign culture and hostnames', 'Umb.Document.CultureAndHostnames'],\n 13: ['Public Access', 'Allow access to set and change access restrictions for a Document', 'Umb.Document.PublicAccess'],\n 14: ['Rollback', 'Allow access to roll back a Document to a previous state', 'Umb.Document.Rollback'],\n 15: ['UI Read', 'Allow access to read Document property values in the UI', 'Umb.Document.PropertyValue.Read'],\n 16: ['UI Write', 'Allow access to write Document property values from the UI', 'Umb.Document.PropertyValue.Write'],\n }\n\n public static readonly userGroupSectionsSettings = {\n 0: ['Content', 'Umb.Section.Content'],\n 1: ['Forms', 'Umb.Section.Forms'],\n 2: ['Media', 'Umb.Section.Media'],\n 3: ['Members', 'Umb.Section.Members'],\n 4: ['Packages', 'Umb.Section.Packages'],\n 5: ['Settings', 'Umb.Section.Settings'],\n 6: ['Translation', 'Umb.Section.Translation'],\n 7: ['Users', 'Umb.Section.Users'],\n }\n\n public static readonly trashDeleteDialogMessage = {\n referenceHeadline: 'The following items depend on this',\n bulkReferenceHeadline: 'The following items are used by other content.'\n }\n}"]}
|
|
@@ -8,7 +8,7 @@ class ContentRenderUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
8
8
|
contentRenderValue;
|
|
9
9
|
constructor(page) {
|
|
10
10
|
super(page);
|
|
11
|
-
this.contentRenderValue = page.
|
|
11
|
+
this.contentRenderValue = page.getByTestId('content-render-value');
|
|
12
12
|
}
|
|
13
13
|
async navigateToRenderedContentPage(contentURL) {
|
|
14
14
|
await this.page.goto(umbraco_config_1.umbracoConfig.environment.baseUrl + contentURL);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentRenderUiHelper.js","sourceRoot":"","sources":["../../../lib/helpers/ContentRenderUiHelper.ts"],"names":[],"mappings":";;;AAAA,2CAAuD;AACvD,qDAAgD;AAChD,yDAAmD;AAEnD,MAAa,qBAAsB,SAAQ,+BAAc;IACtC,kBAAkB,CAAU;IAE7C,YAAY,IAAU;QACpB,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"ContentRenderUiHelper.js","sourceRoot":"","sources":["../../../lib/helpers/ContentRenderUiHelper.ts"],"names":[],"mappings":";;;AAAA,2CAAuD;AACvD,qDAAgD;AAChD,yDAAmD;AAEnD,MAAa,qBAAsB,SAAQ,+BAAc;IACtC,kBAAkB,CAAU;IAE7C,YAAY,IAAU;QACpB,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IACrE,CAAC;IAED,KAAK,CAAC,6BAA6B,CAAC,UAAkB;QACpD,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,8BAAa,CAAC,WAAW,CAAC,OAAO,GAAG,UAAU,CAAC,CAAC;IACvE,CAAC;IAED,KAAK,CAAC,iCAAiC,CAAC,IAAY,EAAE,UAAmB,KAAK;QAC5E,IAAI,OAAO,EAAE;YACX,OAAO,MAAM,IAAA,aAAM,EAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;SAC/D;aAAM;YACL,OAAO,MAAM,IAAA,aAAM,EAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;SAClE;IACH,CAAC;IAED,KAAK,CAAC,+BAA+B,CAAC,GAAW,EAAE,KAAa,EAAE,MAAc;QAC9E,MAAM,QAAQ,GAAG,GAAG,GAAG,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAE,GAAG,UAAU,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QACrF,OAAO,MAAM,IAAA,aAAM,EAAC,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC/F,CAAC;IAED,KAAK,CAAC,8BAA8B,CAAC,OAAe;QAClD,OAAO,MAAM,IAAA,aAAM,EAAC,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7F,CAAC;CACF;AA5BD,sDA4BC","sourcesContent":["import {Page, Locator, expect} from \"@playwright/test\";\nimport {UiBaseLocators} from \"./UiBaseLocators\";\nimport {umbracoConfig} from \"../../umbraco.config\";\n\nexport class ContentRenderUiHelper extends UiBaseLocators {\n private readonly contentRenderValue: Locator;\n\n constructor(page: Page) {\n super(page);\n this.contentRenderValue = page.getByTestId('content-render-value');\n }\n\n async navigateToRenderedContentPage(contentURL: string) {\n await this.page.goto(umbracoConfig.environment.baseUrl + contentURL);\n }\n\n async doesContentRenderValueContainText(text: string, isEqual: boolean = false) {\n if (isEqual) {\n return await expect(this.contentRenderValue).toHaveText(text);\n } else {\n return await expect(this.contentRenderValue).toContainText(text);\n }\n }\n\n async doesContentRenderValueHaveImage(src: string, width: number, height: number) {\n const imageSrc = src + '?width=' + width.toString() + '&height=' + height.toString();\n return await expect(this.contentRenderValue.locator('img')).toHaveAttribute('src', imageSrc);\n }\n\n async doesContentRenderValueHaveLink(linkSrc: string) {\n return await expect(this.contentRenderValue.locator('a')).toHaveAttribute('href', linkSrc);\n }\n}"]}
|
|
@@ -93,7 +93,6 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
93
93
|
private readonly publicAccessBtn;
|
|
94
94
|
private readonly uuiCheckbox;
|
|
95
95
|
private readonly sortBtn;
|
|
96
|
-
private readonly modalChooseBtn;
|
|
97
96
|
private readonly containerSaveBtn;
|
|
98
97
|
private readonly groupBasedProtectionBtn;
|
|
99
98
|
private readonly nextBtn;
|
|
@@ -141,8 +140,8 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
141
140
|
private readonly workspaceActionMenu;
|
|
142
141
|
private readonly workspaceActionMenuItem;
|
|
143
142
|
private readonly viewMoreOptionsBtn;
|
|
144
|
-
private readonly
|
|
145
|
-
private readonly
|
|
143
|
+
private readonly schedulePublishBtn;
|
|
144
|
+
private readonly schedulePublishModalBtn;
|
|
146
145
|
private readonly documentScheduleModal;
|
|
147
146
|
private readonly publishAtFormLayout;
|
|
148
147
|
private readonly unpublishAtFormLayout;
|
|
@@ -375,8 +374,8 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
375
374
|
doesBlockHaveIconColor(elementName: string, backgroundColor: string): Promise<void>;
|
|
376
375
|
addDocumentDomain(domainName: string, languageName: string): Promise<void>;
|
|
377
376
|
clickViewMoreOptionsButton(): Promise<void>;
|
|
378
|
-
|
|
379
|
-
|
|
377
|
+
clickSchedulePublishButton(): Promise<void>;
|
|
378
|
+
clickSchedulePublishModalButton(): Promise<void>;
|
|
380
379
|
enterPublishTime(time: string, index?: number): Promise<void>;
|
|
381
380
|
enterUnpublishTime(time: string, index?: number): Promise<void>;
|
|
382
381
|
doesPublishAtValidationMessageContainText(text: string): Promise<void>;
|
|
@@ -397,4 +396,5 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
397
396
|
clickPublishWithDescendantsModalButton(): Promise<void>;
|
|
398
397
|
doesDocumentVariantLanguageItemHaveCount(count: number): Promise<void>;
|
|
399
398
|
doesDocumentVariantLanguageItemHaveName(name: string): Promise<void>;
|
|
399
|
+
clickSchedulePublishLanguageButton(languageName: string): Promise<void>;
|
|
400
400
|
}
|
|
@@ -97,7 +97,6 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
97
97
|
publicAccessBtn;
|
|
98
98
|
uuiCheckbox;
|
|
99
99
|
sortBtn;
|
|
100
|
-
modalChooseBtn;
|
|
101
100
|
containerSaveBtn;
|
|
102
101
|
groupBasedProtectionBtn;
|
|
103
102
|
nextBtn;
|
|
@@ -145,8 +144,8 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
145
144
|
workspaceActionMenu;
|
|
146
145
|
workspaceActionMenuItem;
|
|
147
146
|
viewMoreOptionsBtn;
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
schedulePublishBtn;
|
|
148
|
+
schedulePublishModalBtn;
|
|
150
149
|
documentScheduleModal;
|
|
151
150
|
publishAtFormLayout;
|
|
152
151
|
unpublishAtFormLayout;
|
|
@@ -178,7 +177,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
178
177
|
this.contentNameTxt = page.locator('#name-input input');
|
|
179
178
|
this.publishBtn = page.getByLabel(/^Publish(…)?$/);
|
|
180
179
|
this.unpublishBtn = page.getByLabel(/^Unpublish(…)?$/);
|
|
181
|
-
this.actionMenuForContentBtn = page.locator('#header
|
|
180
|
+
this.actionMenuForContentBtn = page.locator('#header #action-modal');
|
|
182
181
|
this.openedModal = page.locator('uui-modal-container[backdrop]');
|
|
183
182
|
this.textstringTxt = page.locator('umb-property-editor-ui-text-box #input');
|
|
184
183
|
this.reloadChildrenThreeDotsBtn = page.getByRole('button', { name: 'Reload children…' });
|
|
@@ -196,7 +195,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
196
195
|
this.chooseMemberPickerBtn = page.locator('umb-property-editor-ui-member-picker #btn-add');
|
|
197
196
|
this.numericTxt = page.locator('umb-property-editor-ui-number input');
|
|
198
197
|
this.addMultiURLPickerBtn = page.locator('umb-property-editor-ui-multi-url-picker #btn-add');
|
|
199
|
-
this.linkTxt = page.
|
|
198
|
+
this.linkTxt = page.getByTestId('input:url').locator('#input');
|
|
200
199
|
this.anchorQuerystringTxt = page.getByLabel('#value or ?key=value');
|
|
201
200
|
this.linkTitleTxt = this.linkPickerModal.getByLabel('Title');
|
|
202
201
|
this.tagItems = page.locator('uui-tag');
|
|
@@ -220,7 +219,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
220
219
|
this.documentLanguageSelectPopover = page.locator('umb-popover-layout');
|
|
221
220
|
this.documentReadOnly = this.documentWorkspace.locator('#name-input').getByText('Read-only');
|
|
222
221
|
// Info tab
|
|
223
|
-
this.infoTab = page.
|
|
222
|
+
this.infoTab = page.getByTestId('workspace:view-link:Umb.WorkspaceView.Document.Info');
|
|
224
223
|
this.linkContent = page.locator('umb-document-links-workspace-info-app');
|
|
225
224
|
this.historyItems = page.locator('umb-history-item');
|
|
226
225
|
this.generalItem = page.locator('.general-item');
|
|
@@ -240,7 +239,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
240
239
|
this.saveModalBtn = this.sidebarModal.getByLabel('Save', { exact: true });
|
|
241
240
|
this.resetFocalPointBtn = page.getByLabel('Reset focal point');
|
|
242
241
|
// List View
|
|
243
|
-
this.enterNameInContainerTxt = this.container.
|
|
242
|
+
this.enterNameInContainerTxt = this.container.getByTestId('input:entity-name').locator('#input');
|
|
244
243
|
this.listView = page.locator('umb-document-table-collection-view');
|
|
245
244
|
this.nameBtn = page.getByRole('button', { name: 'Name' });
|
|
246
245
|
this.listViewTableRow = this.listView.locator('uui-table-row');
|
|
@@ -270,7 +269,6 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
270
269
|
this.publicAccessBtn = page.getByRole('button', { name: 'Public Access' });
|
|
271
270
|
this.uuiCheckbox = page.locator('uui-checkbox');
|
|
272
271
|
this.sortBtn = page.getByLabel('Sort', { exact: true });
|
|
273
|
-
this.modalChooseBtn = page.locator('umb-tree-picker-modal').getByLabel('Choose');
|
|
274
272
|
this.containerSaveBtn = this.container.getByLabel('Save');
|
|
275
273
|
this.groupBasedProtectionBtn = page.locator('span').filter({ hasText: 'Group based protection' });
|
|
276
274
|
this.nextBtn = page.getByLabel('Next');
|
|
@@ -279,9 +277,9 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
279
277
|
this.selectErrorPageDocument = page.locator('.select-item').filter({ hasText: 'Error Page' }).locator('umb-input-document');
|
|
280
278
|
this.rollbackItem = page.locator('.rollback-item');
|
|
281
279
|
this.actionsMenu = page.locator('uui-scroll-container');
|
|
282
|
-
this.linkToDocumentBtn = this.linkPickerModal.
|
|
283
|
-
this.linkToMediaBtn = this.linkPickerModal.
|
|
284
|
-
this.linkToManualBtn = this.linkPickerModal.
|
|
280
|
+
this.linkToDocumentBtn = this.linkPickerModal.getByTestId('action:document').locator('#button');
|
|
281
|
+
this.linkToMediaBtn = this.linkPickerModal.getByTestId('action:media').locator('#button');
|
|
282
|
+
this.linkToManualBtn = this.linkPickerModal.getByTestId('action:external').locator('#button');
|
|
285
283
|
this.umbDocumentCollection = page.locator('umb-document-collection');
|
|
286
284
|
this.documentTableColumnName = this.listView.locator('umb-document-table-column-name');
|
|
287
285
|
//Block Grid - Block List
|
|
@@ -301,7 +299,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
301
299
|
this.workspaceEditTab = page.locator('umb-content-workspace-view-edit-tab');
|
|
302
300
|
this.blockWorkspaceEditTab = page.locator('umb-block-workspace-view-edit-tab');
|
|
303
301
|
this.workspaceEditProperties = page.locator('umb-content-workspace-view-edit-properties');
|
|
304
|
-
this.openActionsMenu = page.
|
|
302
|
+
this.openActionsMenu = page.locator('#action-menu');
|
|
305
303
|
this.replaceExactBtn = page.getByRole('button', { name: 'Replace', exact: true });
|
|
306
304
|
this.clipboardEntryPicker = page.locator('umb-clipboard-entry-picker');
|
|
307
305
|
this.blockGridAreasContainer = page.locator('umb-block-grid-areas-container');
|
|
@@ -323,9 +321,9 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
323
321
|
this.workspaceActionMenu = page.locator('umb-workspace-action-menu');
|
|
324
322
|
this.workspaceActionMenuItem = page.locator('umb-workspace-action-menu-item');
|
|
325
323
|
this.viewMoreOptionsBtn = this.workspaceActionMenu.locator('#popover-trigger');
|
|
326
|
-
this.
|
|
324
|
+
this.schedulePublishBtn = this.workspaceActionMenuItem.getByLabel('Schedule publish', { exact: true });
|
|
327
325
|
this.documentScheduleModal = page.locator('umb-document-schedule-modal');
|
|
328
|
-
this.
|
|
326
|
+
this.schedulePublishModalBtn = this.documentScheduleModal.getByLabel('Schedule publish', { exact: true });
|
|
329
327
|
this.publishAtFormLayout = this.documentScheduleModal.locator('uui-form-layout-item').first();
|
|
330
328
|
this.unpublishAtFormLayout = this.documentScheduleModal.locator('uui-form-layout-item').last();
|
|
331
329
|
this.publishAtValidationMessage = this.publishAtFormLayout.locator('#messages');
|
|
@@ -916,13 +914,13 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
916
914
|
await this.nextBtn.click();
|
|
917
915
|
await this.chooseMemberGroupBtn.click();
|
|
918
916
|
await this.page.getByLabel(memberGroupName).click();
|
|
919
|
-
await this.
|
|
917
|
+
await this.clickChooseModalButton();
|
|
920
918
|
await this.selectLoginPageDocument.click();
|
|
921
919
|
await this.container.getByLabel(documentName, { exact: true }).click();
|
|
922
|
-
await this.
|
|
920
|
+
await this.clickChooseModalButton();
|
|
923
921
|
await this.selectErrorPageDocument.click();
|
|
924
922
|
await this.container.getByLabel(documentName, { exact: true }).click();
|
|
925
|
-
await this.
|
|
923
|
+
await this.clickChooseModalButton();
|
|
926
924
|
await this.containerSaveBtn.click();
|
|
927
925
|
}
|
|
928
926
|
async sortChildrenDragAndDrop(dragFromSelector, dragToSelector, verticalOffset = 0, horizontalOffset = 0, steps = 5) {
|
|
@@ -1221,13 +1219,13 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
1221
1219
|
await (0, test_1.expect)(this.uploadedSvgThumbnail).toHaveAttribute('src', imageSrc);
|
|
1222
1220
|
}
|
|
1223
1221
|
async doesRichTextEditorBlockContainLabel(richTextEditorAlias, label) {
|
|
1224
|
-
await (0, test_1.expect)(this.page.
|
|
1222
|
+
await (0, test_1.expect)(this.page.getByTestId('property:' + richTextEditorAlias).locator(this.rteBlock)).toContainText(label);
|
|
1225
1223
|
}
|
|
1226
1224
|
async doesBlockEditorModalContainEditorSize(editorSize, elementName) {
|
|
1227
1225
|
await (0, test_1.expect)(this.backofficeModalContainer.locator('[size="' + editorSize + '"]').locator('[headline="Add ' + elementName + '"]')).toBeVisible();
|
|
1228
1226
|
}
|
|
1229
1227
|
async doesBlockEditorModalContainInline(richTextEditorAlias, elementName) {
|
|
1230
|
-
await (0, test_1.expect)(this.page.
|
|
1228
|
+
await (0, test_1.expect)(this.page.getByTestId('property:' + richTextEditorAlias).locator(this.tiptapInput).locator(this.rteBlockInline)).toContainText(elementName);
|
|
1231
1229
|
}
|
|
1232
1230
|
async doesBlockHaveBackgroundColor(elementName, backgroundColor) {
|
|
1233
1231
|
await (0, test_1.expect)(this.page.locator('umb-block-type-card', { hasText: elementName }).locator('[style="background-color:' + backgroundColor + ';"]')).toBeVisible();
|
|
@@ -1247,13 +1245,13 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
1247
1245
|
await (0, test_1.expect)(this.viewMoreOptionsBtn).toBeVisible();
|
|
1248
1246
|
await this.viewMoreOptionsBtn.click();
|
|
1249
1247
|
}
|
|
1250
|
-
async
|
|
1251
|
-
await (0, test_1.expect)(this.
|
|
1252
|
-
await this.
|
|
1248
|
+
async clickSchedulePublishButton() {
|
|
1249
|
+
await (0, test_1.expect)(this.schedulePublishBtn).toBeVisible();
|
|
1250
|
+
await this.schedulePublishBtn.click();
|
|
1253
1251
|
}
|
|
1254
|
-
async
|
|
1255
|
-
await (0, test_1.expect)(this.
|
|
1256
|
-
await this.
|
|
1252
|
+
async clickSchedulePublishModalButton() {
|
|
1253
|
+
await (0, test_1.expect)(this.schedulePublishModalBtn).toBeVisible();
|
|
1254
|
+
await this.schedulePublishModalBtn.click();
|
|
1257
1255
|
}
|
|
1258
1256
|
async enterPublishTime(time, index = 0) {
|
|
1259
1257
|
const publishAtTxt = this.documentScheduleModal.locator('.publish-date').nth(index).locator('uui-form-layout-item').first().locator('#input');
|
|
@@ -1285,11 +1283,10 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
1285
1283
|
await this.selectAllCheckbox.click();
|
|
1286
1284
|
}
|
|
1287
1285
|
async doesSchedulePublishModalButtonContainDisabledTag(hasDisabledTag = false) {
|
|
1288
|
-
const button = this.page.locator('uui-button[label="Schedule"]');
|
|
1289
1286
|
if (!hasDisabledTag) {
|
|
1290
|
-
return await (0, test_1.expect)(
|
|
1287
|
+
return await (0, test_1.expect)(this.schedulePublishModalBtn).not.toHaveAttribute('disabled', '');
|
|
1291
1288
|
}
|
|
1292
|
-
return await (0, test_1.expect)(
|
|
1289
|
+
return await (0, test_1.expect)(this.schedulePublishModalBtn).toHaveAttribute('disabled', '');
|
|
1293
1290
|
}
|
|
1294
1291
|
async clickInlineBlockCaretButtonForName(blockEditorName, index = 0) {
|
|
1295
1292
|
const caretButtonLocator = this.blockListEntry.filter({ hasText: blockEditorName }).nth(index).locator('uui-symbol-expand svg');
|
|
@@ -1330,6 +1327,10 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
1330
1327
|
async doesDocumentVariantLanguageItemHaveName(name) {
|
|
1331
1328
|
await (0, test_1.expect)(this.documentVariantLanguagePicker).toContainText(name);
|
|
1332
1329
|
}
|
|
1330
|
+
async clickSchedulePublishLanguageButton(languageName) {
|
|
1331
|
+
await (0, test_1.expect)(this.page.getByRole('menu').filter({ hasText: languageName })).toBeVisible();
|
|
1332
|
+
await this.page.getByRole('menu').filter({ hasText: languageName }).click();
|
|
1333
|
+
}
|
|
1333
1334
|
}
|
|
1334
1335
|
exports.ContentUiHelper = ContentUiHelper;
|
|
1335
1336
|
//# sourceMappingURL=ContentUiHelper.js.map
|