tiny-vue/examples/sites/demos/pc/app/time-select/focus.spec.ts

11 lines
425 B
TypeScript

import { test, expect } from '@playwright/test'
test('事件', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('time-select#focus')
await page.getByRole('button', { name: '手动获取焦点' }).click()
// 需要先解决time-select的focus事件
// const focus = page.getByRole('textbox', { name: '选择时间' })
// await expect(focus).toBeFocused()
})