fix(web): space between the documents in the consent text
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 10m59s
ci / test (pull_request) Successful in 12m30s
ci / build (pull_request) Successful in 18m22s
ci / image (pull_request) Successful in 5m54s

The sign-up and consent pages ran the first document's link into the
word joining it to the next, as in "Datenschutzerklärungund die AGB".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-24 22:29:37 +01:00
1 parent acd8c2252d
commit 135209fe79
3 files changed
+6 -3

No files matched your search

+3
View File
@@ -48,6 +48,9 @@ func TestConsent(t *testing.T) {
if !strings.Contains(versions, "privacy:") || !strings.Contains(versions, "terms:") || !strings.Contains(form, `name="consent" required`) {
t.Fatalf("sign-up form lacks the consent box: versions %q", versions)
}
if !strings.Contains(form, "</a> and the <a") {
t.Error("the consent text runs the documents' names into the words between them")
}
signup := func(consent bool, versions string) (int, map[string]any) {
return e.browser(t).do("POST", "/api/v1/auth/signup", map[string]any{
"email": uniq("n") + "@example.test", "password": password, "consent": consent, "consent_versions": versions,