V14 QA Fixed the failing tests due to UI changes (#15944)

* Bumped version of test helper

* Changed clickCreateButton to clickCreateLink due to UI changes

* Bumped version of json builder

* Changed delete folder method

* Bumped version of test helper

* Added skip tests since currently only can view relations
This commit is contained in:
Nhu Dinh
2024-04-02 14:39:01 +07:00
committed by GitHub
parent b3c25ca477
commit 892a39d39a
5 changed files with 16 additions and 16 deletions

View File

@@ -7,8 +7,8 @@
"name": "acceptancetest",
"hasInstallScript": true,
"dependencies": {
"@umbraco/json-models-builders": "^2.0.1 ",
"@umbraco/playwright-testhelpers": "^2.0.0-beta.21",
"@umbraco/json-models-builders": "^2.0.4",
"@umbraco/playwright-testhelpers": "^2.0.0-beta.25",
"camelize": "^1.0.0",
"dotenv": "^16.3.1",
"faker": "^4.1.0",
@@ -132,9 +132,9 @@
}
},
"node_modules/@umbraco/json-models-builders": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/@umbraco/json-models-builders/-/json-models-builders-2.0.1.tgz",
"integrity": "sha512-VS95Ssmb75lvMcZqr8W2oUUDVz4lFZereKTELmOL8T3vuFNs3Q5wsH5sE8WXdFkzO+b1Qqo7LP7Mk9szETxgvw==",
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/@umbraco/json-models-builders/-/json-models-builders-2.0.4.tgz",
"integrity": "sha512-h+9ABeHNeFC2LWZbnJaOQFQitIhg82axxSnvWfg2+4TknDQyBCECq2bO7eizlLzHtU1uGGxShTueCDz04asFGQ==",
"dependencies": {
"camelize": "^1.0.1",
"faker": "^6.6.6"
@@ -146,11 +146,11 @@
"integrity": "sha512-9tCqYEDHI5RYFQigXFwF1hnCwcWCOJl/hmll0lr5D2Ljjb0o4wphb69wikeJDz5qCEzXCoPvG6ss5SDP6IfOdg=="
},
"node_modules/@umbraco/playwright-testhelpers": {
"version": "2.0.0-beta.21",
"resolved": "https://registry.npmjs.org/@umbraco/playwright-testhelpers/-/playwright-testhelpers-2.0.0-beta.21.tgz",
"integrity": "sha512-XGjx0vDL+0qAsRh7WWMAUugmT4B2P10SRWRmxKe9F2U6bbB+ZFkgGu1rdLcVZANxW32R+m/dWkP8LqZp4DFPzA==",
"version": "2.0.0-beta.25",
"resolved": "https://registry.npmjs.org/@umbraco/playwright-testhelpers/-/playwright-testhelpers-2.0.0-beta.25.tgz",
"integrity": "sha512-+rZ8TEDEJQKI4573sMZpGp6t5E9cPXWQ5RPLKwZu/2jyNc1nVAi7ToUwl954RNhWGwxA3wCqYqx5zMPW6DOdgQ==",
"dependencies": {
"@umbraco/json-models-builders": "2.0.1",
"@umbraco/json-models-builders": "2.0.4",
"camelize": "^1.0.0",
"faker": "^4.1.0",
"form-data": "^4.0.0",

View File

@@ -20,8 +20,8 @@
"wait-on": "^7.2.0"
},
"dependencies": {
"@umbraco/json-models-builders": "^2.0.1 ",
"@umbraco/playwright-testhelpers": "^2.0.0-beta.21",
"@umbraco/json-models-builders": "^2.0.4",
"@umbraco/playwright-testhelpers": "^2.0.0-beta.25",
"camelize": "^1.0.0",
"dotenv": "^16.3.1",
"faker": "^4.1.0",

View File

@@ -20,7 +20,7 @@ test.describe('Dictionary tests', () => {
await umbracoUi.dictionary.goToSection(ConstantHelper.sections.dictionary);
// Act
await umbracoUi.dictionary.clickCreateButton();
await umbracoUi.dictionary.clickCreateLink();
await umbracoUi.dictionary.enterDictionaryName(dictionaryName);
await umbracoUi.dictionary.clickSaveButton();

View File

@@ -33,7 +33,7 @@ test.describe('Relation types tests', () => {
// TODO: when frontend is ready, verify the new relation type name is displayed in the Relation Types tree
});
test('can update name of a relation type', async ({umbracoApi, umbracoUi}) => {
test.skip('can update name of a relation type', async ({umbracoApi, umbracoUi}) => {
// Arrange
const wrongRelationTypeName = 'Updated Relation Type';
await umbracoApi.relationType.ensureNameNotExists(wrongRelationTypeName);
@@ -51,7 +51,7 @@ test.describe('Relation types tests', () => {
expect(await umbracoApi.relationType.doesNameExist(wrongRelationTypeName)).toBeFalsy();
});
test('can update direction value of a relation type', async ({umbracoApi, umbracoUi}) => {
test.skip('can update direction value of a relation type', async ({umbracoApi, umbracoUi}) => {
// Arrange
relationTypeId = await umbracoApi.relationType.create(relationTypeName, false, false, objectTypeId, objectTypeId);
@@ -66,7 +66,7 @@ test.describe('Relation types tests', () => {
expect(relationTypeData.isBidirectional).toEqual(true);
});
test('can update isDependency value of a relation type', async ({umbracoApi, umbracoUi}) => {
test.skip('can update isDependency value of a relation type', async ({umbracoApi, umbracoUi}) => {
// Arrange
const updatedObjectTypeName = 'Media';
relationTypeId = await umbracoApi.relationType.create(relationTypeName, false, false, objectTypeId, objectTypeId);

View File

@@ -37,7 +37,7 @@ test.describe('Partial View Folder tests', () => {
// Act
await umbracoUi.partialView.clickRootFolderCaretButton();
await umbracoUi.partialView.clickActionsMenuForPartialView(folderName);
await umbracoUi.partialView.deletePartialView();
await umbracoUi.partialView.deleteFolder();
// Assert
await umbracoUi.partialView.isSuccessNotificationVisible();