Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion tests/Umbraco.Tests.AcceptanceTest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"testSqlite": "npx playwright test DefaultConfig --grep-invert \"Users\"",
"all": "npx playwright test",
"createTest": "node createTest.js",
"smokeTest": "npx playwright test DefaultConfig/Users/Permissions/UserGroup/GranularPermissionsInContent",
"smokeTest": "npx playwright test DefaultConfig --grep \"@smoke\"",
"smokeTestSqlite": "npx playwright test DefaultConfig --grep \"@smoke\" --grep-invert \"Users\""
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ test('can create a empty document type folder', {tag: '@smoke'}, async ({umbraco

// Assert
await umbracoUi.documentType.waitForDocumentTypeToBeCreated();
const folder = await umbracoApi.documentType.getByName(documentFolderName);
expect(folder.name).toBe(documentFolderName);
expect(await umbracoApi.documentType.doesNameExist(documentFolderName)).toBeTruthy();
// Checks if the folder is in the root
await umbracoUi.documentType.reloadTree('Document Types');
await umbracoUi.documentType.clickCaretButtonForName('Document Types');
await umbracoUi.documentType.isDocumentTreeItemVisible(documentFolderName);
});

Expand All @@ -42,7 +41,7 @@ test('can delete a document type folder', {tag: '@smoke'}, async ({umbracoApi, u

// Assert
await umbracoUi.documentType.waitForDocumentTypeToBeDeleted();
await umbracoApi.documentType.doesNameExist(documentFolderName);
expect(await umbracoApi.documentType.doesNameExist(documentFolderName)).toBeFalsy();
await umbracoUi.documentType.isDocumentTreeItemVisible(documentFolderName, false);
});

Expand All @@ -62,8 +61,8 @@ test('can rename a document type folder', async ({umbracoApi, umbracoUi}) => {

// Assert
await umbracoUi.documentType.waitForDocumentTypeToBeRenamed();
const folder = await umbracoApi.documentType.getByName(documentFolderName);
expect(folder.name).toBe(documentFolderName);
expect(await umbracoApi.documentType.doesNameExist(oldFolderName)).toBeFalsy();
expect(await umbracoApi.documentType.doesNameExist(documentFolderName)).toBeTruthy();
await umbracoUi.documentType.isDocumentTreeItemVisible(oldFolderName, false);
await umbracoUi.documentType.isDocumentTreeItemVisible(documentFolderName);
});
Expand All @@ -85,8 +84,7 @@ test('can create a document type folder in a folder', async ({umbracoApi, umbrac

// Assert
await umbracoUi.documentType.waitForDocumentTypeToBeCreated();
const folder = await umbracoApi.documentType.getByName(childFolderName);
expect(folder.name).toBe(childFolderName);
expect(await umbracoApi.documentType.doesNameExist(childFolderName)).toBeTruthy();
// Checks if the parentFolder contains the ChildFolder as a child
const parentFolder = await umbracoApi.documentType.getChildren(parentFolderId);
expect(parentFolder[0].name).toBe(childFolderName);
Expand Down