Skip to content

Commit 134106c

Browse files
committed
test: tweak timeout
1 parent 5d71ba6 commit 134106c

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,10 @@ function defineTest(f: Fixture) {
10311031
'color',
10321032
'rgb(0, 0, 0)',
10331033
)
1034+
// wait longer for multiple edits
1035+
// resetting too fast seems to miss hmr update for fast machine
1036+
// (ubuntu / chromium on CI since playwright 1.60.0)
1037+
await page.waitForTimeout(100)
10341038
editor.reset()
10351039
await expect(page.getByTestId('css-module-client')).toHaveCSS(
10361040
'color',

packages/plugin-rsc/e2e/starter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ export function defineStarterTest(
145145
)
146146
await expect(card).toHaveCSS('background-color', 'rgb(255, 0, 200)')
147147

148+
await page.waitForTimeout(100)
148149
editor.reset()
149150
await expect(card).not.toHaveCSS('background-color', 'rgb(255, 0, 200)')
150151
})

0 commit comments

Comments
 (0)