Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

hydration.ts

7 lines208 Bytes

1import { expect, type Page } from '@playwright/test'
2​
3export async function waitForHydration(page: Page) {
4 await expect(page.getByTestId('app-hydrated')).toHaveText('hydrated', {
5 timeout: 15000,
6 })
7}