File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -829,13 +829,17 @@ if (!isBuild) {
829
829
'parent:not-child' ,
830
830
)
831
831
832
- addFile ( childFile , originalChildFileCode )
833
- editFile ( parentFile , ( code ) =>
834
- code . replace (
835
- "export const childValue = 'not-child'" ,
836
- "export { value as childValue } from './child'" ,
837
- ) ,
838
- )
832
+ await untilBrowserLogAfter ( async ( ) => {
833
+ const loadPromise = page . waitForEvent ( 'load' )
834
+ addFile ( childFile , originalChildFileCode )
835
+ editFile ( parentFile , ( code ) =>
836
+ code . replace (
837
+ "export const childValue = 'not-child'" ,
838
+ "export { value as childValue } from './child'" ,
839
+ ) ,
840
+ )
841
+ await loadPromise
842
+ } , [ / c o n n e c t e d / ] )
839
843
await untilUpdated (
840
844
( ) => page . textContent ( '.file-delete-restore' ) ,
841
845
'parent:child' ,
You can’t perform that action at this time.
0 commit comments