controller v0.296.0: a backup run cut off by a power cut or restart is said on the backup pages (R-519); the whole-system backup text states today's measurement (R-518)
gates / gates (push) Successful in 30s
gates / gates (push) Successful in 30s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
@@ -21,12 +21,17 @@ func TestR518_BackupButtonStatesTheMeasuredDowntime(t *testing.T) {
|
||||
}
|
||||
for _, lang := range []string{"hu", "en"} {
|
||||
body := renderI18nCase(t, s, lang, c)
|
||||
measured, vague := "8 perc", "" // „kb. 8 perc"
|
||||
// v0.296.0: BOTH measurements — 2026-09-14 (12 apps, ≈8 min) and 2026-10-05 on demo-hp (9 apps, 5 min 47 s,
|
||||
// audits/hub-safety-2026-10-05/partE/r518-measure.txt) — and that it is minutes, not seconds.
|
||||
measured := []string{"kb. 6 perc", "kb. 8 perc", "nem másodperceket"}
|
||||
vague := ""
|
||||
if lang == "en" {
|
||||
measured, vague = "about 8 minutes", "usually for a few minutes"
|
||||
measured, vague = []string{"about 6 minutes", "about 8 minutes", "not seconds"}, "usually for a few minutes"
|
||||
}
|
||||
if n := strings.Count(body, measured); n < 2 {
|
||||
t.Errorf("%s: the measured downtime appears %d times, want it on the page AND in the confirm", lang, n)
|
||||
for _, m := range measured {
|
||||
if n := strings.Count(body, m); n < 2 {
|
||||
t.Errorf("%s: %q appears %d times, want it on the page AND in the confirm", lang, m, n)
|
||||
}
|
||||
}
|
||||
if lang == "en" && strings.Contains(body, vague) {
|
||||
t.Errorf("en: the old vague promise %q is still on the page", vague)
|
||||
|
||||
Reference in New Issue
Block a user