Old reference images will be shown in some server environments

オープン
#1,600 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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.

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" />

主要言語
JavaScript
スター
7.2k
フォーク
617
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

garris/BackstopJS のほかの issue

garris/BackstopJS の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。