tiny-vue_version0/examples/sites/demos/pc/app/numeric/blur-event.spec.ts

12 lines
356 B
TypeScript

import { test, expect } from '@playwright/test'
test('失焦事件', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('numeric#blur-event')
const numeric = page.getByRole('spinbutton')
await numeric.focus()
await numeric.blur()
await expect(page.getByText('blur事件')).toBeHidden()
})