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

Commit 99363fc

Browse files
committed
Add confirm dialog test
This test will dismiss a confirm dialog box.
1 parent 8b6ce5d commit 99363fc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/frame_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ func TestFrameDismissDialogBox(t *testing.T) {
3333
{
3434
name: "alert",
3535
},
36+
{
37+
name: "confirm",
38+
},
3639
}
3740

3841
for _, tt := range tests {

tests/static/dialog.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
case "alert":
1010
alert("Click accept");
1111
break;
12+
case "confirm":
13+
confirm("Click accept")
1214
}
1315
</script>
1416
</head>

0 commit comments

Comments
 (0)