mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 17:10:07 +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
GitHub Workflows
Naming Convention
Workflow files follow a consistent naming pattern: <prefix>-<descriptive-name>.yaml
Category Prefixes
| Prefix | Purpose | Example |
|---|---|---|
ci- |
Testing, linting, validation | ci-tests-e2e.yaml |
release- |
Version management, publishing | release-version-bump.yaml |
pr- |
PR automation (triggered by labels) | pr-claude-review.yaml |
api- |
External Api type generation | api-update-registry-api-types.yaml |
i18n- |
Internationalization updates | i18n-update-core.yaml |
Documentation
Each workflow file contains comments explaining its purpose, triggers, and behavior. For specific details about what each workflow does, refer to the comments at the top of each .yaml file.
For GitHub Actions documentation, see Events that trigger workflows.