Skip to content

Commit 19541a3

Browse files
hi-ogawaclaude
andcommitted
test(rsc): assert lazy component renders correctly in SSR
The component HTML is rendered fine by SSR (class and text exist), only the CSS is missing. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent cf9eaa7 commit 19541a3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/plugin-rsc/e2e/basic.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,11 @@ function defineTest(f: Fixture) {
10591059

10601060
testNoJs('lazy client css @nojs', async ({ page }) => {
10611061
await page.goto(f.url())
1062-
// CSS from lazy client component is not included in SSR (FOUC)
1062+
// lazy component is rendered correctly in SSR
1063+
await expect(page.locator('.test-lazy-client-css')).toHaveText(
1064+
'lazy-client-css',
1065+
)
1066+
// but CSS from lazy client component is not included in SSR (FOUC)
10631067
await expect(page.locator('.test-lazy-client-css')).toHaveCSS(
10641068
'color',
10651069
'rgb(0, 0, 0)',

0 commit comments

Comments
 (0)