Skip to content

Commit

Permalink
fix: waiting for dom content to load initially to prevent annotation …
Browse files Browse the repository at this point in the history
…race condition
  • Loading branch information
Ryan Huellen committed Sep 17, 2024
1 parent 6901372 commit 20ecff9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export const _test = (
const { interactables, maxInteractions } = interactions;

do {
await page.waitForLoadState('domcontentloaded');

annotationCount += await _annotate(page, interactables, annotationCount);

const interaction = await _decide(
Expand Down

0 comments on commit 20ecff9

Please sign in to comment.