forked from opentiny/tiny-vue
13 lines
397 B
TypeScript
13 lines
397 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('页码按钮数量', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('pager#pager-count')
|
|
|
|
const demo = page.locator('#pager-count')
|
|
const pager = demo.locator('.tiny-pager')
|
|
const pageItem = pager.locator('.tiny-pager__pages li')
|
|
|
|
await expect(pageItem).toHaveCount(16)
|
|
})
|