mirror of
https://github.com/software-mansion/argent.git
synced 2026-09-14 19:27:14 +08:00
df9848bd6b
Comparing two saved PNGs touches no device, but the tool refused outright on any platform missing from its own capability list — so visual regression testing was unavailable for Electron apps entirely, and for remote iOS and Vega too, even though the comparison never goes near a device. The list was a second copy of the one the `screenshot` tool keeps, and the two had drifted: a screenshot can be captured from five platforms, a diff was allowed on two. They are the same question — this tool's only device interaction is a screenshot — so they are now one shared object, which is what stops them drifting again. Live capture is the part that really is narrower, so that is where the limit now sits. Asking for one where the screenshot comes from a backend this tool does not drive says so, and points at the two-file form, instead of reporting that the whole tool is unsupported here. Those platforms also no longer request the simulator-server, which would have failed while resolving the service — before any of this tool's own code runs, so the caller would have seen the blueprint's error rather than one about screenshots. Where the simulator-server IS the backend it is still declared, so a wedged server can still be disposed and retried. Fixes #635