优化讲解展厅与对象列表视觉
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
lyf
2026-07-18 01:16:30 +08:00
parent b8ab414bac
commit 5a711377b0
16 changed files with 161 additions and 121 deletions

View File

@@ -55,15 +55,8 @@ test('hall goes directly to paged guide objects without outline requests', async
expect(layout.first.width).toBeCloseTo(layout.listWidth, 0)
expect(layout.second.y).toBeGreaterThan(layout.first.bottom)
}
const search = page.getByRole('textbox')
await search.fill('讲解对象21')
await expect(page.getByText('讲解对象21', { exact: true })).toBeVisible()
await search.fill('')
const audioFilter = page.getByText('有音频', { exact: true })
await audioFilter.click()
await expect(page.getByText('讲解对象1', { exact: true })).toBeVisible()
await expect(page.getByText('讲解对象2', { exact: true })).not.toBeVisible()
await page.getByText('全部', { exact: true }).click()
await expect(page.getByRole('textbox')).toHaveCount(0)
await expect(page.locator('.filter-chip')).toHaveCount(0)
await page.locator('.explain-scroll').hover()
await page.mouse.wheel(0, 10000)
await expect(page.getByText('讲解对象21', { exact: true })).toBeVisible()