Skip to content

Commit 841e552

Browse files
Update e2e/react-start/css-modules/tests/css.prod.spec.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 35cb24d commit 841e552

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎e2e/react-start/css-modules/tests/css.prod.spec.ts‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ test.describe('CSS modules with cssCodeSplit disabled', () => {
7070
const card = page.getByTestId('module-card')
7171
await expect(card).toBeVisible()
7272

73-
backgroundColor = await card.evaluate(
74-
(el) => getComputedStyle(el).backgroundColor,
75-
)
76-
expect(backgroundColor).toBe('rgb(240, 253, 244)')
73+
await expect(async () => {
74+
const backgroundColor = await card.evaluate(
75+
(el) => getComputedStyle(el).backgroundColor,
76+
)
77+
expect(backgroundColor).toBe('rgb(240, 253, 244)')
78+
}).toPass({ timeout: 5000 })
7779
})
7880
})

0 commit comments

Comments
 (0)