tiny-vue/examples/docs/resources/pc/demo/file-upload/custom-upload-tip.spec.ts

11 lines
378 B
TypeScript
Raw 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('http://localhost:7130/pc/file-upload/custom-upload-tip')
const tip = page.locator('.tiny-upload__tip')
await expect(tip).toHaveText('只能上传jpg/png文件且不超过500kb')
})