Data Type: use Property Editor UI label instead over name (#20716)
Prioritize using the property editor ui label and localize it.
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
import {expect} from "@playwright/test";
|
||||
|
||||
const dataTypeName = 'Richtext editor';
|
||||
const tipTapPropertyEditorName = 'Rich Text Editor [Tiptap] Property Editor UI';
|
||||
const tipTapAlias = 'Umbraco.RichText';
|
||||
const tipTapUiAlias = 'Umb.PropertyEditorUi.Tiptap';
|
||||
const extensionsDefaultValue = [
|
||||
@@ -81,10 +80,9 @@ test('tiptap is the default property editor in rich text editor', async ({umbrac
|
||||
// Act
|
||||
await umbracoUi.dataType.goToDataType(dataTypeName);
|
||||
|
||||
// Assert
|
||||
// Assert
|
||||
await umbracoUi.dataType.doesSettingHaveValue(ConstantHelper.tipTapSettings);
|
||||
await umbracoUi.dataType.doesSettingItemsHaveCount(ConstantHelper.tipTapSettings);
|
||||
await umbracoUi.dataType.doesPropertyEditorHaveName(tipTapPropertyEditorName);
|
||||
await umbracoUi.dataType.doesPropertyEditorHaveAlias(tipTapAlias);
|
||||
await umbracoUi.dataType.doesPropertyEditorHaveUiAlias(tipTapUiAlias);
|
||||
const dataTypeData = await umbracoApi.dataType.getByName(dataTypeName);
|
||||
@@ -95,4 +93,4 @@ test('tiptap is the default property editor in rich text editor', async ({umbrac
|
||||
expect(await umbracoApi.dataType.doesTiptapExtensionsItemsMatchCount(dataTypeName, extensionsDefaultValue.length)).toBeTruthy();
|
||||
expect(await umbracoApi.dataType.doesTiptapExtensionsHaveItems(dataTypeName, extensionsDefaultValue)).toBeTruthy();
|
||||
expect(await umbracoApi.dataType.doesTiptapToolbarHaveItems(dataTypeName, toolbarDefaultValue)).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user