|
|
@@ -113,6 +113,7 @@ test("header actions stay aligned when the more menu opens", async ({ page }) =>
|
|
|
await page.getByLabel("API Key", { exact: true }).fill("test-only")
|
|
|
await page.getByRole("button", { name: "连接平台", exact: true }).click()
|
|
|
await expect(page.getByRole("button", { name: "刷新历史会话", exact: true })).toBeVisible()
|
|
|
+ await expect(page.locator(".paas-chat-header-actions")).toHaveCSS("display", "flex")
|
|
|
const settings = page.locator(".paas-chat-header-actions").getByRole("button", { name: "研究设置", exact: true })
|
|
|
const create = page.locator(".paas-chat-header-actions").getByRole("button", { name: "新会话", exact: true })
|
|
|
const more = page.locator(".paas-more-actions > summary")
|
|
|
@@ -196,7 +197,7 @@ test("history hides unused agents, collapses groups and starts a new session fro
|
|
|
await expect(page.locator(".paas-topbar-chat-title")).toHaveText("新会话")
|
|
|
})
|
|
|
|
|
|
-test("agent directory filters locally and keeps distinct monograms", async ({ page }) => {
|
|
|
+test("agent directory filters locally and keeps distinct illustrations", async ({ page }) => {
|
|
|
await page.goto("/e2e/paas/index.html?groups")
|
|
|
await page.getByLabel("平台地址", { exact: true }).fill("https://research.example")
|
|
|
await page.getByLabel("API Key", { exact: true }).fill("test-only")
|
|
|
@@ -207,7 +208,7 @@ test("agent directory filters locally and keeps distinct monograms", async ({ pa
|
|
|
await page.getByLabel("搜索智能体", { exact: true }).fill("未使用")
|
|
|
await expect(cards).toHaveCount(1)
|
|
|
await expect(cards.locator("h2")).toHaveText("未使用智能体")
|
|
|
- await expect(cards.locator(".paas-agent-monogram")).toHaveText("未")
|
|
|
+ await expect(cards.locator(".paas-agent-illustration")).toHaveAttribute("data-kind", "agent")
|
|
|
await page.getByLabel("搜索智能体", { exact: true }).fill("")
|
|
|
await expect(cards).toHaveCount(2)
|
|
|
})
|