From e4295dab221980784e5e52cdea96bd34073a10bc Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sat, 31 Oct 2026 15:51:50 +0100 Subject: [PATCH] test: read the search-the-server row from the shared suggestion list --- src/lib/__tests__/recipient-suggestions.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/__tests__/recipient-suggestions.test.ts b/src/lib/__tests__/recipient-suggestions.test.ts index 8af072e6..25862761 100644 --- a/src/lib/__tests__/recipient-suggestions.test.ts +++ b/src/lib/__tests__/recipient-suggestions.test.ts @@ -87,6 +87,7 @@ describe('composer suggestions wiring', () => { expect(src).toMatch(/const results = await searchRecipients\(q\);/); expect(src).toMatch(/if \(!q \|\| searchingServer \|\| loginMovedFrom\(ownerLoginRef\.current\)\) return;/); expect(src).toMatch(/onSearchServer=\{canSearchServer \?/); - expect(src).toMatch(/t\('email_composer\.autocomplete_search_server', 'Search the server'\)/); + const list = fs.readFileSync(path.resolve(__dirname, '../../components/compose/RecipientSuggestionList.tsx'), 'utf8'); + expect(list).toMatch(/t\('email_composer\.autocomplete_search_server', 'Search the server'\)/); }); });