소스 정보
- 저장소
- Dev-Toolbelt/dev-team-agents
- 최근 소스 활동
- 2026년 5월 11일 16:18
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill visual-regression명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | visual-regression |
| description | Visual regression — screenshot diffing, Playwright/Chromatic, CI. |
| Tool | Best for | Hosting |
|---|---|---|
| Playwright screenshot comparison | Custom workflows; full-page and component screenshots; already in stack | Self-hosted |
| Storybook + Chromatic | Design system components; story-level diffing; team review UI | SaaS (Chromatic) |
| Percy | Cross-browser visual testing; integrates with many CI platforms | SaaS |
| Applitools Eyes | AI-powered diffing; reduced false positives; enterprise scale | SaaS |
| Loki | Storybook-only; lightweight; open source | Self-hosted |
Recommendation: use Playwright for integration-level flows; use Chromatic for component/design system work.
| Use visual regression for | Do NOT use for |
|---|---|
| Design system components (Button, Card, Modal) | Every component — adds test maintenance burden |
| Marketing and landing pages | Logic-heavy components with no visual output |
| Critical user flows (checkout, onboarding) | Components that change every sprint |
| Responsive layout breakpoints | Feature flags that render entirely different UIs |
Principle: visual regression tests are high-signal, low-quantity. Prefer 20 meaningful screenshots over 200 noisy ones.
git tag visual-baseline-YYYY-MM-DD# Regenerate all baselines
npx playwright test --update-snapshots
# Update a specific test file
npx playwright test tests/visual/button.spec.ts --update-snapshots
| Difference | Action |
|---|---|
| 0% – 0.1% | Acceptable — sub-pixel anti-aliasing variation |
| 0.1% – 1.0% | Always review — may be font rendering, shadow, or real regression |
| > 1.0% | Treat as a regression until proven otherwise; block merge |
// playwright.config.ts
export default defineConfig({
expect: {
toHaveScreenshot: {
maxDiffPixelRatio: 0.001, // 0.1% threshold
threshold: 0.2, // per-pixel color tolerance (0–1)
},
},
});
mainmain to catch environmental driftvisual-regression:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npx playwright install --with-deps chromium
- run: npx playwright test tests/visual/
- uses: actions/upload-artifact@v4
if: failure()
with:
name: visual-regression-diff
path: test-results/
Always upload diff artifacts on failure — reviewers need to see what changed without re-running locally.
| Cause | Fix |
|---|---|
| Animation not complete at screenshot time | Wait for animation end: await page.waitForTimeout(300) or disable animations in test |
| Font loading inconsistency | Use page.waitForLoadState('networkidle') or self-host fonts in tests |
| Dynamic content (dates, counts) | Mock or freeze dynamic data before screenshotting |
| OS font rendering differences | Run all visual tests in the same Docker image |