fix(documents): use i18n key for undated group label instead of hardcoded German string

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-20 11:15:40 +02:00
committed by marcel
parent e5068820fa
commit 2982d0f6bf
2 changed files with 3 additions and 3 deletions

View File

@@ -84,12 +84,12 @@ describe('DocumentList year grouping', () => {
await expect.element(groupCards.nth(1)).toBeInTheDocument();
});
it('uses Ohne Datum for items with no documentDate', async () => {
it('uses undated label for items with no documentDate', async () => {
const items = [
makeItem({ document: { ...makeItem().document, id: '1', documentDate: undefined } })
];
render(DocumentList, { ...baseProps, items, total: 1 });
await expect.element(page.getByText('Ohne Datum')).toBeInTheDocument();
await expect.element(page.getByText('Undatiert')).toBeInTheDocument();
});
it('single year renders one group-card', async () => {