V15 QA updated nightly pipeline tests (#18746)

* Removed tests for removed features

* Fixed failing tests

* Bumped version
This commit is contained in:
Andreas Zerbst
2025-03-21 09:03:28 +01:00
committed by GitHub
parent d9f17b36c6
commit 425901636e
7 changed files with 12 additions and 80 deletions

View File

@@ -8,7 +8,7 @@
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@umbraco/json-models-builders": "^2.0.29", "@umbraco/json-models-builders": "^2.0.29",
"@umbraco/playwright-testhelpers": "^15.0.36", "@umbraco/playwright-testhelpers": "^15.0.38",
"camelize": "^1.0.0", "camelize": "^1.0.0",
"dotenv": "^16.3.1", "dotenv": "^16.3.1",
"node-fetch": "^2.6.7" "node-fetch": "^2.6.7"
@@ -58,21 +58,21 @@
} }
}, },
"node_modules/@umbraco/json-models-builders": { "node_modules/@umbraco/json-models-builders": {
"version": "2.0.30", "version": "2.0.31",
"resolved": "https://registry.npmjs.org/@umbraco/json-models-builders/-/json-models-builders-2.0.30.tgz", "resolved": "https://registry.npmjs.org/@umbraco/json-models-builders/-/json-models-builders-2.0.31.tgz",
"integrity": "sha512-mOXhbvi3mfpkueDaKkMAGKksieB7Pb/pe8e7Hwz3cYoWUQCdGTzlx2ffps6l8LpkRTXZ6IazGg3OwpVFaedDzQ==", "integrity": "sha512-RGulJazaSjp6ZfHYACXUKDQuF055oXx+Kk3Q7/+PyfGZWRngT7V799Mal1vnrG7W9EDEX9Up+AP22O/alYj3Gg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"camelize": "^1.0.1" "camelize": "^1.0.1"
} }
}, },
"node_modules/@umbraco/playwright-testhelpers": { "node_modules/@umbraco/playwright-testhelpers": {
"version": "15.0.36", "version": "15.0.38",
"resolved": "https://registry.npmjs.org/@umbraco/playwright-testhelpers/-/playwright-testhelpers-15.0.36.tgz", "resolved": "https://registry.npmjs.org/@umbraco/playwright-testhelpers/-/playwright-testhelpers-15.0.38.tgz",
"integrity": "sha512-cu3iRE+NAKbGqwoiHULMLp99VBLVe8AbjDPLmjMMWXD6lXQE4fKsDXyIJiihRwxR1Qoz0L/DgNrysQ8mnyoCjg==", "integrity": "sha512-eWJdK2qkdcJJ7st4eAMCJAdYprX7pgDOQoTVTEt62uFCkILuBkGd/MpCYUhFu7IMbFMjNEhWW/+sGSBjS5G14g==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@umbraco/json-models-builders": "2.0.30", "@umbraco/json-models-builders": "2.0.31",
"node-fetch": "^2.6.7" "node-fetch": "^2.6.7"
} }
}, },

View File

