Old reference images will be shown in some server environments

Abierto
#1,600 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
javascript
Área
testing-qa

Línea de trabajo

Reproduce el problema con backstop reference, el informe del navegador y un servidor configurado para almacenar imágenes en caché. Inspecciona cómo el informe construye las URL /backstop_data/bitmaps_reference/<scenario>.png y añade un valor de cache busting específico del informe. Se considera terminado cuando las imágenes de referencia actualizadas aparecen en el informe y las imágenes de prueba y la comparación de diferencias siguen funcionando.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Some server environments will cause stale reference images shown in the browser report. This will happen whenever the server is configured to tell the browser to cache all images. E.g.

Image

When so configured, these are the steps to reproduce:

  1. Run backstop reference to get some "reference" snapshots (e.g. of the staging environment)
  2. Open the backstop browser report.
  3. Do something to change the appearance of the reference
  4. Rerun backstop reference to get fresh "reference" snapshots
  5. Open the backstop browser report. Note how the "reference" images are from the first run and not your changed content, even though backstop is able to diff correctly. Note how the "test" images are fine, that's because they always have a new path /backstop_data/bitmaps_test/<date+time>/<scenario>.png, but "reference" images always have a constant path /backstop_data/bitmaps_reference/<scenario>.png.

Proposed solution:
Append the time that the report was created to reference images. Something like:
e.g. <img src="/backstop_data/bitmaps_reference/my-scenario.png?report-time=1234567890" />

Lenguaje dominante
JavaScript
Estrellas
7.2k
Forks
617
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de garris/BackstopJS

Todos los issues de garris/BackstopJS

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.