Skip to content

Commit

Permalink
update the gold image to match the new behavior of 117.0.5863.0
Browse files Browse the repository at this point in the history
chromedp/headless-shell:latest is 114.0.5735.199 as of now. In order
to make the test pass when running against the headless-shell, we
have to introduce a tolerance.
  • Loading branch information
ZekeLu committed Oct 14, 2023
1 parent f3439ed commit 5f2e0c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screenshot_test.go
Expand Up @@ -119,7 +119,7 @@ func TestScreenshotScale(t *testing.T) {
if err != nil {
t.Fatal(err)
}
if diff != 0 {
if diff > 20 {
t.Fatalf("screenshot does not match. diff: %v", diff)
}
})
Expand Down
Binary file modified testdata/screenshots/element-svg@3x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5f2e0c0

Please sign in to comment.