Tests: one snapshot helper (snapshot, snapshotAfter) replaces three copies
This commit is contained in:
8 files changed
+24
-96
No files matched your search
+1
-1
@@ -99,7 +99,7 @@ func TestTooltipScalesWithText(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestTooltipSnapshot(t *testing.T) {
|
||||
overlaySnapshot(t, "tooltip", 360, 140, func(c *ui.Context) {
|
||||
snapshotAfter(t, "tooltip", 360, 140, func(c *ui.Context) {
|
||||
ui.Column(c).Padding(24).AlignItems(ui.Start).Children(func() {
|
||||
b := Button(c, "Seal", ButtonOptions{Variant: Secondary})
|
||||
Tooltip(c, b, "Seal the letter with wax", TooltipOptions{Delay: time.Millisecond})
|
||||
|
||||
Reference in new issue
Block a user