forked from opentiny/tiny-vue
15 lines
453 B
TypeScript
15 lines
453 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('BulletinBoard 选项卡标题(', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('bulletin-board#tab-title')
|
|
|
|
const preview = page.locator('#tab-title')
|
|
const tabTitle = preview.locator('.tiny-tabs__item')
|
|
|
|
await expect(tabTitle).toHaveCount(3)
|
|
for (let i = 0; i < 3; i++) {
|
|
await expect(tabTitle.nth(i)).toBeVisible()
|
|
}
|
|
})
|