MCPcopy
hub / github.com/formkit/auto-animate / assertNoConsoleErrors

Function assertNoConsoleErrors

tests/e2e/utils.ts:3–12  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

1import { expect, Page } from '@playwright/test'
2
3export async function assertNoConsoleErrors(page: Page) {
4 const errors: string[] = []
5 page.on('console', (msg) => {
6 if (msg.type() === 'error') {
7 errors.push(msg.text())
8 }
9 })
10 // Give tests time to run interactions before asserting later
11 return () => expect(errors, `Console errors: \n${errors.join('\n')}`).toEqual([])
12}
13
14export async function withAnimationObserver(page: Page, selector: string) {
15 await page.waitForSelector(selector)

Callers 8

animations.spec.tsFile · 0.90
offscreen.spec.tsFile · 0.90
frameworks.spec.tsFile · 0.90
disable.spec.tsFile · 0.90
vue-plugin.spec.tsFile · 0.90
vue-vif.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…