tiny-vue_version0/examples/sites/demos/pc/app/file-upload/custom-upload-tip.spec.ts

11 lines
356 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('file-upload#custom-upload-tip')
const tip = page.locator('.tiny-upload__tip')
await expect(tip).toHaveText('只能上传 jpg/png 文件且不超过500 kb')
})