mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-6398] folder action-available e2e test (#3537)
* [ACS-6398] folder action-avilable test * review changes * review changes * review changes
This commit is contained in:
@@ -216,6 +216,16 @@ export class DataTableComponent extends BaseComponent {
|
||||
}
|
||||
}
|
||||
|
||||
async selectMultiItem(name: string, name2: string): Promise<void> {
|
||||
await this.page.keyboard.down('Meta');
|
||||
let row = this.getRowByName(name);
|
||||
await row.locator('[title="Size"]').click();
|
||||
await row.locator('.adf-datatable-selected').waitFor({ state: 'attached' });
|
||||
row = this.getRowByName(name2);
|
||||
await row.locator('[title="Size"]').click();
|
||||
await row.locator('.adf-datatable-selected').waitFor({ state: 'attached' });
|
||||
}
|
||||
|
||||
async hasCheckMarkIcon(itemName: string): Promise<boolean> {
|
||||
const row = this.getRowByName(itemName);
|
||||
return await row.locator('.adf-datatable-selected').isVisible();
|
||||
|
@@ -23,3 +23,4 @@
|
||||
*/
|
||||
|
||||
export * from './test-data-permissions';
|
||||
export * from './test-data-files-folders';
|
||||
|
@@ -0,0 +1,61 @@
|
||||
/*!
|
||||
* 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 { Utils } from '@alfresco/playwright-shared';
|
||||
|
||||
const random = Utils.random();
|
||||
const multipleSelToolbarPrimary = ['Download', 'View Details', 'More Actions'];
|
||||
|
||||
// ---- folders ---
|
||||
|
||||
const folderContextMenu = ['Download', 'Edit', 'Favorite', 'Move', 'Copy', 'Delete', 'Edit Aspects', 'Permissions', 'Manage Rules'];
|
||||
const folderFavContextMenu = ['Download', 'Edit', 'Remove Favorite', 'Move', 'Copy', 'Delete', 'Edit Aspects', 'Permissions', 'Manage Rules'];
|
||||
const folderToolbarMore = ['Edit', 'Favorite', 'Move', 'Copy', 'Delete', 'Edit Aspects', 'Permissions', 'Manage Rules'];
|
||||
const folderFavToolbarMore = ['Edit', 'Remove Favorite', 'Move', 'Copy', 'Delete', 'Edit Aspects', 'Permissions', 'Manage Rules'];
|
||||
|
||||
export const folderFile = {
|
||||
name: `folderActions-${random}`,
|
||||
description: 'folder not favorite',
|
||||
contextMenu: folderContextMenu,
|
||||
toolbarPrimary: multipleSelToolbarPrimary,
|
||||
toolbarMore: folderToolbarMore
|
||||
};
|
||||
|
||||
export const folderFavFile = {
|
||||
name: `folderActions-fav-${random}`,
|
||||
contextMenu: folderFavContextMenu,
|
||||
toolbarPrimary: multipleSelToolbarPrimary,
|
||||
toolbarMore: folderFavToolbarMore
|
||||
};
|
||||
|
||||
// ---- multiple selection ---
|
||||
|
||||
const multipleSelContextMenu = ['Download', 'Favorite', 'Move', 'Copy', 'Delete', 'Permissions'];
|
||||
const multipleSelToolbarMore = ['Favorite', 'Move', 'Copy', 'Delete', 'Permissions'];
|
||||
|
||||
export const multipleSelFile = {
|
||||
contextMenu: multipleSelContextMenu,
|
||||
toolbarPrimary: multipleSelToolbarPrimary,
|
||||
toolbarMore: multipleSelToolbarMore
|
||||
};
|
Reference in New Issue
Block a user