V15 QA Fixing the failing media acceptance tests (#18881)
* Fixed the function name due to test helper changes * Updated assertion steps due to UI changes * Added more waits * Bumped version * Increase timeout * Reverted --------- Co-authored-by: Andreas Zerbst <73799582+andr317c@users.noreply.github.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@umbraco/json-models-builders": "^2.0.31",
|
||||
"@umbraco/playwright-testhelpers": "^15.0.41",
|
||||
"@umbraco/playwright-testhelpers": "^15.0.42",
|
||||
"camelize": "^1.0.0",
|
||||
"dotenv": "^16.3.1",
|
||||
"node-fetch": "^2.6.7"
|
||||
@@ -67,9 +67,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@umbraco/playwright-testhelpers": {
|
||||
"version": "15.0.41",
|
||||
"resolved": "https://registry.npmjs.org/@umbraco/playwright-testhelpers/-/playwright-testhelpers-15.0.41.tgz",
|
||||
"integrity": "sha512-yZEhC3iSqT+O/2TBz0QGGEZyKleZ+qIW4YHTpm2nxPSdBAUaKqE4lb6UwylcQZtYnZVssXdi62jbzRPbG8XBlw==",
|
||||
"version": "15.0.42",
|
||||
"resolved": "https://registry.npmjs.org/@umbraco/playwright-testhelpers/-/playwright-testhelpers-15.0.42.tgz",
|
||||
"integrity": "sha512-5UfdS+KvX+SNbEaw7ERka4Px3+VSS8nkcZR94FrXGmF5OVTlJkCw70uYXwB8ysc8ccsVQq23CfS9LPurgG8xXg==",
|
||||
"dependencies": {
|
||||
"@umbraco/json-models-builders": "2.0.31",
|
||||
"node-fetch": "^2.6.7"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@umbraco/json-models-builders": "^2.0.31",
|
||||
"@umbraco/playwright-testhelpers": "^15.0.41",
|
||||
"@umbraco/playwright-testhelpers": "^15.0.42",
|
||||
"camelize": "^1.0.0",
|
||||
"dotenv": "^16.3.1",
|
||||
"node-fetch": "^2.6.7"
|
||||
|
||||
@@ -63,7 +63,7 @@ test('can create content with the custom approved color data type', async ({umbr
|
||||
const customDataTypeName = 'CustomApprovedColor';
|
||||
const colorValue = 'd73737';
|
||||
const colorLabel = 'Test Label';
|
||||
const customDataTypeId = await umbracoApi.dataType.createDefaultApprovedColorDataTypeWithOneItem(customDataTypeName, colorLabel, colorValue);
|
||||
const customDataTypeId = await umbracoApi.dataType.createApprovedColorDataTypeWithOneItem(customDataTypeName, colorLabel, colorValue);
|
||||
const documentTypeId = await umbracoApi.documentType.createDocumentTypeWithPropertyEditor(documentTypeName, customDataTypeName, customDataTypeId);
|
||||
await umbracoApi.document.createDefaultDocument(contentName, documentTypeId);
|
||||
await umbracoUi.content.goToSection(ConstantHelper.sections.content);
|
||||
|
||||
@@ -80,7 +80,7 @@ test(`can upload a file with the svg extension in the content`, async ({umbracoA
|
||||
const contentData = await umbracoApi.document.getByName(contentName);
|
||||
expect(contentData.values[0].alias).toEqual(AliasHelper.toAlias(dataTypeName));
|
||||
expect(contentData.values[0].value.src).toContain(AliasHelper.toAlias(vectorGraphicsName));
|
||||
await umbracoUi.content.doesUploadedSvgThumbnailHaveSrc(contentData.values[0].value.src);
|
||||
await umbracoUi.content.doesUploadedSvgThumbnailHaveSrc(umbracoApi.baseUrl + contentData.values[0].value.src);
|
||||
});
|
||||
|
||||
test('can remove an svg file in the content', async ({umbracoApi, umbracoUi}) => {
|
||||
|
||||
@@ -9,7 +9,7 @@ const colorValue = {label: "Test Label", value: "038c33"};
|
||||
let dataTypeId = null;
|
||||
|
||||
test.beforeEach(async ({umbracoApi}) => {
|
||||
dataTypeId = await umbracoApi.dataType.createDefaultApprovedColorDataTypeWithOneItem(customDataTypeName, colorValue.label, colorValue.value);
|
||||
dataTypeId = await umbracoApi.dataType.createApprovedColorDataTypeWithOneItem(customDataTypeName, colorValue.label, colorValue.value);
|
||||
});
|
||||
|
||||
test.afterEach(async ({umbracoApi}) => {
|
||||
|
||||
@@ -54,6 +54,7 @@ test('can rename a media type folder', async ({umbracoApi, umbracoUi}) => {
|
||||
await umbracoUi.mediaType.clickRootFolderCaretButton();
|
||||
await umbracoUi.mediaType.clickActionsMenuForName(oldFolderName);
|
||||
await umbracoUi.mediaType.clickRenameFolderButton();
|
||||
await umbracoUi.waitForTimeout(500);
|
||||
await umbracoUi.mediaType.enterFolderName(mediaTypeFolderName);
|
||||
await umbracoUi.mediaType.clickConfirmRenameButton();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user