tiny-vue/examples/docs/resources/pc/demo/file-upload/mini-mode.spec.ts

11 lines
341 B
TypeScript

import { test, expect } from '@playwright/test'
test('mini模式', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('http://localhost:7130/pc/file-upload/mini-mode')
const upload = page.locator('.tiny-file-upload')
await expect(upload).toHaveAttribute('minimode', 'true')
})