From 517549680920abb494f5ad38c496215fc774e6a5 Mon Sep 17 00:00:00 2001 From: Mathias Date: Thu, 1 Oct 2026 18:43:14 +0200 Subject: [PATCH] test(web): match the notice's real casing My assertion expected a lowercase 'only'; the sentence begins 'Only'. The user facing wording is unchanged. Co-Authored-By: Claude Sonnet 5.5 --- internal/web/uploads_handler_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/web/uploads_handler_test.go b/internal/web/uploads_handler_test.go index 9b342a6..1b9fdcd 100644 --- a/internal/web/uploads_handler_test.go +++ b/internal/web/uploads_handler_test.go @@ -322,7 +322,7 @@ func TestUploadStatus_TellsTheUserTheVideoWasIgnoredInEveryStateAndOnlyWhenItWas plain := body(t, do(t, app, get("/uploads/"+audioOnly+"/status"))) assert.Contains(t, notice, "video track") - assert.Contains(t, notice, "only its audio was used", "say what happened, not just that something did") + assert.Contains(t, notice, "Only its audio was used", "say what happened, not just that something did") assert.Contains(t, notice, "discarded") assert.NotContains(t, plain, "video track", "no notice when there was no video") }) @@ -334,5 +334,5 @@ func TestUploadPage_AlsoCarriesTheVideoNotice(t *testing.T) { id := seedUpload(t, userID, "camera off", "done", "Synthetic transcript.") markHadVideo(t, id) - assert.Contains(t, body(t, do(t, app, get("/uploads/"+id))), "only its audio was used") + assert.Contains(t, body(t, do(t, app, get("/uploads/"+id))), "Only its audio was used") }