Skip to content

Commit

Permalink
V15 QA updated E2E tests (#17359)
Browse files Browse the repository at this point in the history
* 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 728dc89)
(cherry picked from commit 126bce7)

* Fixed tests

---------

Co-authored-by: Nhu Dinh <hnd@umbraco.dk>
  • Loading branch information
andr317c and nhudinh0309 committed Oct 25, 2024
1 parent 226819d commit cae0182
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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}) => {
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit cae0182

Please sign in to comment.