From bebb87b4b477e57d4801ad965659b28dc95e05bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Fri, 13 Dec 2024 14:52:23 +0900 Subject: [PATCH] test: fix flaky should reload test fail (#486) --- playground/vue/__tests__/vue.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/playground/vue/__tests__/vue.spec.ts b/playground/vue/__tests__/vue.spec.ts index 988efa7c..d7ec3e74 100644 --- a/playground/vue/__tests__/vue.spec.ts +++ b/playground/vue/__tests__/vue.spec.ts @@ -208,8 +208,11 @@ describe('hmr', () => { test('should reload when relies file changed', async () => { // rerender - editFile('Hmr.vue', (code) => code.replace('HMR', 'HMR updated')) await untilUpdated(() => page.textContent('h2.hmr'), 'HMR updated') + editFile('Hmr.vue', (code) => + code.replace('HMR updated', 'HMR updated updated'), + ) + await untilUpdated(() => page.textContent('h2.hmr'), 'HMR updated updated') await untilUpdated(() => page.textContent('.hmr-number'), '100') // reload