Tests: one snapshot helper (snapshot, snapshotAfter) replaces three copies
This commit is contained in:
8 files changed
+24
-96
No files matched your search
@@ -211,7 +211,7 @@ func TestDropdownMenuTabInSubmenuClosesMenu(t *testing.T) {
|
||||
|
||||
func TestDropdownMenuSnapshot(t *testing.T) {
|
||||
a := &menuApp{pinned: true}
|
||||
overlaySnapshot(t, "dropdown_menu", 520, 320, func(c *ui.Context) {
|
||||
snapshotAfter(t, "dropdown_menu", 520, 320, func(c *ui.Context) {
|
||||
ui.Column(c).Padding(20).AlignItems(ui.Start).Children(func() {
|
||||
DropdownMenu(c, "Actions", DropdownMenuOptions{}, a.build)
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user