Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions e2e/react-start/rsc-query/tests/rsc-query-no-loader-css.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ test.describe('RSC Query Without Loader CSS Tests', () => {
'CSS Modules via Render-Time Suspense Query',
)

const backgroundColor = await container.evaluate(
(el) => getComputedStyle(el).backgroundColor,
)
expect(backgroundColor).toBe('rgb(224, 242, 254)')
await expect(container).toHaveCSS('background-color', 'rgb(224, 242, 254)')
})

test('client-side navigation keeps streamed query CSS intact', async ({
Expand All @@ -55,9 +52,6 @@ test.describe('RSC Query Without Loader CSS Tests', () => {
const container = page.getByTestId('rsc-css-modules-content')
await expect(container).toBeVisible()

const backgroundColor = await container.evaluate(
(el) => getComputedStyle(el).backgroundColor,
)
expect(backgroundColor).toBe('rgb(224, 242, 254)')
await expect(container).toHaveCSS('background-color', 'rgb(224, 242, 254)')
})
})
Loading