Visual Baseline とは?
visual baseline は、コンポーネントやページがどう見えるべきかを承認済みの参照画像として、visual regression テスト用に保持したものです。実行のたびに、テストは UI をレンダリングし、その結果を baseline とピクセル単位で比較します。許容範囲を超える差分は、レビューされて baseline が更新されるまでテストを失敗させます。
なぜ重要か
visual baseline は、機能テストがまったく見逃すスタイルや layout のリグレッションを捕捉します。意図的な承認を通じて baseline を最新に保つことで、誤検知と見逃しの双方を避けられます。
関連ガイド
What Is Snapshot Approval?Snapshot approval is reviewing and accepting a changed test snapshot, confirming the new output is intended b…
What Is Cumulative Layout Shift?Cumulative layout shift measures how much visible content unexpectedly moves during load, scoring visual stab…
What Is a Flaky Test Detector?A flaky test detector identifies tests that pass and fail nondeterministically by analyzing run history, so u…