@@ -21,7 +21,7 @@
}, },
"dependencies": { "dependencies": {
"@umbraco/json-models-builders": "^2.0.29", "@umbraco/json-models-builders": "^2.0.29",
"@umbraco/playwright-testhelpers": "^15.0.36", "@umbraco/playwright-testhelpers": "^15.0.38",
"camelize": "^1.0.0", "camelize": "^1.0.0",
"dotenv": "^16.3.1", "dotenv": "^16.3.1",
"node-fetch": "^2.6.7" "node-fetch": "^2.6.7"

View File

@@ -90,7 +90,7 @@ test('invariant document type with invariant block grid with variant block with
}); });
// Remove fixme when this test works. Currently, the textstring value is not saved when saving / publishing the document // Remove fixme when this test works. Currently, the textstring value is not saved when saving / publishing the document
test('invariant document type with invariant block grid with variant block with an variant textString', async ({umbracoApi, umbracoUi}) => { test.fixme('invariant document type with invariant block grid with variant block with an variant textString', async ({umbracoApi, umbracoUi}) => {
// Arrange // Arrange
elementTypeId = await umbracoApi.documentType.createDefaultElementTypeWithVaryByCulture(blockName, elementGroupName, textStringName, textStringDataTypeId, true, true); elementTypeId = await umbracoApi.documentType.createDefaultElementTypeWithVaryByCulture(blockName, elementGroupName, textStringName, textStringDataTypeId, true, true);
blockGridId = await umbracoApi.dataType.createBlockGridWithABlockAndAllowAtRoot(blockGridName, elementTypeId, true); blockGridId = await umbracoApi.dataType.createBlockGridWithABlockAndAllowAtRoot(blockGridName, elementTypeId, true);

View File

@@ -69,7 +69,7 @@ test('can create content with names that vary by culture and content that is inv
const danishTextContent = 'Dette er testtekst'; const danishTextContent = 'Dette er testtekst';
const dataTypeName = 'Textstring'; const dataTypeName = 'Textstring';
const dataTypeData = await umbracoApi.dataType.getByName(dataTypeName); const dataTypeData = await umbracoApi.dataType.getByName(dataTypeName);
const documentTypeId = await umbracoApi.documentType.createDocumentTypeWithPropertyEditor(documentTypeName, dataTypeName, dataTypeData.id, 'Test Group', false); const documentTypeId = await umbracoApi.documentType.createDocumentTypeWithPropertyEditor(documentTypeName, dataTypeName, dataTypeData.id, 'Test Group', true, false);
await umbracoApi.document.createDocumentWithEnglishCultureAndTextContent(contentName, documentTypeId, textContent, dataTypeName); await umbracoApi.document.createDocumentWithEnglishCultureAndTextContent(contentName, documentTypeId, textContent, dataTypeName);
await umbracoUi.goToBackOffice(); await umbracoUi.goToBackOffice();
await umbracoUi.content.goToSection(ConstantHelper.sections.content); await umbracoUi.content.goToSection(ConstantHelper.sections.content);

View File

@@ -17,23 +17,6 @@ test.afterEach(async ({umbracoApi}) => {
} }
}); });
test('can show open button', async ({umbracoApi, umbracoUi}) => {
// Arrange
const expectedDataTypeValues = {
"alias": "showOpenButton",
"value": true
};
await umbracoUi.dataType.goToDataType(dataTypeName);
// Act
await umbracoUi.dataType.clickShowOpenButtonToggle();
await umbracoUi.dataType.clickSaveButton();
// Assert
dataTypeData = await umbracoApi.dataType.getByName(dataTypeName);
expect(dataTypeData.values).toContainEqual(expectedDataTypeValues);
});
test('can ignore user start nodes', async ({umbracoApi, umbracoUi}) => { test('can ignore user start nodes', async ({umbracoApi, umbracoUi}) => {
// Arrange // Arrange
const expectedDataTypeValues = { const expectedDataTypeValues = {

View File

@@ -53,54 +53,3 @@ test('can update number of rows value', async ({umbracoApi, umbracoUi}) => {
dataTypeData = await umbracoApi.dataType.getByName(dataTypeName); dataTypeData = await umbracoApi.dataType.getByName(dataTypeName);
expect(dataTypeData.values).toContainEqual(expectedDataTypeValues); expect(dataTypeData.values).toContainEqual(expectedDataTypeValues);
}); });
test('can update min height (pixels) value', async ({umbracoApi, umbracoUi}) => {
// Arrange
const minHeightValue = 150;
const expectedDataTypeValues = {
"alias": "minHeight",
"value": minHeightValue
};
// Act
await umbracoUi.dataType.enterMinHeightValue(minHeightValue.toString());
await umbracoUi.dataType.clickSaveButton();
// Assert
await umbracoUi.dataType.isSuccessNotificationVisible();
dataTypeData = await umbracoApi.dataType.getByName(dataTypeName);
expect(dataTypeData.values).toContainEqual(expectedDataTypeValues);
});
test('can update max height (pixels) value', async ({umbracoApi, umbracoUi}) => {
// Arrange
const maxHeightValue = 300;
const expectedDataTypeValues = {
"alias": "maxHeight",
"value": maxHeightValue
};
// Act
await umbracoUi.dataType.enterMaxHeightValue(maxHeightValue.toString());
await umbracoUi.dataType.clickSaveButton();
// Assert
await umbracoUi.dataType.isSuccessNotificationVisible();
dataTypeData = await umbracoApi.dataType.getByName(dataTypeName);
expect(dataTypeData.values).toContainEqual(expectedDataTypeValues);
});
// TODO: Remove skip when the front-end is ready. Currently you still can update the minimum greater than the maximum.
test.skip('cannot update the min height greater than the max height', async ({umbracoUi}) => {
// Arrange
const minHeightValue = 150;
const maxHeightValue = 100;
// Act
await umbracoUi.dataType.enterMinHeightValue(minHeightValue.toString());
await umbracoUi.dataType.enterMaxHeightValue(maxHeightValue.toString());
await umbracoUi.dataType.clickSaveButton();
// Assert
await umbracoUi.dataType.isErrorNotificationVisible();
});

View File

@@ -95,7 +95,7 @@ test('can remove fallback language', async ({umbracoApi, umbracoUi}) => {
// Act // Act
await umbracoUi.language.clickLanguageByName(languageName); await umbracoUi.language.clickLanguageByName(languageName);
await umbracoUi.language.removeFallbackLanguageByName(defaultLanguageName); await umbracoUi.language.removeFallbackLanguageByIsoCode(defaultLanguageIsoCode);
await umbracoUi.language.clickSaveButton(); await umbracoUi.language.clickSaveButton();
// Act // Act