Skip to content

Commit 04e4eb1

Browse files
committed
test: css
1 parent d03e000 commit 04e4eb1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,23 @@ function defineTest(f: Fixture, variant?: 'no-ssr') {
141141
0,
142142
)
143143
})
144+
145+
test('css @js', async ({ page }) => {
146+
await page.goto(f.url())
147+
await waitForHydration(page)
148+
await expect(page.locator('.read-the-docs')).toHaveCSS(
149+
'color',
150+
'rgb(136, 136, 136)',
151+
)
152+
})
153+
154+
testNoJs('css @nojs', async ({ page }) => {
155+
test.skip(variant === 'no-ssr')
156+
157+
await page.goto(f.url())
158+
await expect(page.locator('.read-the-docs')).toHaveCSS(
159+
'color',
160+
'rgb(136, 136, 136)',
161+
)
162+
})
144163
}

0 commit comments

Comments
 (0)