add more e2e tests (#851)

This commit is contained in:
Adina Parpalita
2018-12-04 18:33:50 +02:00
committed by Denys Vuika
parent e020dc4b77
commit d0ff69c5dc
18 changed files with 980 additions and 190 deletions

View File

@@ -58,11 +58,6 @@ export class Menu extends Component {
}
async closeMenu() {
// if (await this.backdrop.isPresent()) {
// return await this.backdrop.click();
// } else {
// return await browser.actions().mouseMove(browser.$('body'), { x: 0, y: 0 }).click().perform();
// }
return Utils.pressEscape();
}
@@ -148,7 +143,7 @@ export class Menu extends Component {
}
async isMenuItemPresent(title: string) {
return await this.component.element(by.cssContainingText(Menu.selectors.item, title)).isPresent();
return await browser.element(by.cssContainingText(Menu.selectors.item, title)).isPresent();
}
async isSubMenuItemPresent(title: string) {