Skip to content

Commit

Permalink
Refactor tests to IsBrowserHeadless
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Aug 18, 2023
1 parent 9c21236 commit faaf749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/frame_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func TestFrameNoPanicWithEmbeddedIFrame(t *testing.T) {
// only surfaces when in headfull mode.
// Remove this skip once we have headfull mode in
// CI: https://github.com/grafana/xk6-browser/issues/678
if v, ok := env.LookupBool(env.BrowserHeadless); !ok || v {
if env.IsBrowserHeadless() {
t.Skip("skipped when in headless mode")
}

Expand Down Expand Up @@ -112,7 +112,7 @@ func TestFrameNoPanicNavigateAndClickOnPageWithIFrames(t *testing.T) {
// only surfaces when in headfull mode.
// Remove this skip once we have headfull mode in
// CI: https://github.com/grafana/xk6-browser/issues/678
if v, ok := env.LookupBool(env.BrowserHeadless); !ok || v {
if env.IsBrowserHeadless() {
t.Skip("skipped when in headless mode")
}

Expand Down

0 comments on commit faaf749

Please sign in to comment.