mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-16 18:12:50 +00:00
[ACS-12817] Collaborator available actions fixes
This commit is contained in:
committed by
Adam Świderski
parent
ff7a3cff12
commit
b96e6e6567
+3
-12
@@ -48,19 +48,10 @@ const collaboratorEditRowToolbarMore = [
|
||||
'Edit Aspects',
|
||||
'Permissions'
|
||||
];
|
||||
const collaboratorSharedSearchRowToolbarMore = [
|
||||
'Edit Offline',
|
||||
'Upload New Version',
|
||||
'Favorite',
|
||||
'Copy',
|
||||
'Manage Versions',
|
||||
'Edit Aspects',
|
||||
'Permissions'
|
||||
];
|
||||
const favoritesCollaboratorToolbarMore = [
|
||||
'Edit Offline',
|
||||
'Upload New Version',
|
||||
'Favorite',
|
||||
'Remove Favorite',
|
||||
'Move',
|
||||
'Copy',
|
||||
'Delete',
|
||||
@@ -174,7 +165,7 @@ test.describe('Special permissions - Collaborator available actions : ', () => {
|
||||
|
||||
test('[XAT-4845] Toolbar - Actions appear correctly for a file - Collaborator - Shared', async ({ sharedPage, myLibrariesPage }) => {
|
||||
await sharedPage.navigate();
|
||||
await checkActionsAvailable(myLibrariesPage, item.name, collaboratorToolbarPrimary, collaboratorSharedSearchRowToolbarMore);
|
||||
await checkActionsAvailable(myLibrariesPage, item.name, collaboratorToolbarPrimary, collaboratorEditRowToolbarMore);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -196,7 +187,7 @@ test.describe('Special permissions - Collaborator available actions : ', () => {
|
||||
|
||||
test('[XAT-4847] Toolbar - Actions appear correctly for a file - Collaborator - Search Results', async ({ searchPage, myLibrariesPage }) => {
|
||||
await searchPage.searchWithin(item.random, 'filesAndFolders', 'formula');
|
||||
await checkActionsAvailable(myLibrariesPage, item.name, collaboratorToolbarPrimary, collaboratorSharedSearchRowToolbarMore);
|
||||
await checkActionsAvailable(myLibrariesPage, item.name, collaboratorToolbarPrimary, collaboratorEditRowToolbarMore);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
+1
-1
@@ -161,7 +161,7 @@ test.describe('Special permissions - File locked by other user, user is manager
|
||||
myLibrariesPage
|
||||
}) => {
|
||||
await favoritePage.navigate();
|
||||
await checkActionsAvailable(myLibrariesPage, managerLockedFile.name, collaboratorToolbarPrimary, lockOtherUserAdminFavToolbarMore);
|
||||
await checkActionsAvailable(myLibrariesPage, managerLockedFile.name, collaboratorToolbarPrimary, lockOtherUserManagerFavToolbarMore);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user