File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
packages/visualizer/src/component Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -231,11 +231,6 @@ export const generateAnimationScripts = (
231
231
}
232
232
}
233
233
234
- // remove assertion and query tasks
235
- tasksIncluded = tasksIncluded . filter (
236
- ( task ) => task . type !== 'Assertion' && task . type !== 'Query' ,
237
- ) ;
238
-
239
234
if ( tasksIncluded . length === 0 ) {
240
235
return null ;
241
236
}
@@ -411,6 +406,22 @@ export const generateAnimationScripts = (
411
406
subTitle,
412
407
} ) ;
413
408
}
409
+ } else {
410
+ // Handle normal tasks
411
+ const title = typeStr ( task ) ;
412
+ const subTitle = paramStr ( task ) ;
413
+ const screenshot = task . recorder ?. [ task . recorder . length - 1 ] ?. screenshot ;
414
+
415
+ if ( screenshot ) {
416
+ scripts . push ( {
417
+ type : 'img' ,
418
+ img : screenshot ,
419
+ duration : stillDuration ,
420
+ camera : fullPageCameraState ,
421
+ title,
422
+ subTitle,
423
+ } ) ;
424
+ }
414
425
}
415
426
if ( task . status !== 'finished' ) {
416
427
errorStateFlag = true ;
You can’t perform that action at this time.
0 commit comments