fix: record full Mantis desktop smoke videos · openclaw/openclaw@b4ff3aa
steipete
·
2026-05-05
·
via Recent Commits to openclaw:main
File tree
extensions/qa-lab/src/mantis
| Original file line number | Diff line number | Diff line change |
|---|
@@ -98,6 +98,7 @@ describe("mantis desktop browser smoke runtime", () => {
|
98 | 98 | expect(remoteScript).toContain("ffmpeg"); |
99 | 99 | expect(remoteScript).toContain('sudo apt-get update -y >>"$out/apt.log" 2>&1 || true'); |
100 | 100 | expect(remoteScript).toContain("desktop-browser-smoke.mp4"); |
| 101 | +expect(remoteScript).not.toContain("-video_size"); |
101 | 102 | expect(remoteScript).toContain('url="file://$out/input.html"'); |
102 | 103 | expect(remoteScript).toContain('"browserBinary": "$browser_bin"'); |
103 | 104 | await expect(fs.readFile(result.screenshotPath ?? "", "utf8")).resolves.toBe("png"); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -247,7 +247,7 @@ if command -v ffmpeg >/dev/null 2>&1; then
|
247 | 247 | *.*) ;; |
248 | 248 | *) display_input="$display_input.0" ;; |
249 | 249 | esac |
250 | | - ffmpeg -hide_banner -loglevel error -y -f x11grab -video_size 1280x900 -framerate 15 -i "$display_input" -t 10 -pix_fmt yuv420p "$out/desktop-browser-smoke.mp4" >"$out/ffmpeg.log" 2>&1 & |
| 250 | + ffmpeg -hide_banner -loglevel error -y -f x11grab -framerate 15 -i "$display_input" -t 10 -pix_fmt yuv420p "$out/desktop-browser-smoke.mp4" >"$out/ffmpeg.log" 2>&1 & |
251 | 251 | video_pid=$! |
252 | 252 | else |
253 | 253 | echo "ffmpeg missing; video artifact skipped" >"$out/ffmpeg.log" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -102,6 +102,7 @@ describe("mantis Slack desktop smoke runtime", () => {
|
102 | 102 | expect(remoteScript).toContain("ffmpeg"); |
103 | 103 | expect(remoteScript).toContain('sudo apt-get update -y >>"$out/apt.log" 2>&1 || true'); |
104 | 104 | expect(remoteScript).toContain("slack-desktop-smoke.mp4"); |
| 105 | +expect(remoteScript).not.toContain("-video_size"); |
105 | 106 | expect(remoteScript).toContain("openclaw qa slack"); |
106 | 107 | expect(remoteScript).toContain("--scenario 'slack-canary'"); |
107 | 108 | expect(remoteScript).toContain("OPENCLAW_MANTIS_SLACK_BROWSER_PROFILE_DIR"); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -317,7 +317,7 @@ if command -v ffmpeg >/dev/null 2>&1; then
|
317 | 317 | *.*) ;; |
318 | 318 | *) display_input="$display_input.0" ;; |
319 | 319 | esac |
320 | | - ffmpeg -hide_banner -loglevel error -y -f x11grab -video_size 1440x1000 -framerate 15 -i "$display_input" -t 45 -pix_fmt yuv420p "$out/slack-desktop-smoke.mp4" >"$out/ffmpeg.log" 2>&1 & |
| 320 | + ffmpeg -hide_banner -loglevel error -y -f x11grab -framerate 15 -i "$display_input" -t 45 -pix_fmt yuv420p "$out/slack-desktop-smoke.mp4" >"$out/ffmpeg.log" 2>&1 & |
321 | 321 | video_pid=$! |
322 | 322 | else |
323 | 323 | echo "ffmpeg missing; video artifact skipped" >"$out/ffmpeg.log" |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。