gui tests: the settings-keep test sets Bark's server, key and daily time, which have their own route

71c4ef2d0 added BarkServer, BarkKey and BarkDaily, which the Settings
page doesn't send (POST /api/settings/bark sets them), and left them
unset in TestSettingsSaveKeepsWhatItDoesNotSend, so it was red on main
at 47e30d0e9 ("BarkServer: not sent by the Settings page; set it in
this test").

Run on mote: go test -run TestSettingsSave ./internal/gui ok; without
the change, red on origin/main 47e30d0e9 with the three Bark lines.
This commit is contained in:
yetone
2026-11-11 04:14:58 +08:00
parent 796f759e20
commit 51da6f1f5c
+2
View File
@@ -219,6 +219,8 @@ func TestSettingsSaveKeepsWhatItDoesNotSend(t *testing.T) {
was.BusyLoad = 150 // the Routing page's busy-load
was.MTLS = true // Network and sharing's settings/mtls
was.HTTPS = true // Network and sharing's settings/https
// Settings > Usage's Bark row has its own route (settings/bark)
was.BarkServer, was.BarkKey, was.BarkDaily = "https://bark.example.com", "kept", "21:30"
// the Routing groups page's defaults for every group (groups/defaults)
was.GroupSink, was.GroupFirstToken, was.GroupPatience = true, 30, 120
if err := settings.Save(was); err != nil {