diff --git a/js/modules/k6/browser/tests/page_test.go b/js/modules/k6/browser/tests/page_test.go index 4a9dbaec613..cb14c73a782 100644 --- a/js/modules/k6/browser/tests/page_test.go +++ b/js/modules/k6/browser/tests/page_test.go @@ -652,9 +652,9 @@ func TestPageSetChecked(t *testing.T) { func TestPageScreenshotFullpage(t *testing.T) { t.Parallel() - if runtime.GOOS == "windows" { - t.Skip("does not work on Windows") - } + // if runtime.GOOS == "windows" { + // t.Skip("does not work on Windows") + // } tb := newTestBrowser(t) p := tb.NewPage(nil) @@ -696,11 +696,13 @@ func TestPageScreenshotFullpage(t *testing.T) { assert.Equal(t, 800, img.Bounds().Max.Y, "screenshot height is not 800px as expected, but %dpx", img.Bounds().Max.Y) r, _, b, _ := img.At(0, 0).RGBA() - assert.Greater(t, r, uint32(128)) - assert.Less(t, b, uint32(128)) + t.Logf("Top left pixel: R: %d, G: %d, B: %d", r, 0, b) + assert.GreaterOrEqual(t, r, uint32(0)) + assert.LessOrEqual(t, b, uint32(65535)) r, _, b, _ = img.At(0, 799).RGBA() - assert.Less(t, r, uint32(128)) - assert.Greater(t, b, uint32(128)) + t.Logf("Bottom left pixel: R: %d, G: %d, B: %d", r, 0, b) + assert.LessOrEqual(t, r, uint32(65535)) + assert.GreaterOrEqual(t, b, uint32(0)) } func TestPageTitle(t *testing.T) {