Skip to content

Commit e7bd24c

Browse files
committed
Revert "test(rsc): skip flaky server-to-server lazy CSS tests"
This reverts commit 44e775c.
1 parent 44e775c commit e7bd24c

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,27 +1095,28 @@ function defineTest(f: Fixture) {
10951095
})
10961096

10971097
// Case 3: server -> lazy server with CSS
1098-
// Skipped: behavior is inconsistent across platforms (works on macOS, not on Linux)
1099-
test.skip('lazy css server to server @js', async ({ page }) => {
1098+
test('lazy css server to server @js', async ({ page }) => {
11001099
await page.goto(f.url())
11011100
await waitForHydration(page)
11021101
await expect(page.locator('.test-lazy-css-server-to-server')).toHaveText(
11031102
'lazy-css-server-to-server',
11041103
)
1104+
// CSS is never loaded (not even via JS)
11051105
await expect(page.locator('.test-lazy-css-server-to-server')).toHaveCSS(
11061106
'color',
1107-
'rgb(255, 165, 0)',
1107+
'rgb(0, 0, 0)',
11081108
)
11091109
})
11101110

1111-
testNoJs.skip('lazy css server to server @nojs', async ({ page }) => {
1111+
testNoJs('lazy css server to server @nojs', async ({ page }) => {
11121112
await page.goto(f.url())
11131113
await expect(page.locator('.test-lazy-css-server-to-server')).toHaveText(
11141114
'lazy-css-server-to-server',
11151115
)
1116+
// CSS is not included in SSR
11161117
await expect(page.locator('.test-lazy-css-server-to-server')).toHaveCSS(
11171118
'color',
1118-
'rgb(255, 165, 0)',
1119+
'rgb(0, 0, 0)',
11191120
)
11201121
})
11211122

0 commit comments

Comments
 (0)