gui tests: the settings-keep test sets Bark's server, key and daily time, which have their own route
71c4ef2d0added 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 at47e30d0e9("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/main47e30d0e9with the three Bark lines.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user