본문으로 건너뛰기
Skillpedia
테스트75k · #3080

visual-regression

하는 일

이 스킬은 시간에 따라 페이지나 컴포넌트의 스크린샷을 비교하는 시각 테스트를 설정합니다. 배포 전에 예상치 못한 디자인 변경을 잡으려는 팀을 위한 스킬입니다.

사용하는 경우

  • ✓CSS 변경으로 단위 테스트가 확인하지 않는 레이아웃이 깨질 수 있을 때.
  • ✓프로젝트의 지속적 통합(CI) 파이프라인에 시각 검사가 없을 때.
  • ✓핵심 컴포넌트에 안정적인 시각 기준선이 필요할 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/visual-regression/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/visual-regression/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“CSS를 조금 바꾸었더니 페이지 일부가 이상하게 보이는데 테스트는 모두 통과합니다. 시각 검사를 추가할 수 있을까요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 핵심 페이지나 컴포넌트를 찾아 기준 스크린샷을 찍습니다. 이후 실행에서는 새 스크린샷을 기준선과 비교해, 설정한 임계값을 넘는 차이를 표시합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Use visual regression testing

Functional tests verify behavior but don't see your page. A CSS refactor might pass all unit and integration tests while completely breaking the layout — text overlapping images, buttons invisible, wrong colors. Visual regression testing acts as a safety net that reviews your actual rendered output, catching changes that no amount of JavaScript testing can detect.

Quick Reference

  • Visual regression tests catch CSS regressions that functional tests miss
  • Run screenshot comparisons in CI to block merges that break visual appearance
  • Use component-level (Storybook) tests for focused, fast visual coverage
  • Set pixel difference thresholds to avoid flaky tests from sub-pixel rendering

Check

Does this project have visual regression testing? What critical components or pages would benefit most from visual baselines?

Fix

Set up visual regression tests for the key components using Playwright's screenshot comparison or a tool like Chromatic.

Explain

Explain visual regression testing, how it differs from functional tests, and how to set up screenshot comparison in a CI pipeline.

Code Review

Review tests, CI workflows, and enforcement points related to Use visual regression testing. Flag exact gaps where the rule is not automatically verified or where failures do not block regressions.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/testing/visual-regression

자주 묻는 질문

이를 할 수 있는 도구는 무엇인가요?

스킬은 Playwright의 스크린샷 비교와 Chromatic을 선택지로 언급합니다.

차이 임계값은 왜 설정하나요?

작은 렌더링 차이 때문에 테스트가 불안정해질 수 있으므로, 임계값을 두면 사소한 변경으로 실패하지 않습니다.

시각 테스트를 CI에서 실행해야 하나요?

네. 스킬은 외형을 깨뜨리는 병합을 막기 위해 CI에서 스크린샷 비교를 실행할 것을 권장합니다.

상세 정보

작성자의 원본 설명

Use when reviewing CI coverage, automated checks, or test strategy related to Use visual regression testing. Focus on whether the rule is continuously verified, not just documented.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#3080
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