File tree 1 file changed +12
-8
lines changed
playground/ssr-vue/__tests__
1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -161,14 +161,18 @@ test('hydration', async () => {
161
161
expect ( await page . textContent ( 'button' ) ) . toMatch ( '1' )
162
162
} )
163
163
164
- test ( 'hmr' , async ( ) => {
165
- // This is test is flaky in Mac CI, but can't be reproduced locally. Wait until
166
- // network idle to avoid the issue. TODO: This may be caused by a bug when
167
- // modifying a file while loading, we should remove this guard
168
- await page . goto ( url , { waitUntil : 'networkidle' } )
169
- editFile ( 'src/pages/Home.vue' , ( code ) => code . replace ( 'Home' , 'changed' ) )
170
- await untilUpdated ( ( ) => page . textContent ( 'h1' ) , 'changed' )
171
- } )
164
+ test (
165
+ 'hmr' ,
166
+ async ( ) => {
167
+ // This is test is flaky in Mac CI, but can't be reproduced locally. Wait until
168
+ // network idle to avoid the issue. TODO: This may be caused by a bug when
169
+ // modifying a file while loading, we should remove this guard
170
+ await page . goto ( url , { waitUntil : 'networkidle' } )
171
+ editFile ( 'src/pages/Home.vue' , ( code ) => code . replace ( 'Home' , 'changed' ) )
172
+ await untilUpdated ( ( ) => page . textContent ( 'h1' ) , 'changed' )
173
+ } ,
174
+ { retry : 3 }
175
+ )
172
176
173
177
test ( 'client navigation' , async ( ) => {
174
178
await page . goto ( url )
You can’t perform that action at this time.
0 commit comments