mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACS-11554] MNT-11554 automated (#5175)
* [ACS-11554] MNT-11554 automated * [ACS-11554] package-lock.json reverted
This commit is contained in:
@@ -83,4 +83,12 @@ test.describe('Sidebar', () => {
|
|||||||
await searchPage.sidenav.expandedSidenav.waitFor({ state: 'attached' });
|
await searchPage.sidenav.expandedSidenav.waitFor({ state: 'attached' });
|
||||||
await expect(personalFiles.sidenav.expandedSidenav, 'Sidebar not expanded').toBeVisible();
|
await expect(personalFiles.sidenav.expandedSidenav, 'Sidebar not expanded').toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('[XAT-19271] Repository / Company Home button is accessible for all users on the sidebar', async ({ personalFiles }) => {
|
||||||
|
await personalFiles.navigate();
|
||||||
|
await personalFiles.sidenav.openPanel(SIDEBAR_LABELS.REPOSITORY);
|
||||||
|
expect(await personalFiles.sidenav.isActive(SIDEBAR_LABELS.REPOSITORY), 'Repository tab not active').toBe(true);
|
||||||
|
await personalFiles.dataTable.spinnerWaitForReload();
|
||||||
|
expect(await personalFiles.dataTable.isEmpty()).toBe(false);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ export class SidenavComponent extends BaseComponent {
|
|||||||
private readonly recentFiles = this.getChild(`[data-automation-id='app.navbar.recentFiles']`);
|
private readonly recentFiles = this.getChild(`[data-automation-id='app.navbar.recentFiles']`);
|
||||||
private readonly favorites = this.getChild(`[data-automation-id='app.navbar.favorites']`);
|
private readonly favorites = this.getChild(`[data-automation-id='app.navbar.favorites']`);
|
||||||
private readonly trash = this.getChild(`[data-automation-id='app.navbar.trashcan']`);
|
private readonly trash = this.getChild(`[data-automation-id='app.navbar.trashcan']`);
|
||||||
|
private readonly repository = this.getChild(`[data-automation-id="app.navbar.repositoryView"]`);
|
||||||
private readonly sidenavToggle = this.getChild(`.aca-sidenav-header-title-logo`);
|
private readonly sidenavToggle = this.getChild(`.aca-sidenav-header-title-logo`);
|
||||||
private readonly sidenavExpand = this.page.locator(`[title='Expand navigation menu']`);
|
private readonly sidenavExpand = this.page.locator(`[title='Expand navigation menu']`);
|
||||||
public expandedSidenav = this.getChild(`[data-automation-id='expanded']`);
|
public expandedSidenav = this.getChild(`[data-automation-id='expanded']`);
|
||||||
@@ -69,6 +70,8 @@ export class SidenavComponent extends BaseComponent {
|
|||||||
return this.favorites;
|
return this.favorites;
|
||||||
case SIDEBAR_LABELS.TRASH:
|
case SIDEBAR_LABELS.TRASH:
|
||||||
return this.trash;
|
return this.trash;
|
||||||
|
case SIDEBAR_LABELS.REPOSITORY:
|
||||||
|
return this.repository;
|
||||||
default:
|
default:
|
||||||
return this.personalFiles;
|
return this.personalFiles;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,8 @@ export const SIDEBAR_LABELS = {
|
|||||||
SHARED_FILES: 'Shared',
|
SHARED_FILES: 'Shared',
|
||||||
RECENT_FILES: 'Recent Files',
|
RECENT_FILES: 'Recent Files',
|
||||||
FAVORITES: 'Favorites',
|
FAVORITES: 'Favorites',
|
||||||
TRASH: 'Trash'
|
TRASH: 'Trash',
|
||||||
|
REPOSITORY: 'Repository'
|
||||||
};
|
};
|
||||||
|
|
||||||
export const SITE_ROLES = {
|
export const SITE_ROLES = {
|
||||||
|
|||||||
Reference in New Issue
Block a user