[ACA-4049] Improve check for content on lists (#6279)

* Add waitTillContentLoaded in check method

Add waitTillContentLoaded() step in check Content Is Displayed By Column for process and task lists to prevent future failures because of the loading time.

* Add waitTillContentLoaded in check method

Add waitTillContentLoaded() step in check Content Is Not Displayed By Column for process and task lists to prevent future failures because of the loading time.
This commit is contained in:
Iulia Burcă 2020-10-26 19:41:30 +02:00 committed by GitHub
parent 6d7d46eeb8
commit faacac6c5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -56,11 +56,13 @@ export class ProcessListPage {
}
}
checkContentIsDisplayedByColumn(column: string, processName: string): Promise<void> {
async checkContentIsDisplayedByColumn(column: string, processName: string): Promise<void> {
await this.dataTable.waitTillContentLoaded();
return this.dataTable.checkContentIsDisplayed(column, processName);
}
checkContentIsNotDisplayedByColumn(column: string, processName: string): Promise<void> {
async checkContentIsNotDisplayedByColumn(column: string, processName: string): Promise<void> {
await this.dataTable.waitTillContentLoaded();
return this.dataTable.checkContentIsNotDisplayed(column, processName);
}

View File

@ -43,11 +43,13 @@ export class TaskListPage {
return this.dataTable.getRowsWithSameColumnValues('Name', taskName);
}
checkContentIsDisplayedByColumn(column: string, processName: string): Promise<void> {
async checkContentIsDisplayedByColumn(column: string, processName: string): Promise<void> {
await this.dataTable.waitTillContentLoaded();
return this.dataTable.checkContentIsDisplayed(column, processName);
}
checkContentIsNotDisplayedByColumn(column: string, processName: string): Promise<void> {
async checkContentIsNotDisplayedByColumn(column: string, processName: string): Promise<void> {
await this.dataTable.waitTillContentLoaded();
return this.dataTable.checkContentIsNotDisplayed(column, processName);
}