Skip to content

Commit de07270

Browse files
committed
wait for hydration int est
1 parent 800c8dd commit de07270

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

e2e/solid-start/server-functions/tests/server-functions.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,11 @@ test('factory', async ({ page }) => {
448448
test('primitives', async ({ page }) => {
449449
await page.goto('/primitives')
450450

451+
await page.waitForLoadState('networkidle')
452+
453+
// Wait for client-side hydration to complete
454+
await expect(page.locator('[data-testid^="expected-"]').first()).toBeVisible()
455+
451456
const testCases = await page
452457
.locator('[data-testid^="expected-"]')
453458
.elementHandles()

0 commit comments

Comments
 (0)