Skip to content

Commit

Permalink
V14 QA Fixed DocumentType and MediaType tests (#16539)
Browse files Browse the repository at this point in the history
* Changed name of locator click

* fixed tests

* Bumped version of testHelpers

* Update tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Settings/DocumentType/DocumentTypeDesignTab.spec.ts

Co-authored-by: Nhu Dinh <150406148+nhudinh0309@users.noreply.github.com>

---------

Co-authored-by: Nhu Dinh <150406148+nhudinh0309@users.noreply.github.com>
  • Loading branch information
andr317c and nhudinh0309 authored Jun 7, 2024
1 parent 71199b3 commit 42ce64c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
8 changes: 4 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 @@ -22,7 +22,7 @@
},
"dependencies": {
"@umbraco/json-models-builders": "^2.0.5",
"@umbraco/playwright-testhelpers": "^2.0.0-beta.57",
"@umbraco/playwright-testhelpers": "^2.0.0-beta.58",
"camelize": "^1.0.0",
"dotenv": "^16.3.1",
"faker": "^4.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ test('can remove a composition form a document type', async ({umbracoApi, umbrac
await umbracoUi.documentType.clickCompositionsButton();
await umbracoUi.documentType.clickButtonWithName(compositionDocumentTypeName);
await umbracoUi.documentType.clickSubmitButton();
await umbracoUi.documentType.clickConfirmToSubmitButton();
await umbracoUi.documentType.clickSaveButton();

// Assert
Expand Down Expand Up @@ -420,7 +421,7 @@ test('can set appearance to label on top for a property in a document type', asy
// Act
await umbracoUi.documentType.goToDocumentType(documentTypeName);
await umbracoUi.documentType.clickEditorSettingsButton();
await umbracoUi.documentType.clickLabelOnTopButton();
await umbracoUi.documentType.clickLabelAboveButton();
await umbracoUi.documentType.clickUpdateButton();
await umbracoUi.documentType.clickSaveButton();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ test('can set appearance as label on top for property in a media type', async ({
// Act
await umbracoUi.mediaType.goToMediaType(mediaTypeName);
await umbracoUi.mediaType.clickEditorSettingsButton();
await umbracoUi.mediaType.clickLabelOnTopButton();
await umbracoUi.mediaType.clickLabelAboveButton();
await umbracoUi.mediaType.clickUpdateButton();
await umbracoUi.mediaType.clickSaveButton();

Expand Down

0 comments on commit 42ce64c

Please sign in to comment.