mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 01:20:09 +00:00
## Summary - Adds `--grep @screenshot` to the Playwright command in the update-snapshots CI workflow - Skips ~146 non-screenshot tests that don't produce any snapshot files, reducing CI time and resource usage ## Details All tests that call `toHaveScreenshot` are already tagged with `@screenshot` (either at the `test.describe` or individual `test` level). The snapshot update job was previously running every test unnecessarily. The `--grep` CLI flag is ANDed with each project's existing `grep`/`grepInvert` settings, so all projects continue to work correctly: - `chromium`: `@screenshot` AND NOT `@mobile` - `chromium-2x`: `@screenshot` AND `@2x` - `mobile-chrome`: `@screenshot` AND `@mobile` ## Test plan - [x] Trigger the update-snapshots workflow on a PR with the "New Browser Test Expectations" label and verify only screenshot-tagged tests run - [x] Verify snapshot files are still correctly updated