From 64978da5bf6d2591a46c011a5bfe412e6da407f1 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Tue, 4 Aug 2026 11:12:47 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix(e2e):=20Step4=E6=A0=87=E9=A2=98heading?= =?UTF-8?q?=E7=AD=89=E5=BE=85=E8=B6=85=E6=97=B6=E4=BB=8E=E9=BB=98=E8=AE=A4?= =?UTF-8?q?5s=E5=A2=9E=E5=8A=A0=E5=88=B015s=EF=BC=8C=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E6=B8=B2=E6=9F=93=E5=BB=B6=E8=BF=9F=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/e2e/core-generation.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/e2e/core-generation.spec.ts b/apps/web/e2e/core-generation.spec.ts index d4e4fb6d8..afc997d2a 100755 --- a/apps/web/e2e/core-generation.spec.ts +++ b/apps/web/e2e/core-generation.spec.ts @@ -201,7 +201,7 @@ test.describe("Core generation flow", () => { await page.getByRole("button", { name: "下一步" }).click() // Step 4: title - await expect(page.getByRole("heading", { name: /选择标题/ })).toBeVisible() + await expect(page.getByRole("heading", { name: /选择标题/ })).toBeVisible({ timeout: 15000 }) const titleText = `E2E Test ${suffix}` await page.getByPlaceholder("输入自定义标题…").fill(titleText) await page.getByRole("button", { name: "下一步" }).click() @@ -297,3 +297,4 @@ test.describe("Core generation flow", () => { expect(Array.isArray(tasksData.items)).toBe(true) }) }) + -- 2.54.0 From 54ded9fc0ecf09c421fbe764925cbe27b21d5b07 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Tue, 4 Aug 2026 11:12:47 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix(test):=20useAuth=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E6=96=AD=E8=A8=80=E6=94=B9=E4=B8=BA/app/dash?= =?UTF-8?q?board=EF=BC=8C=E4=B8=8EuseAuth.ts=E5=AE=9E=E9=99=85=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E7=9B=AE=E6=A0=87=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/test/hooks/useAuth.test.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/test/hooks/useAuth.test.tsx b/apps/web/src/test/hooks/useAuth.test.tsx index 8e48c1aad..23d488ab5 100644 --- a/apps/web/src/test/hooks/useAuth.test.tsx +++ b/apps/web/src/test/hooks/useAuth.test.tsx @@ -107,7 +107,7 @@ describe("useAuth hooks", () => { }) expect(mockSetAuth).toHaveBeenCalled() - expect(mockNavigate).toHaveBeenCalledWith("/", { replace: true }) + expect(mockNavigate).toHaveBeenCalledWith("/app/dashboard", { replace: true }) }) it("登录成功后跳转到 login_redirect 指定的页面", async () => { @@ -198,3 +198,4 @@ describe("useAuth hooks", () => { }) }) }) + -- 2.54.0 From 0b98d05b8198c16d49d80d1cc7ca8085a9717417 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Tue, 4 Aug 2026 12:19:05 +0800 Subject: [PATCH 3/3] fix: prettier format useAuth.test.tsx --- apps/web/src/test/hooks/useAuth.test.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/web/src/test/hooks/useAuth.test.tsx b/apps/web/src/test/hooks/useAuth.test.tsx index 23d488ab5..e517f81f9 100644 --- a/apps/web/src/test/hooks/useAuth.test.tsx +++ b/apps/web/src/test/hooks/useAuth.test.tsx @@ -198,4 +198,3 @@ describe("useAuth hooks", () => { }) }) }) - -- 2.54.0