BackstopJS Not Detecting Missing UI Elements Despite Zero Mismatch Threshold - False Positive Issue
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- testing
調査の方向性
まず、ボタンを含む参照画像とボタンを含まないテスト画像を使い、misMatchThreshold を 0 に設定して、requireSameDimensions の両方の設定で比較を再現します。BackstopJS が高さの異なる画像をどのように比較するかを追跡し、欠落したコンテンツが pass ではなく mismatch として報告されることを示す回帰テストを定義します。
索引モデルが issue の本文から書いたものです。
説明
BackstopJS Not Detecting Missing UI Elements Despite Zero Mismatch Threshold - False Positive Issue
Issue Description
BackstopJS is producing false positives by failing to detect visual regressions when UI elements are completely missing from the test image compared to the reference image, even with misMatchThreshold set to 0.
Expected Behavior
When misMatchThreshold is set to 0, BackstopJS should detect any visual differences between the reference and test images, including missing UI elements. A completely missing "Send feedback" button should result in a test failure.
Actual Behavior
BackstopJS reports the test as PASSING (false positive) when a significant UI element is completely missing from the test image. The "Send feedback" button is entirely absent in the test image but present in the reference image, yet the comparison passes.
Configuration Tested
{
"misMatchThreshold": 0,
"requireSameDimensions": false
}
Also tested with:
{
"misMatchThreshold": 0,
"requireSameDimensions": true
}
Steps to Reproduce
- Set up BackstopJS configuration with
misMatchThreshold: 0andrequireSameDimensions: false - Create a reference image with complete UI including the "Send feedback" button
- Generate a test scenario where the "Send feedback" button is missing/removed
- Run BackstopJS visual comparison
- Result: Test passes despite obvious missing button
Environment
- BackstopJS Version: [6.3.25] Also tried out with
6.2.2 - Browser: [Chromium]
- OS: [MAC OS]
Detailed Findings
With requireSameDimensions: false (Current Issue)
- Test passes despite missing "Send feedback" button
- No visual regression detected
- Images have different heights due to missing button
- This is the main issue - false positive
With requireSameDimensions: true (Also Problematic)
- Test fails due to dimension mismatch
- BUT fails for wrong reason (dimension difference, not missing button)
- Doesn't specifically identify what visual content is different
- Catches the height change but not the semantic difference
Screenshots
Core Problem
BackstopJS appears to have issues with:
- Pixel-by-pixel comparison when images have different dimensions
- Missing content detection at page boundaries
Questions for Maintainers
- How does BackstopJS handle pixel comparison when images have different heights?
- Is this expected behavior when
requireSameDimensions: false?
Expected Fix/Enhancement
BackstopJS should detect missing UI elements as visual regressions regardless of dimension differences when misMatchThreshold is set to 0. The comparison algorithm should account for missing buttons and other UI elements, flagging them appropriately.
- 主要言語
- JavaScript
- スター
- 7.2k
- フォーク
- 617
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
garris/BackstopJS のほかの issue
-
Upgrade Node Image in Docker File to LTS version再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
garris/BackstopJS#1512 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
garris/BackstopJS#576 · コメント 6 件 ·
-
Security issue with "extract-zip" and outdated "puppeteer" version対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
garris/BackstopJS#1625 · コメント 10 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
garris/BackstopJS#1619 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
garris/BackstopJS#1617 · コメント 2 件 ·
garris/BackstopJS の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
openlayers/create-ol-app#70 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
VoteIT/voteit_frontend#446 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
simstudioai/sim#9831 ·
メンテナーはふだん 1 日以内に返信