test(e2e): wait for bootstrap before interaction in agent testability

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-17 09:47:52 +00:00
1 parent 8c7935c6d1
commit 3de2e8bba0
1 file changed
+4
+4
View File
@@ -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();