Skip to content

Commit

Permalink
use Promise setTimeout because waitForTimeout has been removed
Browse files Browse the repository at this point in the history
  • Loading branch information
campersau committed Feb 7, 2024
1 parent e336b91 commit 023f080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clicktests/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class Environment {
return this.page.waitForSelector(selector, { hidden: true, timeout: timeout || 6000 });
}
wait(duration) {
return this.page.waitForTimeout(duration);
return new Promise((resolve) => setTimeout(resolve, duration));
}

type(text) {
Expand Down

0 comments on commit 023f080

Please sign in to comment.