Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit b7125b9

Browse files
ankur22inancgumus
andcommitted
Apply suggestions from code review
Co-authored-by: İnanç Gümüş <inanc.gumus@grafana.com>
1 parent 5bbfb66 commit b7125b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/frame_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ func TestFrameDismissDialogBox(t *testing.T) {
5858
}{
5959
WaitUntil: "networkidle",
6060
})
61-
b.promise(p.Goto(b.staticURL("dialog.html?dialogType="+tt.name), opts)).then(func() *goja.Promise {
61+
pageGoto := p.Goto(
62+
b.staticURL("dialog.html?dialogType="+tt.name),
63+
opts,
64+
)
65+
b.promise(pageGoto).then(func() *goja.Promise {
6266
if tt.name == "beforeunload" {
6367
return p.Click("#clickHere", nil)
6468
}

0 commit comments

Comments
 (0)