Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V15 QA cherrypicked tests from v14 #17540

Merged
merged 20 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
b10efcb
Cherrypicked tests from 14
andr317c Nov 11, 2024
f8ef388
Merge remote-tracking branch 'refs/remotes/origin/v15/dev' into v15/Q…
andr317c Nov 11, 2024
0f5f16f
Removed property
andr317c Nov 11, 2024
206da86
Merge remote-tracking branch 'origin/v15/dev' into v15/QA/cherrypick-…
andr317c Nov 12, 2024
43f5248
Merge remote-tracking branch 'refs/remotes/origin/v15/dev' into v15/Q…
andr317c Nov 12, 2024
287d653
Updates
andr317c Nov 12, 2024
9e29116
Merge remote-tracking branch 'origin/v15/QA/cherrypick-tests-from-v14…
andr317c Nov 13, 2024
182d719
Merge remote-tracking branch 'origin/v15/dev' into v15/QA/cherrypick-…
andr317c Nov 14, 2024
fa645ae
Merge remote-tracking branch 'origin/v15/dev' into v15/QA/cherrypick-…
andr317c Nov 14, 2024
82916a7
Updated tests
andr317c Nov 14, 2024
cbca847
Merge remote-tracking branch 'origin/v15/dev' into v15/QA/cherrypick-…
andr317c Nov 15, 2024
5129d9d
Skip test
andr317c Nov 15, 2024
b086133
Bumped version
andr317c Nov 15, 2024
8e9a582
Bumped version
andr317c Nov 15, 2024
e730b77
Merge remote-tracking branch 'origin/v15/dev' into v15/QA/cherrypick-…
andr317c Nov 15, 2024
d5bb642
Merge remote-tracking branch 'origin/v15/dev' into v15/QA/cherrypick-…
andr317c Nov 18, 2024
1827a78
Added smoke tag to tests
andr317c Nov 18, 2024
a702c24
Merge remote-tracking branch 'origin/v15/dev' into v15/QA/cherrypick-…
andr317c Nov 19, 2024
6bcd807
Merge branch 'v15/dev' into v15/QA/cherrypick-tests-from-v14
andr317c Nov 19, 2024
93b87ac
Merge branch 'v15/dev' into v15/QA/cherrypick-tests-from-v14
andr317c Nov 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<Stylesheets />
<Scripts />
<PartialViews />
<Macros />
<MacroPartialViews />
<DictionaryItems />
<Languages />
<DataTypes />
Expand Down
10 changes: 6 additions & 4 deletions tests/Umbraco.Tests.AcceptanceTest/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/Umbraco.Tests.AcceptanceTest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"dependencies": {
"@umbraco/json-models-builders": "^2.0.25",
"@umbraco/playwright-testhelpers": "^15.0.0-beta.6",
"@umbraco/playwright-testhelpers": "^15.0.1",
"camelize": "^1.0.0",
"dotenv": "^16.3.1",
"node-fetch": "^2.6.7"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ConstantHelper, test} from '@umbraco/playwright-testhelpers';
import {ConstantHelper, NotificationConstantHelper, test} from '@umbraco/playwright-testhelpers';
import {expect} from "@playwright/test";

let documentTypeId = '';
Expand Down Expand Up @@ -32,7 +32,7 @@ test('can create empty content', async ({umbracoApi, umbracoUi}) => {
await umbracoUi.content.clickSaveButton();

// Assert
await umbracoUi.content.isSuccessNotificationVisible();
await umbracoUi.content.doesSuccessNotificationHaveText(NotificationConstantHelper.success.created);
expect(await umbracoApi.document.doesNameExist(contentName)).toBeTruthy();
const contentData = await umbracoApi.document.getByName(contentName);
expect(contentData.variants[0].state).toBe(expectedState);
Expand All @@ -54,6 +54,8 @@ test('can save and publish empty content', {tag: '@smoke'}, async ({umbracoApi,

// Assert
await umbracoUi.content.doesSuccessNotificationsHaveCount(2);
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);
expect(contentData.variants[0].state).toBe(expectedState);
Expand All @@ -75,7 +77,7 @@ test('can create content', {tag: '@smoke'}, async ({umbracoApi, umbracoUi}) => {
await umbracoUi.content.clickSaveButton();

// Assert
await umbracoUi.content.isSuccessNotificationVisible();
await umbracoUi.content.doesSuccessNotificationHaveText(NotificationConstantHelper.success.created);
expect(await umbracoApi.document.doesNameExist(contentName)).toBeTruthy();
const contentData = await umbracoApi.document.getByName(contentName);
expect(contentData.values[0].value).toBe(contentText);
Expand All @@ -96,7 +98,7 @@ test('can rename content', async ({umbracoApi, umbracoUi}) => {
await umbracoUi.content.clickSaveButton();

// Assert
await umbracoUi.content.isSuccessNotificationVisible();
await umbracoUi.content.doesSuccessNotificationHaveText(NotificationConstantHelper.success.saved);
const updatedContentData = await umbracoApi.document.get(contentId);
expect(updatedContentData.variants[0].name).toEqual(contentName);
});
Expand All @@ -116,7 +118,7 @@ test('can update content', {tag: '@smoke'}, async ({umbracoApi, umbracoUi}) => {
await umbracoUi.content.clickSaveButton();

// Assert
await umbracoUi.content.isSuccessNotificationVisible();
await umbracoUi.content.doesSuccessNotificationHaveText(NotificationConstantHelper.success.saved);
const updatedContentData = await umbracoApi.document.get(contentId);
expect(updatedContentData.variants[0].name).toEqual(contentName);
expect(updatedContentData.values[0].value).toBe(contentText);
Expand All @@ -135,7 +137,7 @@ test('can publish content', async ({umbracoApi, umbracoUi}) => {
await umbracoUi.content.clickPublishButton();

// Assert
await umbracoUi.content.isSuccessNotificationVisible();
await umbracoUi.content.doesSuccessNotificationHaveText(NotificationConstantHelper.success.published);
const contentData = await umbracoApi.document.getByName(contentName);
expect(contentData.variants[0].state).toBe('Published');
});
Expand All @@ -145,8 +147,7 @@ test('can unpublish content', {tag: '@smoke'}, async ({umbracoApi, umbracoUi}) =
const dataTypeData = await umbracoApi.dataType.getByName(dataTypeName);
documentTypeId = await umbracoApi.documentType.createDocumentTypeWithPropertyEditor(documentTypeName, dataTypeName, dataTypeData.id);
contentId = await umbracoApi.document.createDocumentWithTextContent(contentName, documentTypeId, contentText, dataTypeName);
const publishData = {"publishSchedules":[{"culture":null}]};
await umbracoApi.document.publish(contentId, publishData);
await umbracoApi.document.publish(contentId);
await umbracoUi.goToBackOffice();
await umbracoUi.content.goToSection(ConstantHelper.sections.content);

Expand All @@ -156,7 +157,7 @@ test('can unpublish content', {tag: '@smoke'}, async ({umbracoApi, umbracoUi}) =
await umbracoUi.content.clickConfirmToUnpublishButton();

// Assert
await umbracoUi.content.isSuccessNotificationVisible();
await umbracoUi.content.doesSuccessNotificationHaveText(NotificationConstantHelper.success.unpublished);
const contentData = await umbracoApi.document.getByName(contentName);
expect(contentData.variants[0].state).toBe('Draft');
});
Loading
Loading