|
|
@@ -8,6 +8,8 @@ test("independent workbench connects, uploads, confirms and saves without a deve
|
|
|
await page.getByLabel("平台地址", { exact: true }).fill("https://research.example")
|
|
|
await page.getByLabel("API Key", { exact: true }).fill("test-only")
|
|
|
await page.getByRole("button", { name: "连接平台", exact: true }).click()
|
|
|
+ await expect(page.locator(".paas-topbar-chat-title")).toBeVisible()
|
|
|
+ await expect(page.getByText("任务后台执行 · 会话与草稿自动保存", { exact: true })).toHaveCount(0)
|
|
|
await page.getByRole("button", { name: "智能体", exact: true }).click()
|
|
|
await page.getByRole("button", { name: "与 科研助手 对话", exact: true }).click()
|
|
|
await page.getByRole("button", { name: "添加文件", exact: true }).click()
|
|
|
@@ -61,6 +63,8 @@ test("pause, resume and stop use the existing task without resubmission", async
|
|
|
await page.getByLabel("平台地址", { exact: true }).fill("https://research.example")
|
|
|
await page.getByLabel("API Key", { exact: true }).fill("test-only")
|
|
|
await page.getByRole("button", { name: "连接平台", exact: true }).click()
|
|
|
+ await expect(page.locator(".paas-topbar-chat-title")).toBeVisible()
|
|
|
+ await expect(page.getByText("任务后台执行 · 会话与草稿自动保存", { exact: true })).toHaveCount(0)
|
|
|
await page.getByRole("button", { name: "智能体", exact: true }).click()
|
|
|
await page.getByRole("button", { name: "与 科研助手 对话", exact: true }).click()
|
|
|
await page.getByRole("textbox", { name: "消息", exact: true }).fill("持续研究")
|
|
|
@@ -180,8 +184,8 @@ test("history hides unused agents, collapses groups and starts a new session fro
|
|
|
await expect(page.getByRole("heading", { name: "平台任务", exact: true })).toBeVisible()
|
|
|
await expect(page.getByRole("columnheader", { name: "时间", exact: true })).toBeVisible()
|
|
|
await page.locator(".paas-new-session").click()
|
|
|
- await expect(page.locator(".paas-topbar-leading span")).toHaveText("会话")
|
|
|
- await expect(page.locator(".paas-chat-header h1")).toHaveText("新会话")
|
|
|
+ await expect(page.locator(".paas-topbar-page")).toHaveText("会话")
|
|
|
+ await expect(page.locator(".paas-topbar-chat-title")).toHaveText("新会话")
|
|
|
})
|
|
|
|
|
|
test("agent directory filters locally and keeps distinct monograms", async ({ page }) => {
|
|
|
@@ -232,7 +236,7 @@ test("empty new sessions stay out of history and persistence", async ({ page })
|
|
|
await expect(sidebar.locator(".paas-session-items").getByRole("button", { name: "新会话", exact: true })).toHaveCount(
|
|
|
0,
|
|
|
)
|
|
|
- await expect(page.locator(".paas-chat-header h1")).toHaveText("新会话")
|
|
|
+ await expect(page.locator(".paas-topbar-chat-title")).toHaveText("新会话")
|
|
|
await page.reload()
|
|
|
await connect()
|
|
|
await expect(sidebar.locator(".paas-session-items").getByRole("button", { name: "新会话", exact: true })).toHaveCount(
|