What problem does it solve?
End-to-end snapshot tests fail on pull requests when UI output changes, and manually identifying, updating, and verifying each failed snapshot is repetitive and error-prone. This Skill automates the full rebase workflow from PR comment parsing to committing updated snapshots.
Core Features & Use Cases
- PR Comment Parsing: Uses the GitHub CLI to fetch the current PR and extract failed Playwright test filenames from the test results comment.
- Snapshot Regeneration: Rebuilds the application binary, then re-runs each failed spec with
--update-snapshots and verifies stability with a follow-up run without the flag.
- Review and Commit: Shows snapshot diffs via
git diff, checks they align with the PR's purpose, then commits and pushes the updated snapshots.
- Use Case: A PR changing the app's UI causes three Playwright snapshot tests to fail in CI. Run this Skill to parse the failures, regenerate the snapshots, verify they pass consistently, and push the updates back to the PR.
Quick Start
Rebase the failing E2E snapshots for the current pull request and push the updated snapshots.