BackstopJS Not Detecting Missing UI Elements Despite Zero Mismatch Threshold - False Positive Issue
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript
- Área
- testing
Línea de trabajo
Comienza reproduciendo la comparación con misMatchThreshold establecido en 0 con ambas configuraciones de requireSameDimensions, usando una imagen de referencia que contenga el botón y una imagen de prueba que no lo contenga. Traza cómo BackstopJS compara imágenes con alturas diferentes y define una prueba de regresión que demuestre que el contenido faltante se informa como un mismatch en lugar de como un pass.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- JavaScript
- Estrellas
- 7.2k
- Forks
- 617
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de garris/BackstopJS
-
Upgrade Node Image in Docker File to LTS versionQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
garris/BackstopJS#1512 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
garris/BackstopJS#576 · 6 comentarios ·
-
Security issue with "extract-zip" and outdated "puppeteer" versionPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
garris/BackstopJS#1625 · 10 comentarios · 1 reacción ·
-
Prerequisites missingAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
garris/BackstopJS#1619 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
garris/BackstopJS#1617 · 2 comentarios ·
Todos los issues de garris/BackstopJS
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
openlayers/create-ol-app#70 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
VoteIT/voteit_frontend#446 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
simstudioai/sim#9831 ·
Los mantenedores suelen responder en 1 día