- remove some awaits

- add try catch
- small refactoring
This commit is contained in:
Adina Parpalita
2019-10-17 17:31:29 +03:00
parent 9fd47d3186
commit 227e05e3f9
39 changed files with 1243 additions and 905 deletions

View File

@@ -45,19 +45,19 @@ export class ManageVersionsDialog extends Component {
}
async waitForDialogToClose() {
return await browser.wait(EC.stalenessOf(this.title), BROWSER_WAIT_TIMEOUT);
await browser.wait(EC.stalenessOf(this.title), BROWSER_WAIT_TIMEOUT);
}
async isDialogOpen() {
return await browser.$(ManageVersionsDialog.selectors.root).isDisplayed();
return browser.$(ManageVersionsDialog.selectors.root).isDisplayed();
}
async getTitle() {
return await this.title.getText();
return this.title.getText();
}
async getText() {
return await this.content.getText();
return this.content.getText();
}
async clickClose() {