test(desktop): reuse browser E2E for hidden screenshot regression

Exercise the running app and browser MCP tools within the existing browser journey. Remove the separate Electron fixtures, npm script, and CI step.
This commit is contained in:
Mohamed Boudra
2026-09-10 20:55:54 +02:00
parent 4d9c2900b3
commit 97c473797b
6 changed files with 136 additions and 204 deletions
+5 -7
View File
@@ -77,13 +77,11 @@ including fresh, settled, 75-second soak, multi-tab, viewport, and full-page che
PNG sizes may be device-pixel scaled; on a Retina display the 1280x800 logical viewport
is usually saved as 2560x1600.
Run `npm run test:e2e:browser-throttling --workspace=@getpaseo/desktop` to verify
that hiding the window stops guest animation, viewport screenshots contain fresh
pixels, and restoring or closing the browser still works. Pass `-- --full-page` to
also run the below-viewport pixel assertion: this reproduces the existing
[full-page repetition bug](https://github.com/getpaseo/paseo/issues/3196), which the
capture harness's frame-availability checks do not detect.
On Linux, run it under `xvfb-run -a` when no display is available.
The existing `npm run test:e2e:browser-tabs --workspace=@getpaseo/desktop` journey
verifies that a hidden window stops guest animation, captures fresh viewport pixels,
and resumes animation after restoring the window. Its artifacts include the screenshot
and animation measurements. Full-page content correctness remains separately tracked in
[the full-page repetition bug](https://github.com/getpaseo/paseo/issues/3196).
## Mechanism