From cae018251be345ab721f67ef4796d138597a03ba Mon Sep 17 00:00:00 2001 From: Andreas Zerbst Date: Fri, 25 Oct 2024 12:17:30 +0200 Subject: [PATCH] V15 QA updated E2E tests (#17359) * Updated tests for v15 * V14 QA Skip Users tests on Sqlite (#17330) * Split sqlite test because we run into db locks * Uses the new command (cherry picked from commit 728dc899094944cbef9557703de20ea2ae3d0734) (cherry picked from commit 126bce77219692a93795293f2693c30225f0d19a) * Fixed tests --------- Co-authored-by: Nhu Dinh --- .../DefaultConfig/DataType/RichTextEditor.spec.ts | 14 +++++++++----- .../DefaultConfig/Dictionary/Dictionary.spec.ts | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/DataType/RichTextEditor.spec.ts b/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/DataType/RichTextEditor.spec.ts index 854cbe257284..fce5f314442f 100644 --- a/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/DataType/RichTextEditor.spec.ts +++ b/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/DataType/RichTextEditor.spec.ts @@ -5,6 +5,8 @@ const dataTypeName = 'Richtext editor'; let dataTypeDefaultData = null; let dataTypeData = null; +// Create tests for TinyMCE and TipTap + test.beforeEach(async ({umbracoUi, umbracoApi}) => { await umbracoUi.goToBackOffice(); await umbracoUi.dataType.goToSettingsTreeItem('Data Types'); @@ -13,8 +15,8 @@ test.beforeEach(async ({umbracoUi, umbracoApi}) => { test.afterEach(async ({umbracoApi}) => { if (dataTypeDefaultData !== null) { - await umbracoApi.dataType.update(dataTypeDefaultData.id, dataTypeDefaultData); - } + await umbracoApi.dataType.update(dataTypeDefaultData.id, dataTypeDefaultData); + } }); test('can enable ignore user start nodes', async ({umbracoApi, umbracoUi}) => { @@ -74,7 +76,7 @@ test.skip('can add stylesheet', async ({umbracoApi, umbracoUi}) => { }; await umbracoUi.dataType.goToDataType(dataTypeName); - + // Act await umbracoUi.dataType.addStylesheet(stylesheetName); await umbracoUi.dataType.clickSaveButton(); @@ -145,7 +147,8 @@ test('can select overlay size', async ({umbracoApi, umbracoUi}) => { expect(dataTypeData.values).toContainEqual(expectedDataTypeValues); }); -test('can enable hide label', async ({umbracoApi, umbracoUi}) => { +// No hide label for TipTap +test.skip('can enable hide label', async ({umbracoApi, umbracoUi}) => { // Arrange const expectedDataTypeValues = { "alias": "hideLabel", @@ -185,7 +188,8 @@ test('can add image upload folder', async ({umbracoApi, umbracoUi}) => { await umbracoApi.media.ensureNameNotExists(mediaFolderName); }); -test('can enable inline editing mode', async ({umbracoApi, umbracoUi}) => { +// There is no inline editing mode for TipTap +test.skip('can enable inline editing mode', async ({umbracoApi, umbracoUi}) => { // Arrange const mode = 'Inline'; const expectedDataTypeValues = { diff --git a/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Dictionary/Dictionary.spec.ts b/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Dictionary/Dictionary.spec.ts index 7581347e6871..68ad9ee39b81 100644 --- a/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Dictionary/Dictionary.spec.ts +++ b/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Dictionary/Dictionary.spec.ts @@ -59,7 +59,7 @@ test('can create a dictionary item in a dictionary', {tag: '@smoke'}, async ({um // Act await umbracoUi.dictionary.clickActionsMenuForDictionary(parentDictionaryName); - await umbracoUi.dictionary.clickCreateButton(); + await umbracoUi.dictionary.clickCreateDictionaryItemButton(); await umbracoUi.dictionary.enterDictionaryName(dictionaryName); await umbracoUi.dictionary.clickSaveButton();