Skip to content

Commit

Permalink
Add more missing await on Page.evaluate calls
Browse files Browse the repository at this point in the history
  • Loading branch information
KuSh committed May 14, 2024
1 parent 2fcc188 commit 561d598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/playwright/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ export default class AxeBuilder {
'Please make sure that you have popup blockers disabled.'
);

blankPage.evaluate(this.script());
blankPage.evaluate(await this.axeConfigure());
await blankPage.evaluate(this.script());
await blankPage.evaluate(await this.axeConfigure());

// evaluate has a size limit on the number of characters so we'll need
// to split partialResults into chunks if it exceeds that limit.
Expand Down

0 comments on commit 561d598

Please sign in to comment.