From fe671d79fddd0b5b9f2d04b529de87025a4098c7 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 9 Jul 2026 13:49:47 +0000 Subject: [PATCH 1/6] Fix sign-in race in Playwright global setup (FE-1171) The signin page fetches its Kratos login flow asynchronously after mount, and submitting before the flow has loaded throws without retrying, so the test's waitForURL never resolves. - global-setup: wait for the /self-service/login flow response (registered before page.goto so it can't be missed) before clicking Submit - signin page: disable the Submit button until the flow has loaded, so Playwright's actionability checks also cover this Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01VQLxSZtnPp3HfxFycFLwLY --- apps/hash-frontend/src/pages/signin.page.tsx | 3 +++ tests/hash-playwright/global-setup.ts | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/apps/hash-frontend/src/pages/signin.page.tsx b/apps/hash-frontend/src/pages/signin.page.tsx index 9226bf85fab..4a59c29acce 100644 --- a/apps/hash-frontend/src/pages/signin.page.tsx +++ b/apps/hash-frontend/src/pages/signin.page.tsx @@ -571,6 +571,9 @@ const SigninPage: NextPageWithLayout = () => {