From 0828f0debfb7e11ed8b648e590cca8fd0d9ba81a Mon Sep 17 00:00:00 2001 From: Mathias Date: Sun, 4 Oct 2026 22:40:47 +0200 Subject: [PATCH] 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 --- internal/web/uploads_language_handler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/web/uploads_language_handler_test.go b/internal/web/uploads_language_handler_test.go index 6f5192a..c96bc33 100644 --- a/internal/web/uploads_language_handler_test.go +++ b/internal/web/uploads_language_handler_test.go @@ -109,7 +109,7 @@ func TestUploadPost_ALanguageOutsideTheClosedSetIsRefusedBeforeAnythingIsSpooled rows, err := newStore(t).ListUploads(context.Background(), userID) require.NoError(t, err) 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.") }) } }