feat: add cached homepage information and manual AI interpretations

This commit is contained in:
yuxuanhui
2026-09-12 01:55:24 +08:00
parent 394438e753
commit d9fbaa7cf7
19 changed files with 1674 additions and 18 deletions
+3 -3
View File
@@ -68,7 +68,7 @@ test("model settings, text stream, contextual query, confirmation and preserved
.getByRole("textbox", { name: "模型 Base URL" })
.fill("https://model.test/v1");
await page
.getByRole("textbox", { name: "模型标识", exact: true })
.getByRole("textbox", { name: "alpha研究使用模型", exact: true })
.fill("test-model");
await page.getByLabel("模型 API Key").fill("synthetic-model-key");
await page.getByRole("button", { name: "保存模型配置" }).click();
@@ -254,7 +254,7 @@ test("Lark workspace keeps pagination, account details and chat usable at every
);
await page.getByRole("button", { name: "配置", exact: true }).click();
await page
.getByRole("textbox", { name: "模型标识", exact: true })
.getByRole("textbox", { name: "alpha研究使用模型", exact: true })
.fill("保留模型设置草稿");
await page.locator(".settings-drawer .semi-sidesheet-close").click();
await page.getByRole("button", { name: "切换研究助手" }).click();
@@ -272,7 +272,7 @@ test("Lark workspace keeps pagination, account details and chat usable at every
await chat.getByRole("button", { name: "收起研究助手" }).click();
await page.getByRole("button", { name: "配置", exact: true }).click();
await expect(
page.getByRole("textbox", { name: "模型标识", exact: true }),
page.getByRole("textbox", { name: "alpha研究使用模型", exact: true }),
).toHaveValue("保留模型设置草稿");
await page.screenshot({
path: "../output/playwright/settings-drawer.png",