[ACS-12311] add e2e manage version nonreversible file (#5342)

* [ACS-12311] Add few more unit test for empty entry and aspectnames

* [ACS-12311] Fix manage versions for search-results

* [ACS-12311] add test to playwright

---------

Co-authored-by: Shivangi Shree <shivangi.shree@hyland.com>
This commit is contained in:
Akash Rathod
2026-08-13 06:59:03 +02:00
committed by GitHub
co-authored by Shivangi Shree
parent 86f2e48326
commit 04c3e067d0
5 changed files with 54 additions and 65 deletions
@@ -57,15 +57,19 @@ export class MatMenuComponent extends BaseComponent {
return menuElement.isVisible();
}
async verifyActualMoreActions(expectedToolbarMore: string[]): Promise<void> {
async getActualMoreActions(): Promise<string[]> {
await this.getRoot().waitFor();
const menus = await this.getChild('[role="menuitem"]').all();
const actualMoreActions: string[] = await Promise.all(
return Promise.all(
menus.map(async (button) => {
const title = await button.locator('span span').innerText();
return title || '';
})
);
}
async verifyActualMoreActions(expectedToolbarMore: string[]): Promise<void> {
const actualMoreActions = await this.getActualMoreActions();
for (const action of expectedToolbarMore) {
expect(
actualMoreActions.includes(action),
@@ -336,6 +336,25 @@ export const fileSharedFavLocked = {
export const fileGranularPermission = `file-${random}-granular.txt`;
export const fileLockedByUser = `file-${random}-my-locked.txt`;
// ---- non-versionable file (no cm:versionable aspect) ----
const consumerNotVersionableToolbarMore = ['Favorite', 'Copy'];
const consumerNotVersionableContextMenu = ['Share', 'Download', 'View', 'Favorite', 'Copy'];
const consumerViewerNotVersionableToolbarMore = ['Favorite', 'Copy'];
export const fileNotVersionable = {
name: `file-${random}-not-versionable.txt`,
description: 'file not shared, not fav, not office, not locked, not versionable - should not show Manage Versions',
contextMenu: consumerNotVersionableContextMenu,
toolbarPrimary: consumerToolbarPrimary,
toolbarMore: consumerNotVersionableToolbarMore,
viewerToolbarPrimary: consumerViewerToolbarPrimary,
viewerToolbarMore: consumerViewerNotVersionableToolbarMore,
searchToolbarPrimary: searchConsumerToolbarPrimary
};
// ---- folders ---
const consumerFolderContextMenu = ['Download', 'Favorite', 'Copy'];