fix: refine task pagination controls
ci / gitleaks (push) Successful in 7s
ci / docker (push) Successful in 6m18s

This commit is contained in:
2026-09-21 06:30:52 +08:00
parent cbf307507c
commit c7bb9742f1
4 changed files with 13 additions and 14 deletions
@@ -39,7 +39,8 @@ test('task pagination stays below the list and returns to the list start after n
const pager = page.locator('.pager')
await expect(taskList.locator('.task-row')).toHaveCount(50)
await expect(pager).toBeVisible()
await expect(pager.locator('.pager-status')).toHaveText('1/ 2')
await expect(pager.locator('.pager-status')).toHaveText('1 / 2共 51 项')
await expect(page.locator('.list-page-meta')).toHaveCount(0)
const firstPageGeometry = await page.evaluate(() => {
const list = document.querySelector<HTMLElement>('.task-list')!.getBoundingClientRect()
@@ -81,7 +82,7 @@ test('task pagination stays below the list and returns to the list start after n
const focusOutline = await nextButton.evaluate(element => getComputedStyle(element).outlineStyle)
expect(focusOutline).not.toBe('none')
await nextButton.click()
await expect(pager.locator('.pager-status')).toHaveText('2/ 2')
await expect(pager.locator('.pager-status')).toHaveText('2 / 2共 51 项')
await expect(taskList.locator('.task-row')).toHaveCount(1)
const secondPageGeometry = await page.evaluate(() => {