R-1125: the install page's memory box says what to do too (fixtures re-captured under new names)
gates / gates (push) Successful in 44s
gates / gates (push) Successful in 44s
deploy.nincs_eleg_memoria_foglalas_telepites (HU + EN) now says the memory is held by the installed apps and to remove one or use a machine with more memory. deploy_new_blocked and deploy_new_memory_blocked re-captured as *_r1125 (only that sentence differs); all other fixtures byte-identical. Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package stacks
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"io"
|
||||
"log"
|
||||
@@ -176,4 +177,22 @@ func TestR1125_NotEnoughMemorySaysWhatToDo(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// The install page says it first (deploy.html's blocked memory box): the same advice, in both bundles.
|
||||
for lang, w := range map[string][]string{"hu": {"a már telepítettek mellett", "Távolíts el egy alkalmazást", "több memóriájú gépet"},
|
||||
"en": {"next to the apps already installed", "Remove an app", "a machine with more memory"}} {
|
||||
b, err := os.ReadFile("../i18n/locales/" + lang + ".json")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
var m map[string]string
|
||||
if err := json.Unmarshal(b, &m); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
page := m["deploy.nincs_eleg_memoria_foglalas_telepites"]
|
||||
for _, x := range w {
|
||||
if !strings.Contains(page, x) {
|
||||
t.Errorf("%s: the install page's memory box does not say %q: %q", lang, x, page)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user