fix: refine task pagination controls
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user