From 3de2e8bba08953e092fb3924c35df0e14562b6ce Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 17 Feb 2026 09:47:52 +0000 Subject: [PATCH] test(e2e): wait for bootstrap before interaction in agent testability Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- tests/e2e/agent-testability.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/e2e/agent-testability.spec.ts b/tests/e2e/agent-testability.spec.ts index dc5d37ff..73658592 100644 --- a/tests/e2e/agent-testability.spec.ts +++ b/tests/e2e/agent-testability.spec.ts @@ -130,6 +130,10 @@ test.describe("Data-testid selectors are present", () => { }) => { await gotoApp(); + // Wait for the app to finish bootstrapping (evidenced by the disclaimer modal being loaded) + // This prevents a race condition where the login button click handler hasn't been attached yet. + await page.locator("#disclaimerModal").waitFor({ state: "attached" }); + // Open the login modal await page.locator('[data-testid="login-button"]').click();