11 lines
355 B
TypeScript
11 lines
355 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('自定义触发文件选项框', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('http://localhost:7130/pc/file-upload/custom-trigger')
|
|
|
|
const upload = page.locator('.tiny-upload')
|
|
|
|
await expect(upload).toHaveText('我是触发源')
|
|
})
|