v0.127.1: escrow wizard polish — escrowed-card CTA as btn-outline, Hungarian preflight detail map (raw agent English only as muted failure diagnostic), typed-back word highlight (span-per-word, textContent-only), blur-on-verify toggle
This commit is contained in:
@@ -325,6 +325,10 @@ func TestEscrowTemplates_Render(t *testing.T) {
|
||||
"Ez a kód többé nem jeleníthető meg.",
|
||||
"nem ezen a szerveren",
|
||||
"biztonsági okból újra nem kérhető le",
|
||||
// v0.127.1 polish: the Hungarian preflight detail map + the blur-on-verify toggle.
|
||||
"nincs előkészített jelszó — a varázsló indításkor automatikusan előkészíti",
|
||||
"a rendszerjogosultság hiányzik",
|
||||
"Megjelenítés",
|
||||
} {
|
||||
if !strings.Contains(html, want) {
|
||||
t.Errorf("wizard missing %q", want)
|
||||
@@ -333,6 +337,13 @@ func TestEscrowTemplates_Render(t *testing.T) {
|
||||
if strings.Contains(html, "érvényét veszti") {
|
||||
t.Error("fresh wizard must not show the re-ceremony supersede warning")
|
||||
}
|
||||
// v0.127.1: the agent's operator-English detail strings must never be hardcoded into the
|
||||
// page — they may only arrive at runtime, inside the muted failure-diagnostic span.
|
||||
for _, raw := range []string{"DR tier applied", "hub upload target configured", "sudo grant listed"} {
|
||||
if strings.Contains(html, raw) {
|
||||
t.Errorf("raw English agent detail %q leaked into the wizard page source", raw)
|
||||
}
|
||||
}
|
||||
})
|
||||
t.Run("wizard re-ceremony variant", func(t *testing.T) {
|
||||
d := base()
|
||||
@@ -360,6 +371,11 @@ func TestEscrowTemplates_Render(t *testing.T) {
|
||||
if !strings.Contains(html, "Új helyreállítási kód készítése") {
|
||||
t.Error("escrowed card must offer the secondary re-ceremony link")
|
||||
}
|
||||
// v0.127.1: the CTA is a real secondary BUTTON (outline — available-not-urgent), no longer
|
||||
// an inline link buried in the muted hint.
|
||||
if !strings.Contains(html, `class="btn btn-sm btn-outline">Új helyreállítási kód készítése`) {
|
||||
t.Error("escrowed-card CTA must render as a btn-outline button")
|
||||
}
|
||||
if strings.Contains(html, "Letét megerősítése") {
|
||||
t.Error("the deprecated manual-confirm button must be GONE from the card")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user