Skip to content

Commit

Permalink
make waitTextGone function async
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-i committed Jul 4, 2023
1 parent 0aba3c5 commit 7ce12bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui-tests/helpers/SchedulerHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class SchedulerHelper {
/**
* Wait until there is no inner text on the page
*/
waitTextGone(str: string) {
this.page.waitForFunction(() => !document.documentElement.innerText.includes(str));
async waitTextGone(str: string) {
await this.page.waitForFunction(() => !document.documentElement.innerText.includes(str));
}
}

0 comments on commit 7ce12bd

Please sign in to comment.