mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
13 lines
374 B
TypeScript
13 lines
374 B
TypeScript
import { userEvent } from 'vitest/browser';
|
|
import { test } from 'vitest';
|
|
|
|
test('submitting a form reloads the iframe with "?" query', async () => {
|
|
const form = document.createElement('form')
|
|
document.body.append(form)
|
|
form.id = 'form'
|
|
const button = document.createElement('button')
|
|
button.id = 'button'
|
|
form.append(button)
|
|
await userEvent.click(button)
|
|
})
|