mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-16 18:12:50 +00:00
[ACS-12817] copilot review fixes 2
This commit is contained in:
committed by
Adam Świderski
parent
b96e6e6567
commit
ee20515f41
@@ -72,7 +72,7 @@ test.describe('Copy actions', () => {
|
||||
});
|
||||
|
||||
test.afterAll(async () => {
|
||||
await nodesApi.cancelCheckout([sourceFileId]);
|
||||
await nodesApi.cancelCheckout([sourceFileId, sourceFileInsideFolderId]);
|
||||
await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed');
|
||||
});
|
||||
|
||||
|
||||
@@ -66,6 +66,7 @@ test.describe('Move actions', () => {
|
||||
});
|
||||
|
||||
test.afterAll(async () => {
|
||||
await nodesApi.cancelCheckout([sourceFileId, sourceFileInsideFolderId]);
|
||||
await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed');
|
||||
});
|
||||
|
||||
|
||||
+1
-3
@@ -66,7 +66,6 @@ test.describe('Special permissions - File locked by other user, user is manager
|
||||
let managerNodeActions: NodesApi;
|
||||
let managerFavoritesActions: FavoritesApi;
|
||||
let managerSearchActions: SearchApi;
|
||||
let otherManagerNodeActions: NodesApi;
|
||||
let otherManagerShareActions: SharedLinksApi;
|
||||
let otherManagerFavoritesActions: FavoritesApi;
|
||||
let adminNodeActions: NodesApi;
|
||||
@@ -83,7 +82,7 @@ test.describe('Special permissions - File locked by other user, user is manager
|
||||
const managerSearchTotalItems = await managerSearchActions.getTotalItems(userManager);
|
||||
|
||||
managerLockedFile.id = (await managerNodeActions.createFile(managerLockedFile.name, docLibId, '', '', '', true, ['cm:versionable'])).entry.id;
|
||||
await otherManagerNodeActions.checkoutNodes([managerLockedFile.id]);
|
||||
await managerNodeActions.checkoutNodes([managerLockedFile.id]);
|
||||
lockedFileIds.push(managerLockedFile.id);
|
||||
await otherManagerShareActions.shareFileById(managerLockedFile.id);
|
||||
await favoritesActions.addFavoriteById('file', managerLockedFile.id);
|
||||
@@ -106,7 +105,6 @@ test.describe('Special permissions - File locked by other user, user is manager
|
||||
managerNodeActions = await NodesApi.initialize(userManager, userManager);
|
||||
managerFavoritesActions = await FavoritesApi.initialize(userManager, userManager);
|
||||
managerSearchActions = await SearchApi.initialize(userManager, userManager);
|
||||
otherManagerNodeActions = await NodesApi.initialize(otherManager, otherManager);
|
||||
otherManagerShareActions = await SharedLinksApi.initialize(otherManager, otherManager);
|
||||
otherManagerFavoritesActions = await FavoritesApi.initialize(otherManager, otherManager);
|
||||
adminNodeActions = await NodesApi.initialize('admin');
|
||||
|
||||
Reference in New Issue
Block a user