Skip to content

Commit bebb87b

Browse files
authored
test: fix flaky should reload test fail (#486)
1 parent 388403f commit bebb87b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

playground/vue/__tests__/vue.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,11 @@ describe('hmr', () => {
208208

209209
test('should reload when relies file changed', async () => {
210210
// rerender
211-
editFile('Hmr.vue', (code) => code.replace('HMR', 'HMR updated'))
212211
await untilUpdated(() => page.textContent('h2.hmr'), 'HMR updated')
212+
editFile('Hmr.vue', (code) =>
213+
code.replace('HMR updated', 'HMR updated updated'),
214+
)
215+
await untilUpdated(() => page.textContent('h2.hmr'), 'HMR updated updated')
213216
await untilUpdated(() => page.textContent('.hmr-number'), '100')
214217

215218
// reload

0 commit comments

Comments
 (0)