tiny-vue/examples/sites/demos/pc/app/time-picker/name.spec.ts

10 lines
334 B
TypeScript

import { test, expect } from '@playwright/test'
test('原生属性name', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('time-picker#name')
const timePicker = page.getByRole('textbox', { name: '18:40:00' })
await expect(timePicker).toHaveAttribute('name', 'name')
})