|
|
@@ -194,6 +194,17 @@ test('keeps the canonical logo and yaoyao-webui composer geometry', async ({ pag
|
|
|
await expect(page.getByRole('button', { name: '会话操作' })).toBeVisible()
|
|
|
await page.getByRole('button', { name: '会话操作' }).click()
|
|
|
const sessionMenu = page.getByRole('menu', { name: '会话操作' })
|
|
|
+ await expect(sessionMenu.getByText('会话大纲', { exact: true })).toBeVisible()
|
|
|
+ await sessionMenu.getByText('会话大纲', { exact: true }).click()
|
|
|
+ const outline = page.getByRole('navigation', { name: '会话大纲' })
|
|
|
+ await expect(outline).toBeVisible()
|
|
|
+ await expect(outline.getByText('请检查今天生成的产物。MEDIA:/brand/AppIcon-1024.png', { exact: true })).toBeVisible()
|
|
|
+ await expect(outline.getByText('验收摘要', { exact: true })).toBeVisible()
|
|
|
+ await outline.getByRole('button', { name: '跳转到 验收摘要' }).click()
|
|
|
+ await expect(page.locator('[data-message-id="message-assistant"]')).toHaveClass(/message--revealed/)
|
|
|
+ await page.getByRole('button', { name: '关闭会话大纲' }).click()
|
|
|
+ await expect(outline).toBeHidden()
|
|
|
+ await page.getByRole('button', { name: '会话操作' }).click()
|
|
|
await expect(sessionMenu.getByText('取消置顶', { exact: true })).toBeVisible()
|
|
|
const unpinIcon = sessionMenu.getByRole('menuitem', { name: '取消置顶' }).locator('.app-icon')
|
|
|
await expect(unpinIcon.locator('path')).toHaveCount(2)
|
|
|
@@ -204,7 +215,7 @@ test('keeps the canonical logo and yaoyao-webui composer geometry', async ({ pag
|
|
|
await expect(page.getByText('置顶会话', { exact: true })).toHaveCount(0)
|
|
|
const menuBox = await sessionMenu.evaluate(element => element.getBoundingClientRect().toJSON())
|
|
|
expect(menuBox.width).toBeLessThanOrEqual(220)
|
|
|
- expect(menuBox.height).toBeLessThan(130)
|
|
|
+ expect(menuBox.height).toBeLessThan(165)
|
|
|
await expect(page.locator('.session-action-layer')).toHaveCount(0)
|
|
|
await sessionMenu.getByText('取消置顶', { exact: true }).click()
|
|
|
await expect(page.locator('.desktop-sidebar').getByText('已置顶 1', { exact: true })).toHaveCount(0)
|