Skip to content

Commit 1748a08

Browse files
authored
V15 QA updated failing acceptance tests on the nightly pipeline (#19882)
* Updated tests * Bumped test helpers
1 parent 3264d58 commit 1748a08

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

tests/Umbraco.Tests.AcceptanceTest/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/Umbraco.Tests.AcceptanceTest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"dependencies": {
2323
"@umbraco/json-models-builders": "^2.0.33",
24-
"@umbraco/playwright-testhelpers": "^15.0.54",
24+
"@umbraco/playwright-testhelpers": "^15.0.55",
2525
"camelize": "^1.0.0",
2626
"dotenv": "^16.3.1",
2727
"node-fetch": "^2.6.7"

tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithDocumentTypeProperties/ContentWithCollections.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ test('can create child content in a collection', async ({umbracoApi, umbracoUi})
5555
await umbracoUi.content.chooseDocumentType(childDocumentTypeName);
5656
await umbracoUi.content.enterContentName(firstChildContentName);
5757
await umbracoUi.content.clickSaveButton();
58+
await umbracoUi.content.isSuccessNotificationVisible();
5859

5960
// Assert
6061
const childData = await umbracoApi.document.getChildren(contentId);
@@ -87,6 +88,7 @@ test('can create multiple child nodes in a collection', async ({umbracoApi, umbr
8788
await umbracoUi.content.chooseDocumentType(childDocumentTypeName);
8889
await umbracoUi.content.enterContentName(secondChildContentName);
8990
await umbracoUi.content.clickSaveButton();
91+
await umbracoUi.content.isSuccessNotificationVisible();
9092

9193
// Assert
9294
const childData = await umbracoApi.document.getChildren(contentId);

tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithMediaPicker.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ test('can publish content with the media picker data type', async ({umbracoApi,
6868
await umbracoUi.content.clickSaveAndPublishButton();
6969

7070
// Assert
71-
await umbracoUi.content.doesSuccessNotificationHaveText(NotificationConstantHelper.success.saved);
71+
await umbracoUi.content.doesSuccessNotificationHaveText(NotificationConstantHelper.success.created);
7272
await umbracoUi.content.doesSuccessNotificationHaveText(NotificationConstantHelper.success.published);
7373
expect(await umbracoApi.document.doesNameExist(contentName)).toBeTruthy();
7474
const contentData = await umbracoApi.document.getByName(contentName);
@@ -159,4 +159,4 @@ test('can not publish a mandatory media picker with an empty value', async ({umb
159159
expect(contentData.values[0].value[0].mediaTypeAlias).toEqual(mediaTypeName);
160160
expect(contentData.values[0].value[0].focalPoint).toBeNull();
161161
expect(contentData.values[0].value[0].crops).toEqual([]);
162-
});
162+
});

tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithTextarea.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ test('cannot input the text that exceeds the allowed amount of characters', asyn
8484
// Arrange
8585
const maxChars = 100;
8686
const textExceedMaxChars = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam mattis porttitor orci id cursus. Nulla';
87-
const warningMessage = 'This field exceeds the allowed amount of characters';
87+
const warningMessage = 'The string length exceeds the maximum length of ' + maxChars + ' characters, 1 too many.';
8888
const dataTypeId = await umbracoApi.dataType.createTextareaDataType(customDataTypeName, maxChars);
8989
const documentTypeId = await umbracoApi.documentType.createDocumentTypeWithPropertyEditor(documentTypeName, customDataTypeName, dataTypeId);
9090
await umbracoApi.document.createDefaultDocument(contentName, documentTypeId);

tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithTextstring.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test.beforeEach(async ({umbracoApi, umbracoUi}) => {
1414
});
1515

1616
test.afterEach(async ({umbracoApi}) => {
17-
await umbracoApi.document.ensureNameNotExists(contentName);
17+
await umbracoApi.document.ensureNameNotExists(contentName);
1818
await umbracoApi.documentType.ensureNameNotExists(documentTypeName);
1919
});
2020

@@ -84,7 +84,7 @@ test('cannot input the text that exceeds the allowed amount of characters', asyn
8484
// Arrange
8585
const maxChars = 20;
8686
const textExceedMaxChars = 'Lorem ipsum dolor sit';
87-
const warningMessage = 'This field exceeds the allowed amount of characters';
87+
const warningMessage = 'The string length exceeds the maximum length of ' + maxChars + ' characters, 1 too many.';
8888
const dataTypeId = await umbracoApi.dataType.createTextstringDataType(customDataTypeName, maxChars);
8989
const documentTypeId = await umbracoApi.documentType.createDocumentTypeWithPropertyEditor(documentTypeName, customDataTypeName, dataTypeId);
9090
await umbracoApi.document.createDefaultDocument(contentName, documentTypeId);

0 commit comments

Comments
 (0)