@midscene/visualizer 0.26.0 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -162,9 +162,6 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight) => {
|
|
|
162
162
|
tasksIncluded.push(execution.tasks[i]);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
tasksIncluded = tasksIncluded.filter(
|
|
166
|
-
(task2) => task2.type !== "Assertion" && task2.type !== "Query"
|
|
167
|
-
);
|
|
168
165
|
if (tasksIncluded.length === 0) {
|
|
169
166
|
return null;
|
|
170
167
|
}
|
|
@@ -195,7 +192,7 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight) => {
|
|
|
195
192
|
let initSubTitle = "";
|
|
196
193
|
let errorStateFlag = false;
|
|
197
194
|
tasksIncluded.forEach((task2, index) => {
|
|
198
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
195
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
199
196
|
if (errorStateFlag)
|
|
200
197
|
return;
|
|
201
198
|
if (index === 0) {
|
|
@@ -314,6 +311,20 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight) => {
|
|
|
314
311
|
subTitle
|
|
315
312
|
});
|
|
316
313
|
}
|
|
314
|
+
} else {
|
|
315
|
+
const title = typeStr(task2);
|
|
316
|
+
const subTitle = paramStr(task2);
|
|
317
|
+
const screenshot = (_n = (_m = task2.recorder) == null ? void 0 : _m[task2.recorder.length - 1]) == null ? void 0 : _n.screenshot;
|
|
318
|
+
if (screenshot) {
|
|
319
|
+
scripts.push({
|
|
320
|
+
type: "img",
|
|
321
|
+
img: screenshot,
|
|
322
|
+
duration: stillDuration,
|
|
323
|
+
camera: fullPageCameraState,
|
|
324
|
+
title,
|
|
325
|
+
subTitle
|
|
326
|
+
});
|
|
327
|
+
}
|
|
317
328
|
}
|
|
318
329
|
if (task2.status !== "finished") {
|
|
319
330
|
errorStateFlag = true;
|