Skip to content

Commit

Permalink
[ACA-4049] Improve check for content on lists (#6279)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Iulia Burcă committed Oct 26, 2020
1 parent 6d7d46e commit faacac6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
6 changes: 4 additions & 2 deletions lib/testing/src/lib/process-services/pages/task-list.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit faacac6

Please sign in to comment.