Forms: review r1 fixes

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 12:37:56 -04:00
1 parent 353235f0f3
commit a7404c5930
27 files changed
+305 -97

No files matched your search

+12
View File
@@ -104,3 +104,15 @@ func TestTransferSnapshot(t *testing.T) {
})
})
}
// MyGo's tester cannot read descriptions, so this checks the text the select-all box gets.
func TestTransferPartialDescription(t *testing.T) {
var got [3]string
ui.Render(func(c *ui.Context) {
Use(c, Settings{})
got = [3]string{transferPartial(c, 2, 3), transferPartial(c, 3, 3), transferPartial(c, 0, 3)}
}, 100, 100, 1)
if got != [3]string{"2 of 3 selected", "", ""} {
t.Fatalf("descriptions %q", got)
}
}