From 7e9afb39b17b62f6d1ef046628d602500b5bca7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=9Awiderski?= Date: Wed, 6 May 2026 09:36:11 +0200 Subject: [PATCH] [ACS-11554] MNT-11554 automated (#5175) * [ACS-11554] MNT-11554 automated * [ACS-11554] package-lock.json reverted --- e2e/playwright/navigation/src/tests/sidebar.e2e.ts | 8 ++++++++ .../src/page-objects/components/sidenav.component.ts | 3 +++ projects/aca-playwright-shared/src/utils/config.ts | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/e2e/playwright/navigation/src/tests/sidebar.e2e.ts b/e2e/playwright/navigation/src/tests/sidebar.e2e.ts index 5741253e4..7dc59175d 100644 --- a/e2e/playwright/navigation/src/tests/sidebar.e2e.ts +++ b/e2e/playwright/navigation/src/tests/sidebar.e2e.ts @@ -83,4 +83,12 @@ test.describe('Sidebar', () => { await searchPage.sidenav.expandedSidenav.waitFor({ state: 'attached' }); 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); + }); }); diff --git a/projects/aca-playwright-shared/src/page-objects/components/sidenav.component.ts b/projects/aca-playwright-shared/src/page-objects/components/sidenav.component.ts index 039567c94..fa1f5d556 100644 --- a/projects/aca-playwright-shared/src/page-objects/components/sidenav.component.ts +++ b/projects/aca-playwright-shared/src/page-objects/components/sidenav.component.ts @@ -36,6 +36,7 @@ export class SidenavComponent extends BaseComponent { private readonly recentFiles = this.getChild(`[data-automation-id='app.navbar.recentFiles']`); private readonly favorites = this.getChild(`[data-automation-id='app.navbar.favorites']`); 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 sidenavExpand = this.page.locator(`[title='Expand navigation menu']`); public expandedSidenav = this.getChild(`[data-automation-id='expanded']`); @@ -69,6 +70,8 @@ export class SidenavComponent extends BaseComponent { return this.favorites; case SIDEBAR_LABELS.TRASH: return this.trash; + case SIDEBAR_LABELS.REPOSITORY: + return this.repository; default: return this.personalFiles; } diff --git a/projects/aca-playwright-shared/src/utils/config.ts b/projects/aca-playwright-shared/src/utils/config.ts index 640401ea1..b748a60e1 100644 --- a/projects/aca-playwright-shared/src/utils/config.ts +++ b/projects/aca-playwright-shared/src/utils/config.ts @@ -41,7 +41,8 @@ export const SIDEBAR_LABELS = { SHARED_FILES: 'Shared', RECENT_FILES: 'Recent Files', FAVORITES: 'Favorites', - TRASH: 'Trash' + TRASH: 'Trash', + REPOSITORY: 'Repository' }; export const SITE_ROLES = {