@umbraco/playwright-testhelpers 2.0.0-beta.64 → 2.0.0-beta.66

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.
@@ -1 +1 @@
1
- {"version":3,"file":"DataTypeApiHelper.js","sourceRoot":"","sources":["../../../lib/helpers/DataTypeApiHelper.ts"],"names":[],"mappings":";;;AACA,wEAAwE;AAExE,MAAa,iBAAiB;IAC5B,GAAG,CAAY;IAEf,YAAY,GAAe;QACzB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,EAAU;QAClB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,uCAAuC,GAAG,EAAE,CAAC,CAAC;QACrG,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAY,EAAE,WAAmB,EAAE,MAA2C,EAAE,QAAiB,EAAE,aAAsB,EAAE,EAAW;QACjJ,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,IAAI;YACZ,aAAa,EAAE,WAAW;YAC1B,eAAe,EAAE,aAAa;YAC9B,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,EAAE;YACR,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAC,IAAI,EAAG,QAAQ,EAAC,CAAC,CAAC,CAAC,IAAI;SAC9C,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,sCAAsC,EAAE,QAAQ,CAAC,CAAC;QAC1G,yCAAyC;QACzC,OAAO,QAAQ,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,GAAG,EAAE,CAAC;IAClE,CAAC;IAED,K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CAAC,QAAQ,EAAE;wBAClB,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;qBACvC;oBACD,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;iBACjC;gBACD,IAAI,KAAK,CAAC,QAAQ,EAAE;oBAClB,OAAO,MAAM,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;iBAChD;gBACD,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;aACpC;iBAAM,IAAI,KAAK,CAAC,WAAW,EAAE;gBAC5B,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;aAC7D;SACF;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,QAAQ;QACjB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,sCAAsC,EAAE,QAAQ,CAAC,CAAA;QACzG,OAAO,QAAQ,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,GAAG,EAAE,CAAC;IAClE,CAAC;IAED,KAAK,CAAC,sBAAsB,CAAC,IAAY;QACvC,MAAM,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAErC,MAAM,QAAQ,GAAG,IAAI,gDAAyB,EAAE;aAC7C,QAAQ,CAAC,IAAI,CAAC;aACd,KAAK,EAAE,CAAC;QACX,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC;CACF;AAjND,8CAiNC","sourcesContent":["import {ApiHelpers} from \"./ApiHelpers\";\nimport {DatePickerDataTypeBuilder} from \"@umbraco/json-models-builders\";\n\nexport class DataTypeApiHelper {\n api: ApiHelpers\n\n constructor(api: ApiHelpers) {\n this.api = api;\n }\n\n async get(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id);\n return await response.json();\n }\n\n async create(name: string, editorAlias: string, values: { alias: string; value: string; }[], parentId?: string, editorUiAlias?: string, id?: string) {\n const dataType = {\n \"name\": name,\n \"editorAlias\": editorAlias,\n \"editorUiAlias\": editorUiAlias,\n \"values\": values,\n \"id\": id,\n \"parent\": parentId ? {\"id\" : parentId} : null\n };\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type', dataType);\n // Returns the id of the created dataType\n return response.headers().location.split(\"v1/data-type/\").pop();\n }\n\n async update(id: string, dataType) {\n const updateDataType = {\n \"name\": dataType.name,\n \"editorAlias\": dataType.editorAlias,\n \"editorUiAlias\": dataType.editorUiAlias,\n \"values\": dataType.values,\n };\n return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id, updateDataType);\n }\n\n async delete(id: string) {\n return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id);\n }\n\n async getAllAtRoot() {\n return await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/data-type/root?skip=0&take=10000&foldersOnly=false');\n }\n\n async doesExist(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id);\n return response.status() === 200;\n }\n\n async getItems(ids: string[]) {\n let idArray = 'id=' + ids[0];\n let i: number;\n\n for (i = 1; i < ids.length; ++i) {\n idArray += '&id=' + ids[i];\n }\n\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/data-type/item?' + idArray);\n return await response.json();\n }\n\n async getByName(name: string) {\n const rootDataTypes = await this.getAllAtRoot();\n const jsonDataTypes = await rootDataTypes.json();\n\n for (const dataType of jsonDataTypes.items) {\n if (dataType.name === name) {\n return this.get(dataType.id);\n } else if (dataType.isContainer || dataType.hasChildren) {\n const result = await this.recurseChildren(name, dataType.id, false);\n if (result) {\n return result;\n }\n }\n }\n return false;\n }\n\n async ensureNameNotExists(name: string) {\n const rootDataTypes = await this.getAllAtRoot();\n const jsonDataTypes = await rootDataTypes.json();\n\n for (const dataType of jsonDataTypes.items) {\n if (dataType.name === name) {\n if (dataType.isFolder) {\n return await this.recurseDeleteChildren(dataType);\n }\n return await this.delete(dataType.id);\n } else if (dataType.hasChildren) {\n await this.recurseChildren(name, dataType.id, true);\n\n }\n }\n return null;\n }\n\n async doesNameExist(name: string) {\n return await this.getByName(name);\n }\n\n async moveToFolder(dataTypeId: string, folderId: string) {\n const folderIdBody = {\n \"target\": { id: folderId }\n };\n return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + dataTypeId + '/move', folderIdBody);\n }\n\n async copyToFolder(dataTypeId: string, folderId: string) {\n const folderIdBody = {\n \"target\": { id: folderId }\n };\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + dataTypeId + '/copy', folderIdBody);\n // Returns the id of the copied dataType\n return response.headers().location.split(\"v1/data-type/\").pop();\n }\n\n // FOLDER\n async getFolder(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id);\n return await response.json();\n }\n\n async createFolder(name: string, parentId?: string, id?: string) {\n const folderData = {\n \"name\": name,\n \"id\": id,\n \"parent\": parentId ? {\"id\" : parentId} : null\n };\n\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder', folderData);\n // Returns the id of the created dataTypeFolder\n return response.headers().location.split(\"v1/data-type/folder/\").pop();\n }\n\n async renameFolder(id: string, name: string) {\n const folderData = {\n \"name\": name,\n };\n return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id, folderData);\n }\n\n async deleteFolder(id: string) {\n return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id);\n }\n\n async doesFolderExist(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id);\n return response.status() === 200;\n }\n\n async getChildren(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/data-type/children?parentId=' + id + '&skip=0&take=100&foldersOnly=false');\n const items = await response.json();\n return items.items;\n }\n\n private async recurseDeleteChildren(dataFolder) {\n if (!dataFolder.hasChildren) {\n return await this.deleteFolder(dataFolder.id);\n }\n const items = await this.getChildren(dataFolder.id);\n\n for (const child of items) {\n if (child.hasChildren) {\n await this.recurseDeleteChildren(child);\n } else if (child.isFolder) {\n await this.deleteFolder(child.id);\n } else {\n await this.delete(child.id);\n }\n }\n return await this.deleteFolder(dataFolder.id);\n }\n\n private async recurseChildren(name: string, id: string, toDelete: boolean) {\n const items = await this.getChildren(id);\n\n for (const child of items) {\n if (child.name === name) {\n if (!toDelete) {\n if (child.isFolder) {\n return await this.getFolder(child.id);\n }\n return await this.get(child.id);\n }\n if (child.isFolder) {\n return await this.recurseDeleteChildren(child);\n }\n return await this.delete(child.id);\n } else if (child.hasChildren) {\n return await this.recurseChildren(name, child.id, toDelete);\n }\n }\n return false;\n }\n\n async save(dataType) {\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type', dataType)\n return response.headers().location.split(\"v1/data-type/\").pop();\n }\n\n async createDateTypeDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new DatePickerDataTypeBuilder()\n .withName(name)\n .build();\n return await this.save(dataType);\n }\n}"]}
1
+ {"version":3,"file":"DataTypeApiHelper.js","sourceRoot":"","sources":["../../../lib/helpers/DataTypeApiHelper.ts"],"names":[],"mappings":";;;AACA,wEAAgN;AAEhN,MAAa,iBAAiB;IAC5B,GAAG,CAAY;IAEf,YAAY,GAAe;QACzB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,EAAU;QAClB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAA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MAAM,IAAI,CAAC,gCAAgC,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;QACzF,OAAO,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,oCAAoC,CAAC,aAAqB,EAAE,cAAsB,EAAE,SAAiB;QACzG,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,gCAAgC,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;QACzF,OAAO,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,gCAAgC,CAAC,aAAqB,EAAE,qBAA6B;QACzF,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QACxD,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC;QAC1E,OAAQ,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,qBAAqB,KAAK,qBAAqB,CAAC,CAAC;IAC5F,CAAC;CACF;AAvzBD,8CAuzBC","sourcesContent":["import {ApiHelpers} from \"./ApiHelpers\";\nimport {CheckboxListDataTypeBuilder, DatePickerDataTypeBuilder, BlockListDataTypeBuilder, DropdownDataTypeBuilder, ContentPickerDataTypeBuilder, BlockGridDataTypeBuilder} from \"@umbraco/json-models-builders\";\n\nexport class DataTypeApiHelper {\n api: ApiHelpers\n\n constructor(api: ApiHelpers) {\n this.api = api;\n }\n\n async get(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id);\n return await response.json();\n }\n\n async create(name: string, editorAlias: string, values: { alias: string; value: string; }[], parentId?: string, editorUiAlias?: string, id?: string) {\n const dataType = {\n \"name\": name,\n \"editorAlias\": editorAlias,\n \"editorUiAlias\": editorUiAlias,\n \"values\": values,\n \"id\": id,\n \"parent\": parentId ? {\"id\": parentId} : null\n };\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type', dataType);\n // Returns the id of the created dataType\n return response.headers().location.split(\"v1/data-type/\").pop();\n }\n\n async update(id: string, dataType) {\n const updateDataType = {\n \"name\": dataType.name,\n \"editorAlias\": dataType.editorAlias,\n \"editorUiAlias\": dataType.editorUiAlias,\n \"values\": dataType.values,\n };\n return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id, updateDataType);\n }\n\n async delete(id: string) {\n return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id);\n }\n\n async getAllAtRoot() {\n return await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/data-type/root?skip=0&take=10000&foldersOnly=false');\n }\n\n async doesExist(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + id);\n return response.status() === 200;\n }\n\n async getItems(ids: string[]) {\n let idArray = 'id=' + ids[0];\n let i: number;\n\n for (i = 1; i < ids.length; ++i) {\n idArray += '&id=' + ids[i];\n }\n\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/data-type/item?' + idArray);\n return await response.json();\n }\n\n async getByName(name: string) {\n const rootDataTypes = await this.getAllAtRoot();\n const jsonDataTypes = await rootDataTypes.json();\n\n for (const dataType of jsonDataTypes.items) {\n if (dataType.name === name) {\n return this.get(dataType.id);\n } else if (dataType.isContainer || dataType.hasChildren) {\n const result = await this.recurseChildren(name, dataType.id, false);\n if (result) {\n return result;\n }\n }\n }\n return false;\n }\n\n async ensureNameNotExists(name: string) {\n const rootDataTypes = await this.getAllAtRoot();\n const jsonDataTypes = await rootDataTypes.json();\n\n for (const dataType of jsonDataTypes.items) {\n if (dataType.name === name) {\n if (dataType.isFolder) {\n return await this.recurseDeleteChildren(dataType);\n }\n return await this.delete(dataType.id);\n } else if (dataType.hasChildren) {\n await this.recurseChildren(name, dataType.id, true);\n\n }\n }\n return null;\n }\n\n async doesNameExist(name: string) {\n return await this.getByName(name);\n }\n\n async moveToFolder(dataTypeId: string, folderId: string) {\n const folderIdBody = {\n \"target\": {id: folderId}\n };\n return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + dataTypeId + '/move', folderIdBody);\n }\n\n async copyToFolder(dataTypeId: string, folderId: string) {\n const folderIdBody = {\n \"target\": {id: folderId}\n };\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type/' + dataTypeId + '/copy', folderIdBody);\n // Returns the id of the copied dataType\n return response.headers().location.split(\"v1/data-type/\").pop();\n }\n\n // FOLDER\n async getFolder(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id);\n return await response.json();\n }\n\n async createFolder(name: string, parentId?: string, id?: string) {\n const folderData = {\n \"name\": name,\n \"id\": id,\n \"parent\": parentId ? {\"id\": parentId} : null\n };\n\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder', folderData);\n // Returns the id of the created dataTypeFolder\n return response.headers().location.split(\"v1/data-type/folder/\").pop();\n }\n\n async renameFolder(id: string, name: string) {\n const folderData = {\n \"name\": name,\n };\n return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id, folderData);\n }\n\n async deleteFolder(id: string) {\n return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id);\n }\n\n async doesFolderExist(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/data-type/folder/' + id);\n return response.status() === 200;\n }\n\n async getChildren(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/data-type/children?parentId=' + id + '&skip=0&take=100&foldersOnly=false');\n const items = await response.json();\n return items.items;\n }\n\n private async recurseDeleteChildren(dataFolder) {\n if (!dataFolder.hasChildren) {\n return await this.deleteFolder(dataFolder.id);\n }\n const items = await this.getChildren(dataFolder.id);\n\n for (const child of items) {\n if (child.hasChildren) {\n await this.recurseDeleteChildren(child);\n } else if (child.isFolder) {\n await this.deleteFolder(child.id);\n } else {\n await this.delete(child.id);\n }\n }\n return await this.deleteFolder(dataFolder.id);\n }\n\n private async recurseChildren(name: string, id: string, toDelete: boolean) {\n const items = await this.getChildren(id);\n\n for (const child of items) {\n if (child.name === name) {\n if (!toDelete) {\n if (child.isFolder) {\n return await this.getFolder(child.id);\n }\n return await this.get(child.id);\n }\n if (child.isFolder) {\n return await this.recurseDeleteChildren(child);\n }\n return await this.delete(child.id);\n } else if (child.hasChildren) {\n return await this.recurseChildren(name, child.id, toDelete);\n }\n }\n return false;\n }\n\n async save(dataType) {\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/data-type', dataType)\n return response.headers().location.split(\"v1/data-type/\").pop();\n }\n\n async createDateTypeDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new DatePickerDataTypeBuilder()\n .withName(name)\n .build();\n return await this.save(dataType);\n }\n\n async createCheckboxListDataType(name: string, options: string[]) {\n await this.ensureNameNotExists(name);\n\n const dataType = new CheckboxListDataTypeBuilder()\n .withName(name)\n .withItems(options)\n .build();\n return await this.save(dataType);\n }\n\n async createContentPickerDataTypeWithStartNode(name: string, startNodeId: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new ContentPickerDataTypeBuilder()\n .withName(name)\n .withStartNodeId(startNodeId)\n .build();\n return await this.save(dataType);\n }\n\n async createContentPickerDataTypeWithShowOpenButton(name: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new ContentPickerDataTypeBuilder()\n .withName(name)\n .withShowOpenButton(true)\n .build();\n return await this.save(dataType);\n }\n\n async createContentPickerDataTypeWithIgnoreUserStartNodes(name: string, startNodeId: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new ContentPickerDataTypeBuilder()\n .withName(name)\n .withStartNodeId(startNodeId)\n .withIgnoreUserStartNodes(true)\n .build();\n return await this.save(dataType);\n }\n \n async createDatePickerDataType(name: string, dateFormat: string) {\n await this.ensureNameNotExists(name);\n\n const dataType = new DatePickerDataTypeBuilder()\n .withName(name)\n .withFormat(dateFormat)\n .build();\n return await this.save(dataType);\n }\n\n async createDropdownDataType(name: string, isMultiple: boolean, options: string[]) {\n await this.ensureNameNotExists(name);\n\n const dataType = new DropdownDataTypeBuilder()\n .withName(name)\n .withMultiple(isMultiple)\n .withItems(options)\n .build();\n return await this.save(dataType);\n }\n\n // BlockListEditor\n async createEmptyBlockListDataType(name: string) {\n await this.ensureNameNotExists(name);\n\n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListDataTypeWithABlock(name: string, contentElementTypeId: string) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .done()\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListDataTypeWithContentAndSettingsElementType(name: string, contentElementTypeId: string, settingsElementTypeId: string) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withSettingsElementTypeKey(settingsElementTypeId)\n .done()\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListDataTypeWithMinAndMaxAmount(name: string, minAmount: number = 0, maxAmount: number = 0) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .withMinValue(minAmount)\n .withMaxValue(maxAmount)\n .build();\n \n return await this.save(blockList);\n }\n\n async createBlockListDataTypeWithSingleBlockMode(name: string, enabled: boolean) {\n await this.ensureNameNotExists(name);\n\n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .withSingleBlockMode(enabled)\n .build();\n\n return await this.save(blockList);\n }\n\n async createBlockListDataTypeWithLiveEditingMode(name: string, enabled: boolean) {\n await this.ensureNameNotExists(name);\n\n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .withLiveEditing(enabled)\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListDataTypeWithInlineEditingMode(name: string, enabled: boolean) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .withInlineEditingAsDefault(enabled)\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListDataTypeWithPropertyEditorWidth(name: string, width: string) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .withMaxPropertyWidth(width)\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListWithBlockWithEditorAppearance(name: string, elementTypeId: string, label: string = '', overlaySize: string = 'small') {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .addBlock()\n .withContentElementTypeKey(elementTypeId)\n .withLabel(label)\n .withEditorSize(overlaySize)\n .done()\n .build();\n\n return await this.save(blockList);\n }\n\n async createBlockListWithBlockWithCatalogueAppearance(name: string, elementTypeId: string, backgroundColor: string = '', iconColor: string = '', customStylesheet: string = '') {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .addBlock()\n .withContentElementTypeKey(elementTypeId)\n .withBackgroundColor(backgroundColor)\n .withIconColor(iconColor)\n .withStylesheet(customStylesheet)\n .done()\n .build();\n\n return await this.save(blockList);\n }\n \n async createBlockListWithBlockWithHideContentEditor(name: string, elementTypeId: string, hideContentEditor: boolean) {\n await this.ensureNameNotExists(name);\n \n const blockList = new BlockListDataTypeBuilder()\n .withName(name)\n .addBlock()\n .withContentElementTypeKey(elementTypeId)\n .withHideContentEditor(hideContentEditor)\n .done()\n .build();\n\n return await this.save(blockList);\n }\n\n async isSingleBlockModeEnabledForBlockList(blockListName: string, enabled: boolean) {\n const blockList = await this.getByName(blockListName);\n const singleBlockModeValue = blockList.values.find(value => value.alias === 'useSingleBlockMode');\n return singleBlockModeValue?.value === enabled;\n }\n\n async isInlineEditingModeEnabledForBlockList(blockListName: string, enabled: boolean) {\n const blockList = await this.getByName(blockListName);\n const inlineEditingModeValue = blockList.values.find(value => value.alias === 'useInlineEditingAsDefault');\n return inlineEditingModeValue?.value === enabled;\n }\n \n // Block Grid\n async createEmptyBlockGrid(blockGridName: string) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithABlock(blockGridName: string, contentElementTypeId: string) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithABlockInAGroup(blockGridName: string, contentElementTypeId: string, groupName: string ) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlockGroup()\n .withName(groupName)\n .done()\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withGroupName(groupName)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithMinAndMaxAmount(blockGridName: string, minAmount: number = 0, maxAmount: number = 0) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withMinValue(minAmount)\n .withMaxValue(maxAmount)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithLiveEditingMode(blockGridName: string, enabled: boolean) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withLiveEditing(enabled)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithPropertyEditorWidth(blockGridName: string, width: string) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withMaxPropertyWidth(width)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithCreateButtonLabel(blockGridName: string, label: string = '') {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withCreateLabel(label)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithGridColumns(blockGridName: string, columns: number = 12) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withGridColumns(columns)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithLayoutStylesheet(blockGridName: string, stylesheet: string[] = ['']) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .withLayoutStylesheet(stylesheet)\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithAnAreaInABlock(blockGridName: string, contentElementTypeId: string, areaAlias: string = 'area', createButtonLabel :string = '', columnSpan: number = 6, rowSpan: number = 1, minAllowed: number = 0, maxAllowed: number = 2) {\n await this.ensureNameNotExists(blockGridName);\n \n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .addArea()\n .withAlias(areaAlias)\n .withCreateLabel(createButtonLabel)\n .withColumnSpan(columnSpan)\n .withRowSpan(rowSpan)\n .withMinAllowed(minAllowed)\n .withMaxAllowed(maxAllowed)\n .done()\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithAdvancedSettingsInBlock(blockGridName: string, contentElementTypeId: string, customViewPath: string = '', customStylesheetPath: string = '', overlaySize: string = 'small', inlineEditing: boolean = false, hideContentEditor: boolean = false) {\n await this.ensureNameNotExists(blockGridName);\n const encodedViewPath = await this.api.stylesheet.encodeStylesheetPath(customViewPath);\n const encodedStylesheetPath = await this.api.stylesheet.encodeStylesheetPath(customStylesheetPath);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withView(encodedViewPath)\n .withStylesheet(encodedStylesheetPath)\n .withEditorSize(overlaySize)\n .withInlineEditing(inlineEditing)\n .withHideContentEditor(hideContentEditor)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithCatalogueAppearanceInBlock(blockGridName: string, contentElementTypeId: string, backgroundColor: string = '', iconColor: string = '', thumbnail: string = '') {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withBackgroundColor(backgroundColor)\n .withIconColor(iconColor)\n .withThumbnail(thumbnail)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithContentAndSettingsElementType(blockGridName: string, contentElementTypeId: string, settingsElementTypeId: string) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withSettingsElementTypeKey(settingsElementTypeId)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithLabel(blockGridName: string, contentElementTypeId: string, label: string) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withLabel(label)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithPermissions(blockGridName: string, contentElementTypeId: string, toAllowInRoot: boolean = false, toAllowInAreas: boolean = false) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .withAllowAtRoot(toAllowInRoot)\n .withAllowInAreas(toAllowInAreas)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async createBlockGridWithSizeOptions(blockGridName: string, contentElementTypeId: string, columnSpans: number = 0, minRowSpan: number = 0, maxRowSpan: number = 12) {\n await this.ensureNameNotExists(blockGridName);\n\n const blockGrid = new BlockGridDataTypeBuilder()\n .withName(blockGridName)\n .addBlock()\n .withContentElementTypeKey(contentElementTypeId)\n .addColumnSpanOptions(columnSpans)\n .withMinRowSpan(minRowSpan)\n .withMaxRowSpan(maxRowSpan)\n .done()\n .build();\n\n return await this.save(blockGrid);\n }\n\n async doesBlockEditorContainBlocksWithContentTypeIds(blockEditorName: string, elementTypeIds: string[]) {\n if (!elementTypeIds || elementTypeIds.length === 0) {\n return false;\n }\n\n const blockEditor = await this.getByName(blockEditorName);\n const blocksValue = blockEditor.values.find(value => value.alias === 'blocks');\n if (!blocksValue || blocksValue.value.length === 0) {\n return false;\n }\n\n const contentElementTypeKeys = blocksValue.value.map(block => block.contentElementTypeKey);\n return elementTypeIds.every(id => contentElementTypeKeys.includes(id));\n }\n\n async doesBlockEditorContainBlocksWithSettingsTypeIds(blockEditorName: string, elementTypeIds: string[]) {\n if (!elementTypeIds || elementTypeIds.length === 0) {\n return false;\n }\n\n const blockEditor = await this.getByName(blockEditorName);\n const blocksValue = blockEditor.values.find(value => value.alias === 'blocks');\n if (!blocksValue || blocksValue.value.length === 0) {\n return false;\n }\n\n const settingsElementTypeKeys = blocksValue.value.map(block => block.settingsElementTypeKey);\n return elementTypeIds.every(id => settingsElementTypeKeys.includes(id));\n }\n\n async isLiveEditingModeEnabledForBlockEditor(blockEditorName: string, enabled: boolean) {\n const blockEditor = await this.getByName(blockEditorName);\n const liveEditingModeValue = blockEditor.values.find(value => value.alias === 'useLiveEditing');\n return liveEditingModeValue?.value === enabled;\n }\n\n async doesMaxPropertyContainWidthForBlockEditor(blockEditorName: string, width: string) {\n const blockEditor = await this.getByName(blockEditorName);\n const maxPropertyWidthValue = blockEditor.values.find(value => value.alias === 'maxPropertyWidth');\n return maxPropertyWidthValue?.value === width;\n }\n\n async doesBlockEditorBlockContainLabel(blockName: string, elementTypeKey: string, label: string) {\n const block = await this.getBlockWithContentElementTypeId(blockName, elementTypeKey);\n return block.label === label;\n }\n\n async doesBlockGridGroupContainCorrectBlocks(blockGridName: string, groupName: string, elementTypeIds: string[]) {\n if (!elementTypeIds || elementTypeIds.length === 0) {\n return false;\n }\n\n const blockEditor = await this.getByName(blockGridName);\n // We need to get the GroupKey, so we can use it to find the blocks that use the Key.\n const blockGroupsValue = blockEditor.values.find(value => value.alias === 'blockGroups');\n if (!blockGroupsValue || blockGroupsValue.value.length === 0) {\n return false;\n }\n\n const blockGroupKey = blockGroupsValue.value.find(blockGroup => blockGroup.name === groupName).key;\n const blocksValue = blockEditor.values.find(value => value.alias === 'blocks');\n if (!blocksValue || blocksValue.value.length === 0) {\n return false;\n }\n\n const blocksWithGroupKey = blocksValue.value.filter(block => block.groupKey === blockGroupKey);\n return elementTypeIds.every(id =>\n blocksWithGroupKey.some(block => block.contentElementTypeKey === id)\n );\n }\n\n async doesBlockGridContainCreateButtonLabel(blockGridName: string, label: string) {\n const blockEditor = await this.getByName(blockGridName);\n const createLabelValue = blockEditor.values.find(value => value.alias === 'createLabel');\n return createLabelValue?.value === label;\n }\n\n async doesBlockGridContainGridColumns(blockGridName: string, columns: number) {\n const blockEditor = await this.getByName(blockGridName);\n const gridColumnsValue = blockEditor.values.find(value => value.alias === 'gridColumns');\n return gridColumnsValue?.value === columns;\n }\n\n async doesBlockEditorBlockHaveAllowInRootEnabled(blockGridName: string, elementTypeKey: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.allowAtRoot;\n }\n\n async doesBlockEditorBlockHaveAllowInAreasEnabled(blockGridName: string, elementTypeKey: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.allowInAreas;\n }\n\n async doesBlockEditorBlockContainColumnSpanOptions(blockGridName: string, elementTypeKey: string, expectedColumnSpans: number[]) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n\n // If the block does not have any columnSpanOptions, and we are not expecting any, return true\n if (block.columnSpanOptions.length === 0 && expectedColumnSpans.length === 0) {\n return true;\n }\n\n const columnSpans = block.columnSpanOptions.map(option => option.columnSpan);\n return expectedColumnSpans.every(span => columnSpans.includes(span)) && columnSpans.every(span => expectedColumnSpans.includes(span));\n }\n\n async doesBlockEditorBlockContainRowSpanOptions(blockGridName: string, elementTypeKey: string, minRowSpan: number, maxRowSpan: number) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.rowMinSpan === minRowSpan && block.rowMaxSpan === maxRowSpan;\n }\n\n async doesBlockEditorBlockContainAreaGridColumns(blockGridName: string, elementTypeKey: string, areaGridColumns: number) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areaGridColumns === areaGridColumns;\n }\n\n async doesBlockEditorBlockContainAreaWithAlias(blockGridName: string, elementTypeKey: string, areaAlias: string = 'area') {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areas.find(area => area.alias === areaAlias);\n }\n\n async doesBlockEditorBlockContainAreaWithCreateButtonLabel(blockGridName: string, elementTypeKey: string, areaAlias: string = 'area', createButtonLabel: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areas.find(area => area.createLabel === createButtonLabel && area.alias === areaAlias);\n }\n\n async doesBlockEditorBlockContainAreaWithMinAllowed(blockGridName: string, elementTypeKey: string, areaAlias: string = 'area', minAllowed: number) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areas.find(area => area.minAllowed === minAllowed && area.alias === areaAlias);\n }\n\n async doesBlockEditorBlockContainAreaWithMaxAllowed(blockGridName: string, elementTypeKey: string, areaAlias: string = 'area', maxAllowed: number) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.areas.find(area => area.maxAllowed === maxAllowed && area.alias === areaAlias);\n }\n\n async doesBlockEditorBlockContainStylesheet(blockGridName: string, elementTypeKey: string, stylesheetPath: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n const encodedSecondStylesheetPath = await this.api.stylesheet.encodeStylesheetPath(stylesheetPath);\n return block.stylesheet[0] === encodedSecondStylesheetPath;\n }\n\n async doesBlockEditorBlockContainOverlaySize(blockGridName: string, elementTypeKey: string, overlaySize: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.editorSize === overlaySize;\n }\n\n async doesBlockEditorBlockContainInlineEditing(blockGridName: string, elementTypeKey: string, inlineEditing: boolean) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.inlineEditing === inlineEditing;\n }\n\n async doesBlockEditorBlockContainHideContentEditor(blockGridName: string, elementTypeKey: string, hideContentEditor: boolean) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.hideContentEditor === hideContentEditor;\n }\n\n async doesBlockEditorBlockContainBackgroundColor(blockGridName: string, elementTypeKey: string, backgroundColor: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.backgroundColor === backgroundColor;\n }\n\n async doesBlockEditorBlockContainIconColor(blockGridName: string, elementTypeKey: string, iconColor: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.iconColor === iconColor;\n }\n\n async doesBlockEditorBlockContainThumbnail(blockGridName: string, elementTypeKey: string, thumbnail: string) {\n const block = await this.getBlockWithContentElementTypeId(blockGridName, elementTypeKey);\n return block.thumbnail === thumbnail;\n }\n \n async getBlockWithContentElementTypeId(blockGridName: string, contentElementTypeKey: string) {\n const blockEditor = await this.getByName(blockGridName);\n const blocks = blockEditor.values.find(value => value.alias === 'blocks');\n return blocks.value.find(block => block.contentElementTypeKey === contentElementTypeKey);\n }\n}"]}
@@ -76,6 +76,51 @@ export declare class DataTypeUiHelper extends UiBaseLocators {
76
76
  private readonly typeToFilterIconsTxt;
77
77
  private readonly cardMedia;
78
78
  private readonly chooseStartNodeBtn;
79
+ private readonly addBlockBtn;
80
+ private readonly minAmountTxt;
81
+ private readonly maxAmountTxt;
82
+ private readonly amountErrorMessage;
83
+ private readonly singleBlockModeBtn;
84
+ private readonly liveEditingModeBtn;
85
+ private readonly inlineEditingModeBtn;
86
+ private readonly propertyEditorWidthTxt;
87
+ private readonly labelTextTxt;
88
+ private readonly overlaySizeOption;
89
+ private readonly chooseContentModelBtn;
90
+ private readonly chooseSettingsModelBtn;
91
+ private readonly contentModelNode;
92
+ private readonly settingsModelNode;
93
+ private readonly removeExactContentModelNodeBtn;
94
+ private readonly removeExactSettingsModelNodeBtn;
95
+ private readonly openBtn;
96
+ private readonly backgroundColorTxt;
97
+ private readonly iconColorTxt;
98
+ private readonly chooseCustomStylesheetBtn;
99
+ private readonly stylesheetRemoveBtn;
100
+ private readonly hideContentEditorBlockGridBtn;
101
+ private readonly hideContentEditorBlockListBtn;
102
+ private readonly customStylesheetLabel;
103
+ private readonly documentTypeWorkspace;
104
+ private readonly editorWidthTxt;
105
+ private readonly createButtonLabelTxt;
106
+ private readonly gridColumnsTxt;
107
+ private readonly showResizeOptionsBtn;
108
+ private readonly columnSpanOptions;
109
+ private readonly areasTabBtn;
110
+ private readonly availableRowSpansLowValueTxt;
111
+ private readonly availableRowSpansHighValueTxt;
112
+ private readonly areaGridColumnsTxt;
113
+ private readonly addAreaBtn;
114
+ private readonly blockAreaConfig;
115
+ private readonly aliasAliasTxt;
116
+ private readonly blockGridAreaWorkspaceSubmitBtn;
117
+ private readonly createLabelTxt;
118
+ private readonly minAllowedTxt;
119
+ private readonly maxAllowedTxt;
120
+ private readonly addSpecifiedAllowanceBtn;
121
+ private readonly advancedTabBtn;
122
+ private readonly allowBlockAtRootBtn;
123
+ private readonly allowInAreasBtn;
79
124
  constructor(page: Page);
80
125
  clickActionsMenuForDataType(name: string): Promise<void>;
81
126
  clickActionsMenuAtRoot(): Promise<void>;
@@ -166,4 +211,51 @@ export declare class DataTypeUiHelper extends UiBaseLocators {
166
211
  clickShowToggleLabelsSlider(): Promise<void>;
167
212
  enterLabelOnValue(value: string): Promise<void>;
168
213
  enterLabelOffValue(value: string): Promise<void>;
214
+ clickAddBlockButton(index?: number): Promise<void>;
215
+ clickRemoveBlockWithName(name: string): Promise<void>;
216
+ enterMinAmount(value: string): Promise<void>;
217
+ enterMaxAmount(value: string): Promise<void>;
218
+ doesAmountContainErrorMessageWitText(errorMessage: string): Promise<void>;
219
+ clickSingleBlockMode(): Promise<void>;
220
+ clickLiveEditingMode(): Promise<void>;
221
+ clickInlineEditingMode(): Promise<void>;
222
+ enterPropertyEditorWidth(width: string): Promise<void>;
223
+ goToBlockWithName(name: string): Promise<void>;
224
+ enterBlockLabelText(label: string): Promise<void>;
225
+ removeBlockLabelText(): Promise<void>;
226
+ clickAllowInRootForBlock(): Promise<void>;
227
+ clickAllowInAreasForBlock(): Promise<void>;
228
+ updateBlockOverlaySize(size: string): Promise<void>;
229
+ addBlockContentModel(elementName: string): Promise<void>;
230
+ addBlockSettingsModel(elementName: string): Promise<void>;
231
+ removeBlockContentModel(): Promise<void>;
232
+ removeBlockSettingsModel(): Promise<void>;
233
+ openBlockContentModel(): Promise<void>;
234
+ openBlockSettingsModel(): Promise<void>;
235
+ isElementWorkspaceOpenInBlock(elementTypeName: string): Promise<void>;
236
+ enterBlockBackgroundColor(color: string): Promise<void>;
237
+ enterBlockIconColor(color: string): Promise<void>;
238
+ chooseBlockCustomStylesheetWithName(name: string): Promise<void>;
239
+ clickRemoveCustomStylesheetWithName(name: string): Promise<void>;
240
+ clickBlockGridHideContentEditorButton(): Promise<void>;
241
+ clickBlockListHideContentEditorButton(): Promise<void>;
242
+ enterEditorWidth(value: string): Promise<void>;
243
+ enterCreateButtonLabel(value: string): Promise<void>;
244
+ enterGridColumns(value: number): Promise<void>;
245
+ clickShowResizeOptions(): Promise<void>;
246
+ clickAvailableColumnSpans(columnSpans: number[]): Promise<void>;
247
+ goToBlockAreasTab(): Promise<void>;
248
+ enterMinRowSpan(value: number): Promise<void>;
249
+ enterMaxRowSpan(value: number): Promise<void>;
250
+ enterGridColumnsForArea(value: number): Promise<void>;
251
+ addAreaButton(): Promise<void>;
252
+ goToAreaByAlias(alias: string): Promise<void>;
253
+ clickRemoveAreaByAlias(alias: string): Promise<void>;
254
+ enterAreaAlias(alias: string): Promise<void>;
255
+ clickAreaSubmitButton(): Promise<void>;
256
+ enterCreateButtonLabelInArea(value: string): Promise<void>;
257
+ enterMinAllowedInArea(value: number): Promise<void>;
258
+ enterMaxAllowedInArea(value: number): Promise<void>;
259
+ clickAddSpecifiedAllowanceButton(): Promise<void>;
260
+ goToBlockAdvancedTab(): Promise<void>;
169
261
  }
@@ -79,6 +79,51 @@ class DataTypeUiHelper extends UiBaseLocators_1.UiBaseLocators {
79
79
  typeToFilterIconsTxt;
80
80
  cardMedia;
81
81
  chooseStartNodeBtn;
82
+ addBlockBtn;
83
+ minAmountTxt;
84
+ maxAmountTxt;
85
+ amountErrorMessage;
86
+ singleBlockModeBtn;
87
+ liveEditingModeBtn;
88
+ inlineEditingModeBtn;
89
+ propertyEditorWidthTxt;
90
+ labelTextTxt;
91
+ overlaySizeOption;
92
+ chooseContentModelBtn;
93
+ chooseSettingsModelBtn;
94
+ contentModelNode;
95
+ settingsModelNode;
96
+ removeExactContentModelNodeBtn;
97
+ removeExactSettingsModelNodeBtn;
98
+ openBtn;
99
+ backgroundColorTxt;
100
+ iconColorTxt;
101
+ chooseCustomStylesheetBtn;
102
+ stylesheetRemoveBtn;
103
+ hideContentEditorBlockGridBtn;
104
+ hideContentEditorBlockListBtn;
105
+ customStylesheetLabel;
106
+ documentTypeWorkspace;
107
+ editorWidthTxt;
108
+ createButtonLabelTxt;
109
+ gridColumnsTxt;
110
+ showResizeOptionsBtn;
111
+ columnSpanOptions;
112
+ areasTabBtn;
113
+ availableRowSpansLowValueTxt;
114
+ availableRowSpansHighValueTxt;
115
+ areaGridColumnsTxt;
116
+ addAreaBtn;
117
+ blockAreaConfig;
118
+ aliasAliasTxt;
119
+ blockGridAreaWorkspaceSubmitBtn;
120
+ createLabelTxt;
121
+ minAllowedTxt;
122
+ maxAllowedTxt;
123
+ addSpecifiedAllowanceBtn;
124
+ advancedTabBtn;
125
+ allowBlockAtRootBtn;
126
+ allowInAreasBtn;
82
127
  constructor(page) {
83
128
  super(page);
84
129
  this.moveToBtn = page.locator('umb-entity-action').getByLabel('Move to');
@@ -171,6 +216,52 @@ class DataTypeUiHelper extends UiBaseLocators_1.UiBaseLocators {
171
216
  this.showToggleLabelsSlider = page.locator('umb-property[label="Show toggle labels"] #slider');
172
217
  this.labelOnTxt = page.locator('umb-property[label="Label On"] #input');
173
218
  this.labelOffTxt = page.locator('umb-property[label="Label Off"] #input');
219
+ // Block List Editor and Block Grid Editor
220
+ this.addBlockBtn = page.locator('umb-input-block-type #blocks').getByLabel('open');
221
+ this.minAmountTxt = page.getByLabel('Low value');
222
+ this.maxAmountTxt = page.getByLabel('High value');
223
+ this.amountErrorMessage = page.locator('[alias="validationLimit"] uui-form-validation-message');
224
+ this.singleBlockModeBtn = this.page.locator('umb-property-layout').filter({ hasText: 'Single block mode' }).locator('#slider');
225
+ this.liveEditingModeBtn = this.page.locator('umb-property-layout').filter({ hasText: 'Live editing' }).locator('#slider');
226
+ this.inlineEditingModeBtn = this.page.locator('umb-property-layout').filter({ hasText: 'Inline editing' }).locator('#slider');
227
+ this.propertyEditorWidthTxt = this.page.locator('umb-property-layout').filter({ hasText: 'Property editor width' }).locator('#input');
228
+ this.labelTextTxt = this.page.locator('[label="Label"]').locator('#input');
229
+ this.overlaySizeOption = this.page.locator('[label="Overlay size"]').locator('#native');
230
+ this.chooseContentModelBtn = this.page.locator('[alias="contentElementTypeKey"]').getByLabel('Choose');
231
+ this.chooseSettingsModelBtn = this.page.locator('[alias="settingsElementTypeKey"]').getByLabel('Choose');
232
+ this.contentModelNode = this.page.locator('[alias="contentElementTypeKey"]').locator('uui-ref-node-document-type');
233
+ this.settingsModelNode = this.page.locator('[alias="settingsElementTypeKey"]').locator('uui-ref-node-document-type');
234
+ this.removeExactContentModelNodeBtn = this.page.locator('[alias="contentElementTypeKey"]').getByLabel('Remove', { exact: true });
235
+ this.removeExactSettingsModelNodeBtn = this.page.locator('[alias="settingsElementTypeKey"]').getByLabel('Remove', { exact: true });
236
+ this.openBtn = this.page.getByLabel('Open', { exact: true });
237
+ this.backgroundColorTxt = this.page.locator('[label="Background color"]').locator('#input');
238
+ this.iconColorTxt = this.page.locator('[label="Icon color"]').locator('#input');
239
+ this.chooseCustomStylesheetBtn = this.page.locator('[label="Custom stylesheet"]').getByLabel('Choose');
240
+ this.stylesheetRemoveBtn = this.page.locator('uui-ref-node').getByLabel('Remove', { exact: true });
241
+ this.hideContentEditorBlockListBtn = this.page.locator('[alias="forceHideContentEditorInOverlay"]').locator('#slider');
242
+ this.hideContentEditorBlockGridBtn = this.page.locator('[alias="hideContentEditor"]').locator('#slider');
243
+ this.customStylesheetLabel = this.page.locator('[label="Custom stylesheet"]');
244
+ this.documentTypeWorkspace = this.page.locator('[alias="Umb.Workspace.DocumentType"]');
245
+ this.editorWidthTxt = this.page.locator('umb-property-layout').filter({ hasText: 'Editor width' }).locator('#input');
246
+ this.createButtonLabelTxt = this.page.locator('umb-property-layout').filter({ hasText: 'Create button label' }).locator('#input');
247
+ this.gridColumnsTxt = this.page.locator('umb-property-layout').filter({ hasText: 'Grid columns' }).locator('#input');
248
+ this.showResizeOptionsBtn = this.page.getByLabel('Show resize options');
249
+ this.columnSpanOptions = this.page.locator('[alias="columnSpanOptions"]');
250
+ this.areasTabBtn = this.page.getByRole('tab', { name: 'Areas' });
251
+ this.availableRowSpansLowValueTxt = this.page.locator('[label="Available row spans"]').getByLabel('Low value');
252
+ this.availableRowSpansHighValueTxt = this.page.locator('[label="Available row spans"]').getByLabel('High value');
253
+ this.areaGridColumnsTxt = this.page.locator('[alias="areaGridColumns"]').locator('#input');
254
+ this.addAreaBtn = this.page.getByLabel('Add area');
255
+ this.blockAreaConfig = this.page.locator('umb-block-area-config-entry');
256
+ this.aliasAliasTxt = this.page.locator('[alias="alias"]').locator('#input');
257
+ this.blockGridAreaWorkspaceSubmitBtn = this.page.locator('umb-block-grid-area-type-workspace-editor').getByLabel('Submit');
258
+ this.createLabelTxt = this.page.locator('[alias="createLabel"]').locator('#input');
259
+ this.minAllowedTxt = this.page.locator('[alias="minAllowed"]').locator('#input');
260
+ this.maxAllowedTxt = this.page.locator('[alias="maxAllowed"]').locator('#input');
261
+ this.addSpecifiedAllowanceBtn = this.page.locator('[alias="specifiedAllowance"]').getByLabel('Add');
262
+ this.advancedTabBtn = this.page.getByRole('tab', { name: 'Advanced' });
263
+ this.allowBlockAtRootBtn = this.page.locator('[alias="allowAtRoot"]');
264
+ this.allowInAreasBtn = this.page.locator('[alias="allowInAreas"]');
174
265
  }
175
266
  async clickActionsMenuForDataType(name) {
176
267
  await this.clickActionsMenuForName(name);
@@ -534,6 +625,205 @@ class DataTypeUiHelper extends UiBaseLocators_1.UiBaseLocators {
534
625
  await this.labelOffTxt.clear();
535
626
  await this.labelOffTxt.fill(value);
536
627
  }
628
+ // Block List Editor
629
+ async clickAddBlockButton(index = 0) {
630
+ await this.addBlockBtn.nth(index).click({ force: true });
631
+ }
632
+ async clickRemoveBlockWithName(name) {
633
+ await this.page.locator('umb-block-type-card', { hasText: name }).getByLabel('Remove block').click({ force: true });
634
+ }
635
+ async enterMinAmount(value) {
636
+ await this.minAmountTxt.clear();
637
+ await this.minAmountTxt.fill(value);
638
+ }
639
+ async enterMaxAmount(value) {
640
+ await this.maxAmountTxt.clear();
641
+ await this.maxAmountTxt.fill(value);
642
+ }
643
+ async doesAmountContainErrorMessageWitText(errorMessage) {
644
+ return await (0, test_1.expect)(this.amountErrorMessage).toContainText(errorMessage);
645
+ }
646
+ async clickSingleBlockMode() {
647
+ // We need to wait, otherwise this would be flaky
648
+ await this.singleBlockModeBtn.waitFor();
649
+ await this.singleBlockModeBtn.click({ force: true });
650
+ }
651
+ async clickLiveEditingMode() {
652
+ await this.liveEditingModeBtn.click({ force: true });
653
+ }
654
+ async clickInlineEditingMode() {
655
+ await this.inlineEditingModeBtn.click({ force: true });
656
+ }
657
+ async enterPropertyEditorWidth(width) {
658
+ await this.propertyEditorWidthTxt.clear();
659
+ await this.propertyEditorWidthTxt.fill(width);
660
+ }
661
+ async goToBlockWithName(name) {
662
+ await this.page.getByRole('link', { name: name }).click();
663
+ }
664
+ async enterBlockLabelText(label) {
665
+ await this.labelTextTxt.clear();
666
+ await this.labelTextTxt.fill(label);
667
+ }
668
+ async removeBlockLabelText() {
669
+ await this.labelTextTxt.clear();
670
+ }
671
+ async clickAllowInRootForBlock() {
672
+ await this.allowBlockAtRootBtn.click();
673
+ }
674
+ async clickAllowInAreasForBlock() {
675
+ await this.allowInAreasBtn.click();
676
+ }
677
+ async updateBlockOverlaySize(size) {
678
+ await this.overlaySizeOption.selectOption(size);
679
+ }
680
+ async addBlockContentModel(elementName) {
681
+ await this.chooseContentModelBtn.click();
682
+ await this.clickButtonWithName(elementName);
683
+ await this.clickChooseButton();
684
+ }
685
+ async addBlockSettingsModel(elementName) {
686
+ await this.chooseSettingsModelBtn.click();
687
+ await this.clickButtonWithName(elementName);
688
+ await this.clickChooseModalButton();
689
+ }
690
+ async removeBlockContentModel() {
691
+ await this.contentModelNode.hover();
692
+ await this.removeExactContentModelNodeBtn.click();
693
+ }
694
+ async removeBlockSettingsModel() {
695
+ await this.settingsModelNode.hover();
696
+ await this.removeExactSettingsModelNodeBtn.click();
697
+ }
698
+ async openBlockContentModel() {
699
+ await this.contentModelNode.hover();
700
+ await this.openBtn.click();
701
+ }
702
+ async openBlockSettingsModel() {
703
+ await this.settingsModelNode.hover();
704
+ await this.openBtn.click();
705
+ }
706
+ async isElementWorkspaceOpenInBlock(elementTypeName) {
707
+ return await (0, test_1.expect)(this.documentTypeWorkspace.filter({ hasText: elementTypeName })).toBeVisible();
708
+ }
709
+ async enterBlockBackgroundColor(color) {
710
+ await this.backgroundColorTxt.clear();
711
+ await this.backgroundColorTxt.fill(color);
712
+ }
713
+ async enterBlockIconColor(color) {
714
+ await this.iconColorTxt.clear();
715
+ await this.iconColorTxt.fill(color);
716
+ }
717
+ async chooseBlockCustomStylesheetWithName(name) {
718
+ await this.chooseCustomStylesheetBtn.click();
719
+ await this.clickCaretButtonForName('wwwroot');
720
+ await this.clickCaretButtonForName('css');
721
+ await this.page.getByLabel(name, { exact: true }).click();
722
+ await this.clickChooseModalButton();
723
+ }
724
+ async clickRemoveCustomStylesheetWithName(name) {
725
+ await this.customStylesheetLabel.locator('[name="' + name + '"]').click();
726
+ await this.stylesheetRemoveBtn.click();
727
+ await this.clickConfirmRemoveButton();
728
+ }
729
+ async clickBlockGridHideContentEditorButton() {
730
+ await this.hideContentEditorBlockGridBtn.click();
731
+ }
732
+ async clickBlockListHideContentEditorButton() {
733
+ await this.hideContentEditorBlockListBtn.click();
734
+ }
735
+ async enterEditorWidth(value) {
736
+ await this.editorWidthTxt.clear();
737
+ await this.editorWidthTxt.fill(value);
738
+ }
739
+ async enterCreateButtonLabel(value) {
740
+ await this.createButtonLabelTxt.clear();
741
+ await this.createButtonLabelTxt.fill(value);
742
+ }
743
+ async enterGridColumns(value) {
744
+ await this.gridColumnsTxt.clear();
745
+ if (value === undefined) {
746
+ return;
747
+ }
748
+ await this.gridColumnsTxt.fill(value.toString());
749
+ }
750
+ async clickShowResizeOptions() {
751
+ await this.showResizeOptionsBtn.click();
752
+ }
753
+ async clickAvailableColumnSpans(columnSpans) {
754
+ for (let index in columnSpans) {
755
+ await this.columnSpanOptions.getByLabel(columnSpans[index].toString(), { exact: true }).click();
756
+ }
757
+ }
758
+ async goToBlockAreasTab() {
759
+ await this.areasTabBtn.click();
760
+ }
761
+ async enterMinRowSpan(value) {
762
+ await this.availableRowSpansLowValueTxt.clear();
763
+ if (value === undefined) {
764
+ return;
765
+ }
766
+ await this.availableRowSpansLowValueTxt.fill(value.toString());
767
+ }
768
+ async enterMaxRowSpan(value) {
769
+ await this.availableRowSpansHighValueTxt.clear();
770
+ if (value === undefined) {
771
+ return;
772
+ }
773
+ await this.availableRowSpansHighValueTxt.fill(value.toString());
774
+ }
775
+ async enterGridColumnsForArea(value) {
776
+ await this.areaGridColumnsTxt.clear();
777
+ if (value === undefined) {
778
+ return;
779
+ }
780
+ await this.areaGridColumnsTxt.fill(value.toString());
781
+ }
782
+ async addAreaButton() {
783
+ await this.addAreaBtn.click();
784
+ }
785
+ async goToAreaByAlias(alias) {
786
+ await this.blockAreaConfig.filter({ hasText: alias }).getByLabel('edit').click({ force: true });
787
+ }
788
+ async clickRemoveAreaByAlias(alias) {
789
+ await this.blockAreaConfig.filter({ hasText: alias }).getByLabel('delete').click({ force: true });
790
+ await this.clickConfirmToDeleteButton();
791
+ }
792
+ async enterAreaAlias(alias) {
793
+ await this.aliasAliasTxt.clear();
794
+ await this.aliasAliasTxt.fill(alias);
795
+ }
796
+ async clickAreaSubmitButton() {
797
+ await this.blockGridAreaWorkspaceSubmitBtn.click();
798
+ await this.page.waitForTimeout(500);
799
+ }
800
+ async enterCreateButtonLabelInArea(value) {
801
+ await this.createLabelTxt.nth(1).clear();
802
+ if (value === undefined) {
803
+ return;
804
+ }
805
+ await this.createLabelTxt.nth(1).fill(value);
806
+ }
807
+ async enterMinAllowedInArea(value) {
808
+ await this.minAllowedTxt.clear();
809
+ if (value === undefined) {
810
+ return;
811
+ }
812
+ await this.minAllowedTxt.fill(value.toString());
813
+ }
814
+ async enterMaxAllowedInArea(value) {
815
+ await this.maxAllowedTxt.clear();
816
+ if (value === undefined) {
817
+ return;
818
+ }
819
+ await this.maxAllowedTxt.fill(value.toString());
820
+ }
821
+ async clickAddSpecifiedAllowanceButton() {
822
+ await this.addSpecifiedAllowanceBtn.click();
823
+ }
824
+ async goToBlockAdvancedTab() {
825
+ await this.advancedTabBtn.click();
826
+ }
537
827
  }
538
828
  exports.DataTypeUiHelper = DataTypeUiHelper;
539
829
  //# sourceMappingURL=DataTypeUiHelper.js.map