소스 검색

fix(app): align composer axis and illustration checks

241880436@seecoder.cn 3 일 전
부모
커밋
739468864e
2개의 변경된 파일과 4개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 2
      packages/app/e2e/paas/workbench.spec.ts
  2. 1 1
      packages/app/src/pages/paas/illustration.css

+ 3 - 2
packages/app/e2e/paas/workbench.spec.ts

@@ -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)
 })

+ 1 - 1
packages/app/src/pages/paas/illustration.css

@@ -81,7 +81,7 @@
   margin-top: 12px;
 }
 .paas-conversation-empty > :is(.paas-composer, .paas-suggestions) {
-  max-width: 860px;
+  max-width: 830px;
 }
 .paas-conversation > .paas-suggestions {
   margin-top: 20px;