diff --git a/e2e/suites/actions-available/special-permissions/other-permissions.ts b/e2e/suites/actions-available/special-permissions/other-permissions.ts index c173626d3..d72c03140 100755 --- a/e2e/suites/actions-available/special-permissions/other-permissions.ts +++ b/e2e/suites/actions-available/special-permissions/other-permissions.ts @@ -269,7 +269,7 @@ export function filesLockedByOtherUser(siteName?: string) { }); it('on File Libraries - [C297664]', async () => { - await page.clickFileLibrariesAndWait(); + await page.goToMyLibrariesAndWait(); await dataTable.doubleClickOnRowByName(siteName); await dataTable.waitForHeader(); @@ -322,7 +322,7 @@ export function filesLockedByOtherUser(siteName?: string) { describe('available actions in the viewer : ', () => { it('file opened from File Libraries - [C297671]', async () => { - await page.clickFileLibrariesAndWait(); + await page.goToMyLibrariesAndWait(); await dataTable.doubleClickOnRowByName(siteName); await dataTable.waitForHeader(); diff --git a/e2e/suites/actions/delete/restore.test.ts b/e2e/suites/actions/delete/restore.test.ts index b6f4a8654..1ff2a0448 100755 --- a/e2e/suites/actions/delete/restore.test.ts +++ b/e2e/suites/actions/delete/restore.test.ts @@ -112,7 +112,7 @@ describe('Restore from Trash', () => { const action = await page.getSnackBarAction(); expect(action).toContain('View'); expect(await dataTable.isItemPresent(site)).toBe(false, `${site} was not removed from list`); - await page.clickFileLibrariesAndWait(); + await page.goToMyLibrariesAndWait(); expect(await page.dataTable.isItemPresent(site)).toBe(true, `${site} not displayed in list`); }); diff --git a/e2e/suites/info-drawer/library-properties.test.ts b/e2e/suites/info-drawer/library-properties.test.ts index 07f42fb40..1f4694b74 100755 --- a/e2e/suites/info-drawer/library-properties.test.ts +++ b/e2e/suites/info-drawer/library-properties.test.ts @@ -86,7 +86,7 @@ describe('Library properties', () => { }); beforeEach(async () => { - await page.clickFileLibrariesAndWait(); + await page.goToMyLibrariesAndWait(); }); afterEach(async () => { diff --git a/e2e/suites/navigation/breadcrumb.test.ts b/e2e/suites/navigation/breadcrumb.test.ts index 9631e9ac2..5872c1046 100755 --- a/e2e/suites/navigation/breadcrumb.test.ts +++ b/e2e/suites/navigation/breadcrumb.test.ts @@ -137,7 +137,7 @@ describe('Breadcrumb', () => { }); it('[C260967] File Libraries breadcrumb for a folder hierarchy', async () => { - await page.clickFileLibrariesAndWait(); + await page.goToMyLibrariesAndWait(); await page.dataTable.doubleClickOnRowByName(siteName); await page.dataTable.doubleClickOnRowByName(parentFromSite); await page.dataTable.doubleClickOnRowByName(subFolder1FromSite); diff --git a/e2e/suites/navigation/sidebar.test.ts b/e2e/suites/navigation/sidebar.test.ts index 882babd2c..0f41c6a0d 100755 --- a/e2e/suites/navigation/sidebar.test.ts +++ b/e2e/suites/navigation/sidebar.test.ts @@ -50,14 +50,12 @@ describe('Sidebar', () => { it('[C289902] navigate to Favorite Libraries', async () => { await page.goToFavoriteLibraries(); expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.FAVORITE_LIBRARIES); - expect(await sidenav.isActive(SIDEBAR_LABELS.FILE_LIBRARIES)).toBe(true, 'File Libraries link is not active'); expect(await sidenav.isActive(SIDEBAR_LABELS.FAVORITE_LIBRARIES)).toBe(true, 'Favorite Libraries link not active'); }); it('[C289901] navigate to My Libraries', async () => { await page.goToMyLibraries(); expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.MY_LIBRARIES); - expect(await sidenav.isActive(SIDEBAR_LABELS.FILE_LIBRARIES)).toBe(true, 'File Libraries link is not active'); expect(await sidenav.isActive(SIDEBAR_LABELS.MY_LIBRARIES)).toBe(true, 'My Libraries link not active'); }); @@ -125,18 +123,9 @@ describe('Sidebar', () => { expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.TRASH)).toContain('View deleted files in the trash'); }); - it('[C217152] File Libraries tooltip', async () => { - await page.clickFileLibraries(); - expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.FILE_LIBRARIES)).toContain('File Libraries'); - }); - it('[C289916] My Libraries tooltip', async () => { await page.goToMyLibraries(); expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.MY_LIBRARIES)).toContain('Access my libraries'); - - await header.collapseSideNav(); - await sidenav.clickLink(SIDEBAR_LABELS.FILE_LIBRARIES); - expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.MY_LIBRARIES)).toContain('Access my libraries'); }); it('[C289917] Favorite Libraries tooltip', async () => { diff --git a/e2e/suites/navigation/single-click.test.ts b/e2e/suites/navigation/single-click.test.ts index dd6b42952..893df74c1 100755 --- a/e2e/suites/navigation/single-click.test.ts +++ b/e2e/suites/navigation/single-click.test.ts @@ -117,7 +117,7 @@ describe('Single click on item name', () => { describe('on File Libraries', () => { beforeEach(async () => { - await page.clickFileLibrariesAndWait(); + await page.goToMyLibrariesAndWait(); }); it('[C284901] Hyperlink appears when mouse over a library', async () => { diff --git a/projects/aca-testing-shared/src/configs.ts b/projects/aca-testing-shared/src/configs.ts index 4184ab17c..4dc10c73b 100755 --- a/projects/aca-testing-shared/src/configs.ts +++ b/projects/aca-testing-shared/src/configs.ts @@ -47,7 +47,6 @@ export const APP_ROUTES = { // Sidebar labels export const SIDEBAR_LABELS = { PERSONAL_FILES: 'Personal Files', - FILE_LIBRARIES: 'File Libraries', MY_LIBRARIES: 'My Libraries', FAVORITE_LIBRARIES: 'Favorite Libraries', SHARED_FILES: 'Shared', diff --git a/projects/aca-testing-shared/src/pages/browsing-page.ts b/projects/aca-testing-shared/src/pages/browsing-page.ts index 24b6cc563..f8803f107 100755 --- a/projects/aca-testing-shared/src/pages/browsing-page.ts +++ b/projects/aca-testing-shared/src/pages/browsing-page.ts @@ -44,15 +44,6 @@ export class BrowsingPage extends Page { await this.dataTable.waitForHeader(); } - async clickFileLibraries(): Promise { - await this.sidenav.clickLink(SIDEBAR_LABELS.FILE_LIBRARIES); - } - - async clickFileLibrariesAndWait(): Promise { - await this.clickFileLibraries(); - await this.dataTable.waitForHeader(); - } - async goToFavoriteLibraries(): Promise { await this.sidenav.clickLink(SIDEBAR_LABELS.FAVORITE_LIBRARIES); } @@ -64,6 +55,7 @@ export class BrowsingPage extends Page { async goToMyLibraries(): Promise { await this.sidenav.clickLink(SIDEBAR_LABELS.MY_LIBRARIES); + await this.dataTable.waitForHeader(); } async goToMyLibrariesAndWait(): Promise {