feat: the value's keys on the line below it: reveal and copy
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
f6c4f5f6f6
commit
c04ad389ee
4 files changed
+34
-30
No files matched your search
@@ -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") {
|
||||
|
||||
Reference in new issue
Block a user