test: attach demo to body (#11246)

This commit is contained in:
neverland 2022-11-12 18:20:03 +08:00 committed by GitHub
parent 9b513311c2
commit 80270138e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@ export function snapshotDemo(Demo: any, option: any = {}) {
'demo-block': EmptyComponent,
},
},
attachTo: document.body,
});
await later();