diff --git a/tests/Umbraco.Tests.AcceptanceTest/package-lock.json b/tests/Umbraco.Tests.AcceptanceTest/package-lock.json index efa45d2b9ec2..bf7b52ae587f 100644 --- a/tests/Umbraco.Tests.AcceptanceTest/package-lock.json +++ b/tests/Umbraco.Tests.AcceptanceTest/package-lock.json @@ -8,7 +8,7 @@ "hasInstallScript": true, "dependencies": { "@umbraco/json-models-builders": "^2.0.33", - "@umbraco/playwright-testhelpers": "^15.0.54", + "@umbraco/playwright-testhelpers": "^15.0.55", "camelize": "^1.0.0", "dotenv": "^16.3.1", "node-fetch": "^2.6.7" @@ -66,9 +66,9 @@ } }, "node_modules/@umbraco/playwright-testhelpers": { - "version": "15.0.54", - "resolved": "https://registry.npmjs.org/@umbraco/playwright-testhelpers/-/playwright-testhelpers-15.0.54.tgz", - "integrity": "sha512-i7us0uMIqHFqsmrp2/x0CRvYVNgiAgQObsa6e+Jy/wqTxz2200E98gvHpdqkQ8fwMsXxdv/5AY32jBMhrQdt6A==", + "version": "15.0.55", + "resolved": "https://registry.npmjs.org/@umbraco/playwright-testhelpers/-/playwright-testhelpers-15.0.55.tgz", + "integrity": "sha512-U0+wzrnR45OAkf8uZaz/63pOcsblNj89I93x9BJFN+468EruOGPL4f3RVLi2T+nddjsZeZgNLk+NUgEhfFI8dw==", "license": "MIT", "dependencies": { "@umbraco/json-models-builders": "2.0.33", diff --git a/tests/Umbraco.Tests.AcceptanceTest/package.json b/tests/Umbraco.Tests.AcceptanceTest/package.json index 92685bc041b4..bb3ec27a80bf 100644 --- a/tests/Umbraco.Tests.AcceptanceTest/package.json +++ b/tests/Umbraco.Tests.AcceptanceTest/package.json @@ -21,7 +21,7 @@ }, "dependencies": { "@umbraco/json-models-builders": "^2.0.33", - "@umbraco/playwright-testhelpers": "^15.0.54", + "@umbraco/playwright-testhelpers": "^15.0.55", "camelize": "^1.0.0", "dotenv": "^16.3.1", "node-fetch": "^2.6.7" diff --git a/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithDocumentTypeProperties/ContentWithCollections.spec.ts b/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithDocumentTypeProperties/ContentWithCollections.spec.ts index 98868fc1c17b..cce20cb6ef91 100644 --- a/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithDocumentTypeProperties/ContentWithCollections.spec.ts +++ b/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithDocumentTypeProperties/ContentWithCollections.spec.ts @@ -55,6 +55,7 @@ test('can create child content in a collection', async ({umbracoApi, umbracoUi}) await umbracoUi.content.chooseDocumentType(childDocumentTypeName); await umbracoUi.content.enterContentName(firstChildContentName); await umbracoUi.content.clickSaveButton(); + await umbracoUi.content.isSuccessNotificationVisible(); // Assert const childData = await umbracoApi.document.getChildren(contentId); @@ -87,6 +88,7 @@ test('can create multiple child nodes in a collection', async ({umbracoApi, umbr await umbracoUi.content.chooseDocumentType(childDocumentTypeName); await umbracoUi.content.enterContentName(secondChildContentName); await umbracoUi.content.clickSaveButton(); + await umbracoUi.content.isSuccessNotificationVisible(); // Assert const childData = await umbracoApi.document.getChildren(contentId); diff --git a/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithMediaPicker.spec.ts b/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithMediaPicker.spec.ts index 939b94c2f00d..a2b7caa7878c 100644 --- a/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithMediaPicker.spec.ts +++ b/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithMediaPicker.spec.ts @@ -68,7 +68,7 @@ test('can publish content with the media picker data type', async ({umbracoApi, await umbracoUi.content.clickSaveAndPublishButton(); // Assert - await umbracoUi.content.doesSuccessNotificationHaveText(NotificationConstantHelper.success.saved); + await umbracoUi.content.doesSuccessNotificationHaveText(NotificationConstantHelper.success.created); await umbracoUi.content.doesSuccessNotificationHaveText(NotificationConstantHelper.success.published); expect(await umbracoApi.document.doesNameExist(contentName)).toBeTruthy(); 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 expect(contentData.values[0].value[0].mediaTypeAlias).toEqual(mediaTypeName); expect(contentData.values[0].value[0].focalPoint).toBeNull(); expect(contentData.values[0].value[0].crops).toEqual([]); -}); \ No newline at end of file +}); diff --git a/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithTextarea.spec.ts b/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithTextarea.spec.ts index 54fc3c5f11d0..548ccea53626 100644 --- a/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithTextarea.spec.ts +++ b/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithTextarea.spec.ts @@ -84,7 +84,7 @@ test('cannot input the text that exceeds the allowed amount of characters', asyn // Arrange const maxChars = 100; const textExceedMaxChars = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam mattis porttitor orci id cursus. Nulla'; - const warningMessage = 'This field exceeds the allowed amount of characters'; + const warningMessage = 'The string length exceeds the maximum length of ' + maxChars + ' characters, 1 too many.'; const dataTypeId = await umbracoApi.dataType.createTextareaDataType(customDataTypeName, maxChars); const documentTypeId = await umbracoApi.documentType.createDocumentTypeWithPropertyEditor(documentTypeName, customDataTypeName, dataTypeId); await umbracoApi.document.createDefaultDocument(contentName, documentTypeId); diff --git a/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithTextstring.spec.ts b/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithTextstring.spec.ts index f834ae35de4c..62309b2836d8 100644 --- a/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithTextstring.spec.ts +++ b/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithTextstring.spec.ts @@ -14,7 +14,7 @@ test.beforeEach(async ({umbracoApi, umbracoUi}) => { }); test.afterEach(async ({umbracoApi}) => { - await umbracoApi.document.ensureNameNotExists(contentName); + await umbracoApi.document.ensureNameNotExists(contentName); await umbracoApi.documentType.ensureNameNotExists(documentTypeName); }); @@ -84,7 +84,7 @@ test('cannot input the text that exceeds the allowed amount of characters', asyn // Arrange const maxChars = 20; const textExceedMaxChars = 'Lorem ipsum dolor sit'; - const warningMessage = 'This field exceeds the allowed amount of characters'; + const warningMessage = 'The string length exceeds the maximum length of ' + maxChars + ' characters, 1 too many.'; const dataTypeId = await umbracoApi.dataType.createTextstringDataType(customDataTypeName, maxChars); const documentTypeId = await umbracoApi.documentType.createDocumentTypeWithPropertyEditor(documentTypeName, customDataTypeName, dataTypeId); await umbracoApi.document.createDefaultDocument(contentName, documentTypeId);