Config view: rename Test connections to Test; center Save and Revert

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 00:01:17 +02:00
co-authored by Claude Sonnet 5.5
parent 26e1679e4e
commit b40ee8b61c
5 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -285,7 +285,7 @@ func TestTestConnectionsButtonSitsBelowTheServices(t *testing.T) {
send(v.form, tcell.KeyDown)
}
if focusedItem() != tview.FormItem(v.testItem) {
t.Fatalf("↓ after the SABnzbd API key reached %T %q, want the Test connections button", focusedItem(), focusedItem().GetLabel())
t.Fatalf("↓ after the SABnzbd API key reached %T %q, want the Test button", focusedItem(), focusedItem().GetLabel())
}
send(v.form, tcell.KeyDown)
if got := focusedItem().GetLabel(); got != "Downloads refresh (seconds)" {
@@ -296,7 +296,7 @@ func TestTestConnectionsButtonSitsBelowTheServices(t *testing.T) {
t.Error("↑ must come back to the button")
}
// Save and Revert stay below everything; Test connections is not among them.
// Save and Revert stay below everything; Test is not among them.
if v.actions.GetButtonCount() != 2 || v.actions.GetButton(0).GetLabel() != "Save" || v.actions.GetButton(1).GetLabel() != "Revert" {
t.Errorf("actions bar has %d buttons", v.actions.GetButtonCount())
}