From 5ab38c33221f99a43b81c438332611d559936b89 Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com> Date: Mon, 5 Oct 2026 18:26:37 +0900 Subject: [PATCH 1/2] test(rsc): wait for hydration in performance-track e2e Co-Authored-By: Claude Opus 5.5 --- packages/plugin-rsc/e2e/performance-track.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/plugin-rsc/e2e/performance-track.test.ts b/packages/plugin-rsc/e2e/performance-track.test.ts index 6c327db71..fcdc8051d 100644 --- a/packages/plugin-rsc/e2e/performance-track.test.ts +++ b/packages/plugin-rsc/e2e/performance-track.test.ts @@ -1,5 +1,6 @@ import { type CDPSession, expect, test } from '@playwright/test' import { useFixture } from './fixture' +import { waitForHydration } from './helper' test.describe('performance-track', () => { const f = useFixture({ root: 'examples/performance-track', mode: 'dev' }) @@ -14,6 +15,10 @@ test.describe('performance-track', () => { await startTracing(session) await page.goto(f.url()) + // Wait for hydration before navigating. The text below is already in the + // SSR HTML, and clicking before hydration does a full page load that + // drops the home page's performance tracks. + await waitForHydration(page) // Wait for the innermost step so the whole waterfall has resolved. await expect( page.getByText('SlowServerComponent resolved after 500ms'), From 66c99b3ef562630661c614f8fba73d6c4ef441cc Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com> Date: Mon, 5 Oct 2026 18:31:50 +0900 Subject: [PATCH 2/2] test(rsc): drop redundant hydration comment Co-Authored-By: Claude Opus 5.5 --- packages/plugin-rsc/e2e/performance-track.test.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/plugin-rsc/e2e/performance-track.test.ts b/packages/plugin-rsc/e2e/performance-track.test.ts index fcdc8051d..cfc39649c 100644 --- a/packages/plugin-rsc/e2e/performance-track.test.ts +++ b/packages/plugin-rsc/e2e/performance-track.test.ts @@ -15,9 +15,6 @@ test.describe('performance-track', () => { await startTracing(session) await page.goto(f.url()) - // Wait for hydration before navigating. The text below is already in the - // SSR HTML, and clicking before hydration does a full page load that - // drops the home page's performance tracks. await waitForHydration(page) // Wait for the innermost step so the whole waterfall has resolved. await expect(