From f1d1ac3f1a1953b58f930f16795fe0a8cef9f7b1 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 19 May 2026 21:27:29 +0200 Subject: [PATCH] test(transcription): assert error banner shows domain-specific message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds toHaveTextContent(m.transcription_mark_all_reviewed_error()) to the error-present test. The previous check only asserted presence via role="alert", which would not have caught the dead key bug — the banner was showing the generic fallback rather than the operation-specific copy. Co-Authored-By: Claude Sonnet 4.6 --- .../transcription/TranscriptionEditView.svelte.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/lib/document/transcription/TranscriptionEditView.svelte.spec.ts b/frontend/src/lib/document/transcription/TranscriptionEditView.svelte.spec.ts index 5a66623d..723923a8 100644 --- a/frontend/src/lib/document/transcription/TranscriptionEditView.svelte.spec.ts +++ b/frontend/src/lib/document/transcription/TranscriptionEditView.svelte.spec.ts @@ -381,6 +381,9 @@ describe('TranscriptionEditView — mark all reviewed', () => { btnEl.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true })); await expect.element(page.getByRole('alert')).toBeInTheDocument(); + await expect + .element(page.getByRole('alert')) + .toHaveTextContent(m.transcription_mark_all_reviewed_error()); }); it('clears error when dismiss button is clicked', async () => {