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

Commit e5f961d

Browse files
committed
Add a prompt dialog test
This test will dismiss a prompt type dialog box.
1 parent 99363fc commit e5f961d

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
@@ -36,6 +36,9 @@ func TestFrameDismissDialogBox(t *testing.T) {
3636
{
3737
name: "confirm",
3838
},
39+
{
40+
name: "prompt",
41+
},
3942
}
4043

4144
for _, tt := range tests {

tests/static/dialog.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
break;
1212
case "confirm":
1313
confirm("Click accept")
14+
case "prompt":
15+
prompt("Add text and then click accept")
1416
}
1517
</script>
1618
</head>

0 commit comments

Comments
 (0)