test(web): the language refusal asserts its message, not a word the form always contains (#61)

Found by the PR #62 review: the message could be replaced with 'x' and the test stayed green.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-04 22:40:47 +02:00
co-authored by Claude Sonnet 5.5
parent 7282893877
commit 0828f0debf
@@ -109,7 +109,7 @@ func TestUploadPost_ALanguageOutsideTheClosedSetIsRefusedBeforeAnythingIsSpooled
rows, err := newStore(t).ListUploads(context.Background(), userID) rows, err := newStore(t).ListUploads(context.Background(), userID)
require.NoError(t, err) require.NoError(t, err)
assert.Empty(t, rows, "and must leave no row") assert.Empty(t, rows, "and must leave no row")
assert.Contains(t, body(t, rec), "language") assert.Contains(t, body(t, rec), "Choose a language from the list.")
}) })
} }
} }