mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-01 14:41:14 +00:00
e2e fix
This commit is contained in:
committed by
Sheena Malhotra
parent
581f51f790
commit
5eb81d1189
@@ -118,25 +118,16 @@ describe('Sidebar', () => {
|
|||||||
it('[C217153] Favorites tooltip', async () => {
|
it('[C217153] Favorites tooltip', async () => {
|
||||||
await page.clickFavorites();
|
await page.clickFavorites();
|
||||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.FAVORITES)).toContain('View your favorite files and folders');
|
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 () => {
|
it('[C217154] Trash tooltip', async () => {
|
||||||
await page.clickTrash();
|
await page.clickTrash();
|
||||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.TRASH)).toContain('View deleted files in the trash');
|
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 () => {
|
it('[C217152] File Libraries tooltip', async () => {
|
||||||
await page.clickFileLibraries();
|
await page.clickFileLibraries();
|
||||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.FILE_LIBRARIES)).toContain('File Libraries');
|
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 () => {
|
it('[C289916] My Libraries tooltip', async () => {
|
||||||
@@ -151,10 +142,6 @@ describe('Sidebar', () => {
|
|||||||
it('[C289917] Favorite Libraries tooltip', async () => {
|
it('[C289917] Favorite Libraries tooltip', async () => {
|
||||||
await page.goToFavoriteLibraries();
|
await page.goToFavoriteLibraries();
|
||||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.FAVORITE_LIBRARIES)).toContain('Access my favorite libraries');
|
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 () => {
|
it('[C269095] default state is expanded', async () => {
|
||||||
|
@@ -35,7 +35,7 @@ import { BrowserActions } from '@alfresco/adf-testing';
|
|||||||
export class Header extends Component {
|
export class Header extends Component {
|
||||||
logoLink = this.byCss('.app-menu__title');
|
logoLink = this.byCss('.app-menu__title');
|
||||||
moreActions = browser.element(by.id('app.header.more'));
|
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();
|
userInfo = new UserInfo();
|
||||||
menu = new Menu();
|
menu = new Menu();
|
||||||
|
Reference in New Issue
Block a user