|
|
@@ -195,7 +195,10 @@ test('keeps the canonical logo and yaoyao-webui composer geometry', async ({ pag
|
|
|
await page.getByRole('button', { name: '会话操作' }).click()
|
|
|
const sessionMenu = page.getByRole('menu', { name: '会话操作' })
|
|
|
await expect(sessionMenu.getByText('取消置顶', { exact: true })).toBeVisible()
|
|
|
- await expect(sessionMenu.getByRole('menuitem', { name: '取消置顶' }).locator('path')).toHaveAttribute('d', /M9 4v6l-2 4v2h10/)
|
|
|
+ const unpinIcon = sessionMenu.getByRole('menuitem', { name: '取消置顶' }).locator('.app-icon')
|
|
|
+ await expect(unpinIcon.locator('path')).toHaveCount(2)
|
|
|
+ await expect(unpinIcon.locator('path').last()).toHaveAttribute('d', 'M4 4l16 16')
|
|
|
+ await expect(page.locator('.desktop-sidebar .sidebar-item--single-line').first().locator('.app-icon path')).toHaveAttribute('fill', 'currentColor')
|
|
|
await expect(sessionMenu.getByText('重命名', { exact: true })).toBeVisible()
|
|
|
await expect(sessionMenu.getByText('删除会话', { exact: true })).toBeVisible()
|
|
|
await expect(page.getByText('置顶会话', { exact: true })).toHaveCount(0)
|