forked from opentiny/tiny-vue
13 lines
379 B
TypeScript
13 lines
379 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('点击事件', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('tabs#tabs-events-click')
|
|
|
|
const items = page.getByRole('tab')
|
|
const modal = page.locator('.tiny-modal')
|
|
|
|
await items.nth(1).click()
|
|
await modal.waitFor({ state: 'attached', timeout: 100 })
|
|
})
|