[ACA-1767] add tests for Viewer actions (#641)

* add tests for Viewer actions

* exclude e2e from auto-formatting for now

* update lock file
This commit is contained in:
Adina Parpalita
2018-09-18 18:54:33 +03:00
committed by Denys Vuika
parent f9e9057974
commit a9467dcc47
18 changed files with 2618 additions and 1481 deletions

View File

@@ -30,11 +30,11 @@ export abstract class Component {
component: ElementFinder;
constructor(selector: string, ancestor?: ElementFinder) {
const locator = by.css(selector);
const locator = selector;
this.component = ancestor
? ancestor.element(locator)
: element(locator);
? ancestor.$$(locator).first()
: browser.$$(locator).first();
}
wait() {