@midscene/visualizer 0.26.0 → 0.26.2-beta-20250812035614.0
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.
|
@@ -196,9 +196,6 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight) => {
|
|
|
196
196
|
tasksIncluded.push(execution.tasks[i]);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
tasksIncluded = tasksIncluded.filter(
|
|
200
|
-
(task2) => task2.type !== "Assertion" && task2.type !== "Query"
|
|
201
|
-
);
|
|
202
199
|
if (tasksIncluded.length === 0) {
|
|
203
200
|
return null;
|
|
204
201
|
}
|
|
@@ -229,7 +226,7 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight) => {
|
|
|
229
226
|
let initSubTitle = "";
|
|
230
227
|
let errorStateFlag = false;
|
|
231
228
|
tasksIncluded.forEach((task2, index) => {
|
|
232
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
229
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
233
230
|
if (errorStateFlag)
|
|
234
231
|
return;
|
|
235
232
|
if (index === 0) {
|
|
@@ -348,6 +345,20 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight) => {
|
|
|
348
345
|
subTitle
|
|
349
346
|
});
|
|
350
347
|
}
|
|
348
|
+
} else {
|
|
349
|
+
const title = (0, import_ui_utils.typeStr)(task2);
|
|
350
|
+
const subTitle = (0, import_ui_utils.paramStr)(task2);
|
|
351
|
+
const screenshot = (_n = (_m = task2.recorder) == null ? void 0 : _m[task2.recorder.length - 1]) == null ? void 0 : _n.screenshot;
|
|
352
|
+
if (screenshot) {
|
|
353
|
+
scripts.push({
|
|
354
|
+
type: "img",
|
|
355
|
+
img: screenshot,
|
|
356
|
+
duration: stillDuration,
|
|
357
|
+
camera: fullPageCameraState,
|
|
358
|
+
title,
|
|
359
|
+
subTitle
|
|
360
|
+
});
|
|
361
|
+
}
|
|
351
362
|
}
|
|
352
363
|
if (task2.status !== "finished") {
|
|
353
364
|
errorStateFlag = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/visualizer",
|
|
3
|
-
"version": "0.26.0",
|
|
3
|
+
"version": "0.26.2-beta-20250812035614.0",
|
|
4
4
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
5
5
|
"homepage": "https://midscenejs.com/",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"antd": "^5.21.6",
|
|
72
72
|
"buffer": "6.0.3",
|
|
73
73
|
"dayjs": "^1.11.11",
|
|
74
|
-
"@midscene/
|
|
75
|
-
"@midscene/
|
|
76
|
-
"@midscene/shared": "0.26.0"
|
|
74
|
+
"@midscene/core": "0.26.2-beta-20250812035614.0",
|
|
75
|
+
"@midscene/web": "0.26.2-beta-20250812035614.0",
|
|
76
|
+
"@midscene/shared": "0.26.2-beta-20250812035614.0"
|
|
77
77
|
},
|
|
78
78
|
"license": "MIT",
|
|
79
79
|
"scripts": {
|