This skill helps you rebase e2e test snapshots by extracting failed tests from PR comments and updating snapshots accordingly.
npx playbooks add skill dyad-sh/dyad --skill e2e-rebase
Rebase E2E test snapshots based on failed tests from the PR comments.
gh pr view --json number --jq '.number'- \filename.spec.ts`)npm run e2e e2e-tests/filename.spec.ts) npm run build
IMPORTANT: E2E tests run against the built binary. If any application code (anything outside of e2e-tests/) has changed, you MUST run this build step before running E2E tests, otherwise you'll be testing the old version.
PLAYWRIGHT_HTML_OPEN=never npm run e2e e2e-tests/<testFilename>.spec.ts -- --update-snapshots
--update-snapshots to verify they pass consistently: PLAYWRIGHT_HTML_OPEN=never npm run e2e e2e-tests/<testFilename>.spec.ts
If any test fails on this verification run, inform the user that the snapshots may be flaky and stop.
git diff on the snapshot files. git add e2e-tests/snapshots/
git commit -m "Update E2E snapshots"
git push
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.