[ACA-1088] add tests for search results page and actions on search results (#1051)

* add tests for search results page and actions on search results

* fix selector and add more tests

* split unshare tests

* fix tests

* add more tests and TestRail ids
This commit is contained in:
Adina Parpalita
2019-04-03 20:49:34 +03:00
committed by Denys Vuika
parent b69ed7da28
commit deea3465e0
30 changed files with 1959 additions and 344 deletions

View File

@@ -25,6 +25,7 @@
import { browser, by, ElementFinder, ExpectedConditions as EC, until } from 'protractor';
import { BROWSER_WAIT_TIMEOUT, USE_HASH_STRATEGY } from './../configs';
import { Utils } from '../utilities/utils';
export abstract class Page {
protected static locators = {
@@ -81,6 +82,16 @@ export abstract class Page {
await browser.wait(EC.visibilityOf(this.dialogContainer), BROWSER_WAIT_TIMEOUT);
}
async isDialogOpen() {
return await browser.isElementPresent(this.dialogContainer);
}
async closeOpenDialogs() {
while (await this.isDialogOpen()) {
await Utils.pressEscape();
}
}
async refresh() {
await browser.refresh();
await this.waitForApp();