From aa9790ca5c06f289aede074148e900b383e3040f Mon Sep 17 00:00:00 2001 From: seaona <54408225+seaona@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:33:51 +0200 Subject: [PATCH] fix: add test id once event listener has been added (#173) * add test id once event listener has been added * add back line * remove space --------- Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com> --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index 39cf12f..1892b32 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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'); }