Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mvysny committed Feb 27, 2024
1 parent ab121e5 commit 34413fb
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ internal fun DynaNodeGroup.menuBarTestbatch() {
}
menuBar._expectOne<Span>()
}
test("Component in submenu") {
test("Component in sub-submenu") {
// PopupButton in Karibu-DSL uses this trick
// test for https://github.com/mvysny/karibu-testing/issues/163
val menuBar: MenuBar = UI.getCurrent().menuBar {
item("foo") {
subMenu.add(Span("foo"))
item("bar") {
subMenu.add(Span("foo"))
}
}
}
menuBar._expectOne<Span>()
Expand Down

0 comments on commit 34413fb

Please sign in to comment.