dyad:e2e-rebase
Installation
SKILL.md
E2E Snapshot Rebase
Rebase E2E test snapshots based on failed tests from the PR comments.
Instructions
-
Get the current PR number using
gh pr view --json number --jq '.number' -
Fetch PR comments and look for the Playwright test results comment. Parse out the failed test filenames from either:
- The "Failed Tests" section (lines starting with
- \filename.spec.ts`) - The "Update Snapshot Commands" section (contains
npm run e2e e2e-tests/filename.spec.ts)
- The "Failed Tests" section (lines starting with
-
If no failed tests are found in the PR comments, inform the user and stop.
-
Build the application binary:
npm run build