Skip to content

Commit

Permalink
fix: add test id once event listener has been added (#173)
Browse files Browse the repository at this point in the history
* add test id once event listener has been added

* add back line

* remove space

---------

Co-authored-by: legobeat <[email protected]>
  • Loading branch information
seaona and legobeat authored Oct 8, 2024
1 parent 65bfe60 commit aa9790c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,7 @@ function start() {

window.location.href = suspectHref;
});

// To know when the event listener has been added, to mitigate an e2e race condition
continueLink.setAttribute('data-testid', 'unsafe-continue-loaded');
}

0 comments on commit aa9790c

Please sign in to comment.