diff --git a/frontend/src/routes/persons/[id]/CoCorrespondentsList.svelte.test.ts b/frontend/src/routes/persons/[id]/CoCorrespondentsList.svelte.test.ts index c5262ee3..afccedc0 100644 --- a/frontend/src/routes/persons/[id]/CoCorrespondentsList.svelte.test.ts +++ b/frontend/src/routes/persons/[id]/CoCorrespondentsList.svelte.test.ts @@ -73,9 +73,14 @@ describe('CoCorrespondentsList', () => { } }); + // Asserted against the de message (names both persons) — not retyped copy. const link = page.getByRole('link', { name: /max mustermann/i }); - await expect.element(link).toHaveAttribute('title', /Anna Schmidt/); - await expect.element(link).toHaveAttribute('title', /Max Mustermann/); + await expect + .element(link) + .toHaveAttribute( + 'title', + m.person_correspondents_search_title({ A: 'Anna Schmidt', B: 'Max Mustermann' }) + ); }); it('builds initials from up to two name parts', async () => {