Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
Something went wrong. Try again.
495 B · 14 lines
TypeScript
123456789101112131415import { it } from 'vitest'import { page } from 'vitest/browser'
it('reports the action error when it arrives inside the grace', async () => { await page.screenshot({ path: 'delay-200.png' })}, 500)
it('names the pending action when it does not report back', async () => { await page.screenshot({ path: 'delay-2000.png' })}, 500)
it('reports an action due after the test without waiting for it', async () => { await page.screenshot({ path: 'delay-2000.png', timeout: 5000 })}, 500)