[AAE-726] Add new return await rule (#5203)

* add new return await rule

* update tslint

* add lint exception
This commit is contained in:
Eugenio Romano
2019-10-30 19:29:43 +00:00
committed by Denys Vuika
parent a4730cd9cf
commit 2e046945c7
48 changed files with 308 additions and 305 deletions

View File

@@ -100,7 +100,7 @@ export class TasksCloudDemoPage {
}
async getActiveFilterName(): Promise<string> {
return await BrowserActions.getText(this.activeFilter);
return BrowserActions.getText(this.activeFilter);
}
customTaskFilter(filterName): TaskFiltersCloudComponentPage {
@@ -146,13 +146,13 @@ export class TasksCloudDemoPage {
async getNoOfSelectedRows(): Promise<number> {
await this.checkSelectedRowsIsDisplayed();
return await this.noOfSelectedRows.count();
return this.noOfSelectedRows.count();
}
async getSelectedTaskRowText(rowNo: string): Promise<string> {
await this.checkSelectedRowsIsDisplayed();
const row: ElementFinder = element(by.xpath(`//div[text()=' Selected Rows: ']//li[${rowNo}]`));
return await BrowserActions.getText(row);
return BrowserActions.getText(row);
}
async addActionIsDisplayed(): Promise<void> {