|
|
@@ -13,6 +13,8 @@ test("independent workbench connects, uploads, confirms and saves without a deve
|
|
|
await page.getByRole("button", { name: "添加文件", exact: true }).click()
|
|
|
await expect(page.getByRole("button", { name: "移除材料.pdf", exact: true })).toBeVisible()
|
|
|
await page.getByRole("textbox", { name: "消息", exact: true }).fill("分析材料并制定研究计划")
|
|
|
+ await expect(page.getByText("草稿已保留", { exact: true })).toHaveCount(0)
|
|
|
+ await expect(page.locator(".paas-chat-caption")).toHaveCount(0)
|
|
|
await page.getByRole("textbox", { name: "消息", exact: true }).press("Enter")
|
|
|
await expect(page.getByRole("button", { name: "同意并继续", exact: true })).toBeVisible()
|
|
|
await expect(page.locator(".paas-result-live")).toBeVisible()
|
|
|
@@ -146,6 +148,7 @@ test("wide layout keeps messages, header and composer on one reading axis", asyn
|
|
|
const header = await box(".paas-chat-header")
|
|
|
const content = await box(".paas-chat-messages > div")
|
|
|
const composer = await box(".paas-composer")
|
|
|
+ expect((await box(".paas-agent-picker select"))?.width).toBeGreaterThan(200)
|
|
|
expect(content).toEqual(header)
|
|
|
expect(composer).toEqual(header)
|
|
|
expect(await page.evaluate(() => document.documentElement.scrollWidth)).toBe(1707)
|