From 835e83f3f65427a5d8e8f1c7f6c141ac62c357af Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Sat, 8 Aug 2026 11:30:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20E2E=E6=B5=8B=E8=AF=95=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E6=AD=A5=E9=AA=A4placeholder=E4=B8=8D=E5=8C=B9=E9=85=8D+AI?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E9=80=89=E6=8B=A9=E6=A8=A1=E5=BC=8F=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - placeholder从"输入自定义标题…"改为"输入或从标题库选择…"(匹配Step4TitleSettings中AutoComplete的实际placeholder) - 新增AI自动选择模式检测:如果模板启用了aiAutoSelect,先点击toggle切换到手动模式再填写标题 - 修复staging E2E测试第214行超时180秒失败 --- apps/web/e2e/core-generation.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/web/e2e/core-generation.spec.ts b/apps/web/e2e/core-generation.spec.ts index bcd911050..faa47709c 100755 --- a/apps/web/e2e/core-generation.spec.ts +++ b/apps/web/e2e/core-generation.spec.ts @@ -210,8 +210,13 @@ test.describe("Core generation flow", () => { // Step 5: title await expect(page.getByRole("heading", { name: /选择标题/ })).toBeVisible({ timeout: 15000 }) + // 如果 AI 自动选择标题模式开启,先切换到手动模式以显示输入框 + const aiSwitch = page.locator(".xx-title-ai-toggle .xx-switch.active") + if (await aiSwitch.isVisible({ timeout: 2000 }).catch(() => false)) { + await aiSwitch.click() + } const titleText = `E2E Test ${suffix}` - await page.getByPlaceholder("输入自定义标题…").fill(titleText) + await page.getByPlaceholder("输入或从标题库选择…").fill(titleText) await page.getByRole("button", { name: "下一步" }).click() // Step 6: cover (默认 AI 智能选帧模式,直接下一步) -- 2.54.0