Old reference images will be shown in some server environments
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- testing-qa
调研方向
使用 backstop reference、浏览器报告以及配置为缓存图像的服务器重现该问题。检查报告如何构建 /backstop_data/bitmaps_reference/<scenario>.png URL,并添加一个报告专用的 cache-busting 值。完成标准是:刷新的参考图像会出现在报告中,同时测试图像和差异比较继续正常工作。
由索引模型根据 Issue 内容生成。
描述
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" />
- 主要语言
- JavaScript
- 星标
- 7.2k
- 派生
- 617
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
garris/BackstopJS 的其他 Issue
-
Upgrade Node Image in Docker File to LTS version可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 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可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 3/5 1-2 天 新手友好度 55/100
garris/BackstopJS#1625 · 10 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 45/100
garris/BackstopJS#1619 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
garris/BackstopJS#1617 · 2 条评论 ·
查看 garris/BackstopJS 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 75/100
SACGF/variantgrid#2791 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
zilliztech/memsearch#853 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
MadiroGlobalHealth/UVL-EMR#580 ·
维护者通常 1 天内回复
-
ci enhancement need-triage
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
[BUG] Mobile menu doesn't work on the Rabbit Behaviour page可能已有人在做 @Aryamuh-ynah 今天认领。 未关闭bug
难度 1/5 1 小时以内 新手友好度 88/100
Riya-Kharade/PetSathi#110 · 1 条评论 ·
维护者通常 1 天内回复