Skip to content

Commit

Permalink
Fix TestWebVitalMetricNoInteraction
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Aug 31, 2023
1 parent 594a8df commit 52b436e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/webvital_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,13 @@ func TestWebVitalMetricNoInteraction(t *testing.T) {
}()

page := browser.NewPage(nil)
resp, err := page.Goto(browser.staticURL("/web_vitals.html"), nil)
resp, err := page.Goto(
browser.staticURL("web_vitals.html"),
browser.toGojaValue(map[string]any{
// wait until the page is completely loaded.
"waitUntil": "networkidle",
}),
)
require.NoError(t, err)
require.NotNil(t, resp)

Expand Down

0 comments on commit 52b436e

Please sign in to comment.