mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-6066 ] playwright e2e other permissions (#3510)
* ACS-6066 other permissions test * ACS-6066 other permissions test remove protractor * ACS-6066 other permissions test remove protracto * ACS-6066 other permissions remove code Duplicate * ACS-6066 other permissions rebase * ACS-6066 other permissions code cleanup * code fix and remove protractor test * review code fix * review code fix * fail test code fix
This commit is contained in:
@@ -1,371 +0,0 @@
|
||||
/*!
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Alfresco Example Content Application
|
||||
*
|
||||
* This file is part of the Alfresco Example Content Application.
|
||||
* If the software was purchased under a paid Alfresco license, the terms of
|
||||
* the paid license agreement will prevail. Otherwise, the software is
|
||||
* provided under the following open source license terms:
|
||||
*
|
||||
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { BrowsingPage, SearchResultsPage, Utils } from '@alfresco/aca-testing-shared';
|
||||
import * as testData from './test-data-permissions';
|
||||
import * as testUtil from '../test-util';
|
||||
|
||||
const page = new BrowsingPage();
|
||||
const { dataTable, toolbar } = page;
|
||||
const searchResultsPage = new SearchResultsPage();
|
||||
const { searchInput } = searchResultsPage.pageLayoutHeader;
|
||||
|
||||
export function collaboratorTests(siteName?: string) {
|
||||
describe('available actions : ', () => {
|
||||
beforeEach(async () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await page.closeOpenDialogs();
|
||||
});
|
||||
|
||||
it('on File Libraries - [C297647]', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(siteName);
|
||||
await dataTable.waitForHeader();
|
||||
|
||||
const expectedToolbarPrimary = ['Shared Link Settings', 'Download', 'View', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = ['Edit Offline', 'Upload New Version', 'Remove Favorite', 'Copy', 'Manage Versions', 'Edit Aspects', 'Permissions'];
|
||||
|
||||
await testUtil.checkToolbarActions(testData.fileSharedFav.name, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('on Shared Files - [C297651]', async () => {
|
||||
await page.clickSharedFilesAndWait();
|
||||
|
||||
const expectedToolbarPrimary = ['Shared Link Settings', 'Download', 'View', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = ['Edit Offline', 'Upload New Version', 'Remove Favorite', 'Copy', 'Manage Versions', 'Edit Aspects', 'Permissions'];
|
||||
|
||||
await testUtil.checkToolbarActions(testData.fileSharedFav.name, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('on Favorites - [C297652]', async () => {
|
||||
await page.clickFavoritesAndWait();
|
||||
|
||||
const expectedToolbarPrimary = ['Shared Link Settings', 'Download', 'View', 'View Details', 'More Actions'];
|
||||
// TODO: investigate why 'Edit Offline' is not displayed and raise issue
|
||||
// TODO: remove 'Move' and 'Delete' when ACA-1737 is done
|
||||
const expectedToolbarMore = ['Upload New Version', 'Remove Favorite', 'Move', 'Copy', 'Delete', 'Manage Versions'];
|
||||
|
||||
await testUtil.checkToolbarActions(testData.fileSharedFav.name, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('on Search Results - [C297653]', async () => {
|
||||
await toolbar.clickSearchIconButton();
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.searchFor(testData.fileSharedFav.name);
|
||||
|
||||
const expectedToolbarPrimary = ['Shared Link Settings', 'Download', 'View', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = ['Edit Offline', 'Upload New Version', 'Remove Favorite', 'Copy', 'Manage Versions', 'Edit Aspects', 'Permissions'];
|
||||
|
||||
await testUtil.checkToolbarActions(testData.fileSharedFav.name, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
describe('available actions in the viewer : ', () => {
|
||||
it('file opened from File Libraries - [C297654]', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(siteName);
|
||||
await dataTable.waitForHeader();
|
||||
|
||||
const expectedToolbarPrimary = ['Activate full-screen mode', 'Shared Link Settings', 'Download', 'Print', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = [
|
||||
'Edit in Microsoft Office™',
|
||||
'Edit Offline',
|
||||
'Upload New Version',
|
||||
'Remove Favorite',
|
||||
'Copy',
|
||||
'Manage Versions',
|
||||
'Edit Aspects',
|
||||
'Permissions'
|
||||
];
|
||||
|
||||
await testUtil.checkViewerActions(testData.fileDocxSharedFav.name, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('file opened from Shared Files - [C297655]', async () => {
|
||||
await page.clickSharedFilesAndWait();
|
||||
|
||||
const expectedToolbarPrimary = ['Activate full-screen mode', 'Shared Link Settings', 'Download', 'Print', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = [
|
||||
'Edit in Microsoft Office™',
|
||||
'Edit Offline',
|
||||
'Upload New Version',
|
||||
'Remove Favorite',
|
||||
'Copy',
|
||||
'Manage Versions',
|
||||
'Edit Aspects',
|
||||
'Permissions'
|
||||
];
|
||||
|
||||
await testUtil.checkViewerActions(testData.fileDocxSharedFav.name, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('file opened from Favorites - [C297656]', async () => {
|
||||
await page.clickFavoritesAndWait();
|
||||
|
||||
const expectedToolbarPrimary = ['Activate full-screen mode', 'Shared Link Settings', 'Download', 'Print', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = [
|
||||
'Edit in Microsoft Office™',
|
||||
'Edit Offline',
|
||||
'Upload New Version',
|
||||
'Remove Favorite',
|
||||
'Copy',
|
||||
'Manage Versions',
|
||||
'Edit Aspects',
|
||||
'Permissions'
|
||||
];
|
||||
|
||||
await testUtil.checkViewerActions(testData.fileDocxSharedFav.name, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('file opened from Search Results - [C306992]', async () => {
|
||||
await toolbar.clickSearchIconButton();
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.searchFor(testData.fileDocxSharedFav.name);
|
||||
await searchResultsPage.waitForResults();
|
||||
|
||||
const expectedToolbarPrimary = ['Activate full-screen mode', 'Shared Link Settings', 'Download', 'Print', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = [
|
||||
'Edit in Microsoft Office™',
|
||||
'Edit Offline',
|
||||
'Upload New Version',
|
||||
'Remove Favorite',
|
||||
'Copy',
|
||||
'Manage Versions',
|
||||
'Edit Aspects',
|
||||
'Permissions'
|
||||
];
|
||||
|
||||
await testUtil.checkViewerActions(testData.fileDocxSharedFav.name, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
export function filesLockedByCurrentUser(siteName?: string) {
|
||||
describe('available actions : ', () => {
|
||||
beforeEach(async () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await page.closeOpenDialogs();
|
||||
});
|
||||
|
||||
it('on File Libraries - [C297657]', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(siteName);
|
||||
await dataTable.waitForHeader();
|
||||
|
||||
const expectedToolbarPrimary = ['Shared Link Settings', 'Download', 'View', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = ['Cancel Editing', 'Upload New Version', 'Remove Favorite', 'Copy', 'Manage Versions'];
|
||||
|
||||
await testUtil.checkToolbarActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('on Shared Files - [C297658]', async () => {
|
||||
await page.clickSharedFilesAndWait();
|
||||
|
||||
const expectedToolbarPrimary = ['Shared Link Settings', 'Download', 'View', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = ['Cancel Editing', 'Upload New Version', 'Remove Favorite', 'Copy', 'Manage Versions'];
|
||||
|
||||
await testUtil.checkToolbarActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('on Favorites - [C297659]', async () => {
|
||||
await page.clickFavoritesAndWait();
|
||||
|
||||
const expectedToolbarPrimary = ['Shared Link Settings', 'Download', 'View', 'View Details', 'More Actions'];
|
||||
// TODO: remove 'Move' and 'Delete' when ACA-1737 is fixed
|
||||
const expectedToolbarMore = ['Cancel Editing', 'Upload New Version', 'Remove Favorite', 'Move', 'Copy', 'Delete', 'Manage Versions'];
|
||||
|
||||
await testUtil.checkToolbarActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('on Search Results - [C297660]', async () => {
|
||||
await toolbar.clickSearchIconButton();
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.searchFor(testData.fileLockedByUser);
|
||||
await searchResultsPage.waitForResults();
|
||||
|
||||
const expectedToolbarPrimary = ['Shared Link Settings', 'Download', 'View', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = ['Cancel Editing', 'Upload New Version', 'Remove Favorite', 'Copy', 'Manage Versions'];
|
||||
|
||||
await testUtil.checkToolbarActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
describe('available actions in the viewer : ', () => {
|
||||
it('file opened from File Libraries - [C297661]', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(siteName);
|
||||
await dataTable.waitForHeader();
|
||||
|
||||
const expectedToolbarPrimary = ['Activate full-screen mode', 'Shared Link Settings', 'Download', 'Print', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = ['Cancel Editing', 'Upload New Version', 'Remove Favorite', 'Copy', 'Manage Versions'];
|
||||
|
||||
await testUtil.checkViewerActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('file opened from Shared Files - [C297662]', async () => {
|
||||
await page.clickSharedFilesAndWait();
|
||||
|
||||
const expectedToolbarPrimary = ['Activate full-screen mode', 'Shared Link Settings', 'Download', 'Print', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = ['Cancel Editing', 'Upload New Version', 'Remove Favorite', 'Copy', 'Manage Versions'];
|
||||
|
||||
await testUtil.checkViewerActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('file opened from Favorites - [C297663]', async () => {
|
||||
await page.clickFavoritesAndWait();
|
||||
|
||||
const expectedToolbarPrimary = ['Activate full-screen mode', 'Shared Link Settings', 'Download', 'Print', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = ['Cancel Editing', 'Upload New Version', 'Remove Favorite', 'Copy', 'Manage Versions'];
|
||||
|
||||
await testUtil.checkViewerActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('file opened from Search Results - [C306993]', async () => {
|
||||
await toolbar.clickSearchIconButton();
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.searchFor(testData.fileLockedByUser);
|
||||
await searchResultsPage.waitForResults();
|
||||
|
||||
const expectedToolbarPrimary = ['Activate full-screen mode', 'Shared Link Settings', 'Download', 'Print', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = ['Cancel Editing', 'Upload New Version', 'Remove Favorite', 'Copy', 'Manage Versions'];
|
||||
|
||||
await testUtil.checkViewerActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
export function filesLockedByOtherUser(siteName?: string) {
|
||||
describe('available actions : ', () => {
|
||||
beforeEach(async () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await page.closeOpenDialogs();
|
||||
});
|
||||
|
||||
it('on File Libraries - [C297664]', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(siteName);
|
||||
await dataTable.waitForHeader();
|
||||
|
||||
const expectedToolbarPrimary = ['Shared Link Settings', 'Download', 'View', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = ['Cancel Editing', 'Remove Favorite', 'Move', 'Copy', 'Delete', 'Manage Versions', 'Permissions'];
|
||||
|
||||
await testUtil.checkToolbarActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('on Shared Files - [C297665]', async () => {
|
||||
await page.clickSharedFilesAndWait();
|
||||
|
||||
const expectedToolbarPrimary = ['Shared Link Settings', 'Download', 'View', 'View Details', 'More Actions'];
|
||||
// TODO: investigate why 'Upload New Version' appears and raise issue
|
||||
const expectedToolbarMore = [
|
||||
'Cancel Editing',
|
||||
'Upload New Version',
|
||||
'Remove Favorite',
|
||||
'Move',
|
||||
'Copy',
|
||||
'Delete',
|
||||
'Manage Versions',
|
||||
'Permissions'
|
||||
];
|
||||
|
||||
await testUtil.checkToolbarActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('on Favorites - [C297666]', async () => {
|
||||
await page.clickFavoritesAndWait();
|
||||
|
||||
const expectedToolbarPrimary = ['Shared Link Settings', 'Download', 'View', 'View Details', 'More Actions'];
|
||||
// TODO: investigate why 'Cancel Editing' doesn't appear and raise issue
|
||||
// TODO: remove 'Upload New Version' when ACA-1737 is done
|
||||
const expectedToolbarMore = ['Upload New Version', 'Remove Favorite', 'Move', 'Copy', 'Delete', 'Manage Versions'];
|
||||
|
||||
await testUtil.checkToolbarActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('on Search Results - [C297667]', async () => {
|
||||
await toolbar.clickSearchIconButton();
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.searchFor(testData.fileLockedByUser);
|
||||
await searchResultsPage.waitForResults();
|
||||
|
||||
const expectedToolbarPrimary = ['Shared Link Settings', 'Download', 'View', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = ['Cancel Editing', 'Remove Favorite', 'Copy', 'Manage Versions', 'Permissions'];
|
||||
|
||||
await testUtil.checkToolbarActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
describe('available actions in the viewer : ', () => {
|
||||
it('file opened from File Libraries - [C297671]', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(siteName);
|
||||
await dataTable.waitForHeader();
|
||||
|
||||
const expectedToolbarPrimary = ['Activate full-screen mode', 'Shared Link Settings', 'Download', 'Print', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = ['Cancel Editing', 'Remove Favorite', 'Move', 'Copy', 'Delete', 'Manage Versions', 'Permissions'];
|
||||
|
||||
await testUtil.checkViewerActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('file opened from Shared Files - [C297672]', async () => {
|
||||
await page.clickSharedFilesAndWait();
|
||||
|
||||
const expectedToolbarPrimary = ['Activate full-screen mode', 'Shared Link Settings', 'Download', 'Print', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = ['Cancel Editing', 'Remove Favorite', 'Move', 'Copy', 'Delete', 'Manage Versions', 'Permissions'];
|
||||
|
||||
await testUtil.checkViewerActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('file opened from Favorites - [C297673]', async () => {
|
||||
await page.clickFavoritesAndWait();
|
||||
|
||||
const expectedToolbarPrimary = ['Activate full-screen mode', 'Shared Link Settings', 'Download', 'Print', 'View Details', 'More Actions'];
|
||||
const expectedToolbarMore = ['Cancel Editing', 'Remove Favorite', 'Move', 'Copy', 'Delete', 'Manage Versions', 'Permissions'];
|
||||
|
||||
await testUtil.checkViewerActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
|
||||
it('file opened from Search Results - [C306994]', async () => {
|
||||
await toolbar.clickSearchIconButton();
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.searchFor(testData.fileLockedByUser);
|
||||
await searchResultsPage.waitForResults();
|
||||
|
||||
const expectedToolbarPrimary = ['Activate full-screen mode', 'Shared Link Settings', 'Download', 'Print', 'View Details', 'More Actions'];
|
||||
// TODO: add 'Move' and 'Delete' when ACA-2319 is fixed
|
||||
const expectedToolbarMore = ['Cancel Editing', 'Remove Favorite', 'Copy', 'Manage Versions', 'Permissions'];
|
||||
|
||||
await testUtil.checkViewerActions(testData.fileLockedByUser, expectedToolbarPrimary, expectedToolbarMore);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
@@ -28,7 +28,6 @@ import { librariesTests } from './my-libraries';
|
||||
import { favoritesTests } from './favorites';
|
||||
import { searchResultsTests } from './search-results';
|
||||
import { sharedFilesTests } from './shared-files';
|
||||
import { collaboratorTests, filesLockedByCurrentUser, filesLockedByOtherUser } from './other-permissions';
|
||||
|
||||
describe('Special permissions : ', () => {
|
||||
const random = testData.random;
|
||||
@@ -37,7 +36,6 @@ describe('Special permissions : ', () => {
|
||||
|
||||
const userManager = `manager-${random}`;
|
||||
const userConsumer = `consumer-${random}`;
|
||||
const userCollaborator = `collaborator-${random}`;
|
||||
const userDemoted = `demoted-${random}`;
|
||||
|
||||
let fileDocxFavId: string;
|
||||
@@ -61,7 +59,6 @@ describe('Special permissions : ', () => {
|
||||
|
||||
const userManagerApi = new RepoClient(userManager, userManager);
|
||||
const userConsumerApi = new RepoClient(userConsumer, userConsumer);
|
||||
const userCollaboratorApi = new RepoClient(userCollaborator, userCollaborator);
|
||||
const userDemotedApi = new RepoClient(userDemoted, userDemoted);
|
||||
|
||||
const loginPage = new LoginPage();
|
||||
@@ -69,7 +66,6 @@ describe('Special permissions : ', () => {
|
||||
beforeAll(async () => {
|
||||
await adminApiActions.createUser({ username: userManager });
|
||||
await adminApiActions.createUser({ username: userConsumer });
|
||||
await adminApiActions.createUser({ username: userCollaborator });
|
||||
await adminApiActions.createUser({ username: userDemoted });
|
||||
|
||||
await managerActions.login(userManager, userManager);
|
||||
@@ -77,12 +73,10 @@ describe('Special permissions : ', () => {
|
||||
|
||||
const consumerFavoritesTotalItems = await userConsumerApi.favorites.getFavoritesTotalItems();
|
||||
const managerSearchTotalItems = await userManagerApi.search.getTotalItems(userManager);
|
||||
const collaboratorFavoritesTotalItems = await userCollaboratorApi.favorites.getFavoritesTotalItems();
|
||||
|
||||
await userManagerApi.sites.createSite(sitePrivate, SITE_VISIBILITY.PRIVATE);
|
||||
const docLibId = await userManagerApi.sites.getDocLibId(sitePrivate);
|
||||
await userManagerApi.sites.addSiteConsumer(sitePrivate, userConsumer);
|
||||
await userManagerApi.sites.addSiteCollaborator(sitePrivate, userCollaborator);
|
||||
await userManagerApi.sites.addSiteManager(sitePrivate, userDemoted);
|
||||
|
||||
await userManagerApi.upload.uploadFileWithRename(FILES.docxFile, docLibId, testData.fileDocx.name);
|
||||
@@ -130,8 +124,6 @@ describe('Special permissions : ', () => {
|
||||
fileGranularPermissionId
|
||||
]);
|
||||
|
||||
await userCollaboratorApi.favorites.addFavoritesByIds('file', [fileDocxSharedFavId, fileSharedFavId]);
|
||||
|
||||
await managerActions.lockNodes([fileLockedId, fileFavLockedId, fileSharedLockedId, fileSharedFavLockedId]);
|
||||
|
||||
await userManagerApi.nodes.setGranularPermission(fileGranularPermissionId, false, userConsumer, SITE_ROLES.SITE_MANAGER.ROLE);
|
||||
@@ -150,8 +142,7 @@ describe('Special permissions : ', () => {
|
||||
fileGranularPermissionId,
|
||||
fileLockedByUserId
|
||||
]),
|
||||
userManagerApi.search.waitForApi(userManager, { expect: managerSearchTotalItems + 14 }),
|
||||
userCollaboratorApi.favorites.waitForApi({ expect: collaboratorFavoritesTotalItems + 2 })
|
||||
userManagerApi.search.waitForApi(userManager, { expect: managerSearchTotalItems + 14 })
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -184,28 +175,4 @@ describe('Special permissions : ', () => {
|
||||
sharedFilesTests();
|
||||
});
|
||||
});
|
||||
|
||||
describe('Collaborator', () => {
|
||||
beforeAll(async () => {
|
||||
await loginPage.loginWith(userCollaborator);
|
||||
});
|
||||
|
||||
collaboratorTests(sitePrivate);
|
||||
});
|
||||
|
||||
describe('File locked - user is lock owner', () => {
|
||||
beforeAll(async () => {
|
||||
await loginPage.loginWith(userDemoted);
|
||||
});
|
||||
|
||||
filesLockedByCurrentUser(sitePrivate);
|
||||
});
|
||||
|
||||
describe('File locked by other user - user is manager', () => {
|
||||
beforeAll(async () => {
|
||||
await loginPage.loginWith(userManager);
|
||||
});
|
||||
|
||||
filesLockedByOtherUser(sitePrivate);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user