feat: the value's keys on the line below it: reveal and copy (#8)

This commit was merged in pull request #8.
This commit is contained in:
keb committed 2026-10-11 10:38:00 +02:00
1 parent 71396f1e02
commit c8abc1dc95
4 files changed
+45 -34

No files matched your search

+2 -2
View File
@@ -204,7 +204,7 @@ func TestObjectTypeTabs(t *testing.T) {
t.Fatalf("selected = %q", s)
}
screen := d.screen()
for _, want := range []string{"key type RSA 2048", "ops sign, verify", "space to show public key"} {
for _, want := range []string{"key type RSA 2048", "ops sign, verify", "space to show the public key"} {
if !strings.Contains(screen, want) {
t.Errorf("missing %q:\n%s", want, screen)
}
@@ -979,7 +979,7 @@ func TestRebindingShowsEverywhere(t *testing.T) {
d := newDriverOpts(t, Options{Keys: &km})
d.keys("3")
scr := d.screen()
if !strings.Contains(scr, "(z to reveal)") || strings.Contains(scr, "space to reveal") {
if !strings.Contains(scr, "z to reveal") || strings.Contains(scr, "space to reveal") {
t.Errorf("detail hint doesn't follow the binding:\n%s", scr)
}
if !strings.Contains(lastLine(scr), "z reveal/hide") {