mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-01 14:41:14 +00:00
try fix e2e
This commit is contained in:
committed by
Sheena Malhotra
parent
10b5afce29
commit
63bf55ffab
@@ -142,7 +142,7 @@ describe('Breadcrumb', () => {
|
||||
await page.dataTable.doubleClickOnRowByName(parentFromSite);
|
||||
await page.dataTable.doubleClickOnRowByName(subFolder1FromSite);
|
||||
await page.dataTable.doubleClickOnRowByName(subFolder2FromSite);
|
||||
const expectedItems = ['Favorite Libraries', siteName, parentFromSite, subFolder1FromSite, subFolder2FromSite];
|
||||
const expectedItems = ['My Libraries', siteName, parentFromSite, subFolder1FromSite, subFolder2FromSite];
|
||||
expect(await breadcrumb.getAllItems()).toEqual(expectedItems);
|
||||
});
|
||||
|
||||
|
@@ -92,25 +92,16 @@ describe('Sidebar', () => {
|
||||
it('[C217151] Personal Files tooltip', async () => {
|
||||
await page.clickPersonalFiles();
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.PERSONAL_FILES)).toContain('View your Personal Files');
|
||||
|
||||
await header.collapseSideNav();
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.PERSONAL_FILES)).toContain('View your Personal Files');
|
||||
});
|
||||
|
||||
it('[C213111] Shared Files tooltip', async () => {
|
||||
await page.clickSharedFiles();
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.SHARED_FILES)).toContain('View files that have been shared');
|
||||
|
||||
await header.collapseSideNav();
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.SHARED_FILES)).toContain('View files that have been shared');
|
||||
});
|
||||
|
||||
it('[C213167] Recent Files tooltip', async () => {
|
||||
await page.clickRecentFiles();
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.RECENT_FILES)).toContain('View files you recently edited');
|
||||
|
||||
await header.collapseSideNav();
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.RECENT_FILES)).toContain('View files you recently edited');
|
||||
});
|
||||
|
||||
it('[C217153] Favorites tooltip', async () => {
|
||||
|
@@ -43,7 +43,7 @@ export class Header extends Component {
|
||||
searchInput = new SearchInput();
|
||||
|
||||
constructor(ancestor?: string) {
|
||||
super('adf-layout-header', ancestor);
|
||||
super('app-sidenav-header', ancestor);
|
||||
}
|
||||
|
||||
async openMoreMenu(): Promise<void> {
|
||||
|
@@ -25,7 +25,6 @@
|
||||
|
||||
import { ElementFinder, by, element, browser, By } from 'protractor';
|
||||
import { Logger, BrowserActions } from '@alfresco/adf-testing';
|
||||
import { BROWSER_WAIT_TIMEOUT } from '../../configs';
|
||||
import { Menu } from '../menu/menu';
|
||||
import { Component } from '../component';
|
||||
|
||||
@@ -117,11 +116,6 @@ export class Sidenav extends Component {
|
||||
|
||||
async getLinkTooltip(name: string): Promise<string> {
|
||||
const link = this.getLinkLabel(name);
|
||||
const condition = () => link.getAttribute('title').then((value) => value && value.length > 0);
|
||||
|
||||
await browser.actions().mouseMove(link).perform();
|
||||
await browser.wait(condition, BROWSER_WAIT_TIMEOUT);
|
||||
|
||||
return link.getAttribute('title');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user