diff --git a/e2e/suites/navigation/sidebar.test.ts b/e2e/suites/navigation/sidebar.test.ts index b51edf149..882babd2c 100755 --- a/e2e/suites/navigation/sidebar.test.ts +++ b/e2e/suites/navigation/sidebar.test.ts @@ -118,25 +118,16 @@ describe('Sidebar', () => { it('[C217153] Favorites tooltip', async () => { await page.clickFavorites(); expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.FAVORITES)).toContain('View your favorite files and folders'); - - await header.collapseSideNav(); - expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.FAVORITES)).toContain('View your favorite files and folders'); }); it('[C217154] Trash tooltip', async () => { await page.clickTrash(); expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.TRASH)).toContain('View deleted files in the trash'); - - await header.collapseSideNav(); - 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'); - - await header.collapseSideNav(); - expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.FILE_LIBRARIES)).toContain('File Libraries'); }); it('[C289916] My Libraries tooltip', async () => { @@ -151,10 +142,6 @@ describe('Sidebar', () => { it('[C289917] Favorite Libraries tooltip', async () => { await page.goToFavoriteLibraries(); expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.FAVORITE_LIBRARIES)).toContain('Access my favorite libraries'); - - await header.collapseSideNav(); - await sidenav.clickLink(SIDEBAR_LABELS.FILE_LIBRARIES); - expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.FAVORITE_LIBRARIES)).toContain('Access my favorite libraries'); }); it('[C269095] default state is expanded', async () => { diff --git a/projects/aca-testing-shared/src/components/header/header.ts b/projects/aca-testing-shared/src/components/header/header.ts index 4ed1a4ec6..c8d30d4ad 100755 --- a/projects/aca-testing-shared/src/components/header/header.ts +++ b/projects/aca-testing-shared/src/components/header/header.ts @@ -35,7 +35,7 @@ import { BrowserActions } from '@alfresco/adf-testing'; export class Header extends Component { logoLink = this.byCss('.app-menu__title'); moreActions = browser.element(by.id('app.header.more')); - sidenavToggle = this.byCss(`[id='adf-sidebar-toggle-start']`); + sidenavToggle = this.byCss(`.sidenav-header-title-logo`); userInfo = new UserInfo(); menu = new Menu();