-
Notifications
You must be signed in to change notification settings - Fork 610
Open
Description
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.
When so configured, these are the steps to reproduce:
- Run
backstop referenceto get some "reference" snapshots (e.g. of the staging environment) - Open the backstop browser report.
- Do something to change the appearance of the reference
- Rerun
backstop referenceto get fresh "reference" snapshots - 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" />
Metadata
Metadata
Assignees
Labels
No labels