From 5099dfa42496b2e75fb13ec28902cb8f63d84a17 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 19 May 2026 21:03:59 +0200 Subject: [PATCH] test(transcription): cover 44px touch target on mention search input For issue #380 NFR. The transcriber audience is 60+ on laptops/tablets; the search input must meet WCAG 2.2 AA touch target dimensions just like the existing person result rows. Co-Authored-By: Claude Opus 4.7 --- .../shared/discussion/MentionDropdown.svelte.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src/lib/shared/discussion/MentionDropdown.svelte.spec.ts b/frontend/src/lib/shared/discussion/MentionDropdown.svelte.spec.ts index cfc782c1..cf2205b8 100644 --- a/frontend/src/lib/shared/discussion/MentionDropdown.svelte.spec.ts +++ b/frontend/src/lib/shared/discussion/MentionDropdown.svelte.spec.ts @@ -77,6 +77,18 @@ describe('MentionDropdown — search input', () => { await expect.element(page.getByText(m.person_mention_search_prompt())).not.toBeInTheDocument(); }); + it('search input wrapper meets the 44px touch target (WCAG 2.2 AA)', async () => { + render(MentionDropdown, { + model: makeModel(), + editorQuery: '', + onSearch: () => {} + }); + + const input = document.querySelector('[data-test-search-input]') as HTMLElement; + expect(input).not.toBeNull(); + expect(input.className).toContain('min-h-[44px]'); + }); + it('invokes onSearch with the current value whenever the user types', async () => { const onSearch = vi.fn(); render(MentionDropdown, {