fix: record full Mantis desktop smoke videos

This commit is contained in:
Peter Steinberger
2026-05-05 06:43:45 +01:00
parent 42a7d8485f
commit b4ff3aa73b
4 changed files with 4 additions and 2 deletions

View File

@@ -98,6 +98,7 @@ describe("mantis desktop browser smoke runtime", () => {
expect(remoteScript).toContain("ffmpeg");
expect(remoteScript).toContain('sudo apt-get update -y >>"$out/apt.log" 2>&1 || true');
expect(remoteScript).toContain("desktop-browser-smoke.mp4");
expect(remoteScript).not.toContain("-video_size");
expect(remoteScript).toContain('url="file://$out/input.html"');
expect(remoteScript).toContain('"browserBinary": "$browser_bin"');
await expect(fs.readFile(result.screenshotPath ?? "", "utf8")).resolves.toBe("png");

View File

@@ -247,7 +247,7 @@ if command -v ffmpeg >/dev/null 2>&1; then
*.*) ;;
*) display_input="$display_input.0" ;;
esac
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 &
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 &
video_pid=$!
else
echo "ffmpeg missing; video artifact skipped" >"$out/ffmpeg.log"

View File

@@ -102,6 +102,7 @@ describe("mantis Slack desktop smoke runtime", () => {
expect(remoteScript).toContain("ffmpeg");
expect(remoteScript).toContain('sudo apt-get update -y >>"$out/apt.log" 2>&1 || true');
expect(remoteScript).toContain("slack-desktop-smoke.mp4");
expect(remoteScript).not.toContain("-video_size");
expect(remoteScript).toContain("openclaw qa slack");
expect(remoteScript).toContain("--scenario 'slack-canary'");
expect(remoteScript).toContain("OPENCLAW_MANTIS_SLACK_BROWSER_PROFILE_DIR");

View File

@@ -317,7 +317,7 @@ if command -v ffmpeg >/dev/null 2>&1; then
*.*) ;;
*) display_input="$display_input.0" ;;
esac
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 &
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 &
video_pid=$!
else
echo "ffmpeg missing; video artifact skipped" >"$out/ffmpeg.log"