Skip to main content

samba-e2e-rebase

Rebase E2E test snapshots based on failed tests from the PR comments.

소스 정보

저장소
criptogus/Samba-Builder
최근 소스 활동
2026년 9월 8일 15:30
감지된 SKILL.md 언어
영어
스타
1
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
samba:e2e-rebase
description
Rebase E2E test snapshots based on failed tests from the PR comments.
# E2E Snapshot Rebase Rebase E2E test snapshots based on failed tests from the PR comments. ## Instructions 1. Get the current PR number using `gh pr view --json number --jq '.number'` 2. 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`) 3. If no failed tests are found in the PR comments, inform the user and stop. 4. **Build the application binary:** ``` 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. 5. For each failed test file, run the e2e test with snapshot update: ``` PLAYWRIGHT_HTML_OPEN=never npm run e2e e2e-tests/<testFilename>.spec.ts -- --update-snapshots ``` 6. After updating snapshots, re-run the same tests WITHOUT `--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. 7. Show the user which snapshots were updated using `git diff` on the snapshot files. 8. Review the snapshot changes to ensure they look reasonable and are consistent with the PR's purpose. Consider: - Do the changes align with what the PR is trying to accomplish? - Are there any unexpected or suspicious changes? 9. If the snapshots look reasonable, commit and push the changes: ``` git add e2e-tests/snapshots/ git commit -m "Update E2E snapshots" git push ``` 10. Inform the user that the snapshots have been updated and pushed to the PR.
GitHub에서 보기