try fix e2e

This commit is contained in:
Denys Vuika
2023-03-01 12:00:27 +00:00
committed by Sheena Malhotra
parent 10b5afce29
commit 63bf55ffab
4 changed files with 2 additions and 17 deletions

View File

@@ -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> {

View File

@@ -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');
}