tiny-vue/examples/sites/demos/pc/app/cascader/events.spec.ts

10 lines
445 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { test, expect } from '@playwright/test'
test('事件', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('cascader#events')
await page.getByRole('textbox', { name: '请选择' }).click()
await expect(page.getByText('当前触发了:visible-change 事件,当前状态为true')).toBeVisible()
await expect(page.getByText('当前触发了:focus 事件')).toBeVisible()
})