Import normalizer: offline tool to normalize the raw archive spreadsheets #663
@@ -154,10 +154,11 @@ describe('DocumentRow', () => {
|
|||||||
await expect.element(page.getByTestId('doc-summary')).toBeVisible();
|
await expect.element(page.getByTestId('doc-summary')).toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('renders an em-dash for missing documentDate', async () => {
|
it("renders 'Datum unbekannt' for a missing documentDate", async () => {
|
||||||
render(DocumentRow, { props: { item: baseItem({ documentDate: null }) } });
|
render(DocumentRow, { props: { item: baseItem({ documentDate: null }) } });
|
||||||
|
|
||||||
// Multiple em-dashes possible; just ensure at least one is rendered
|
// #668: an undated document renders the "Datum unbekannt" badge (via
|
||||||
expect(document.body.textContent).toContain('—');
|
// <DocumentDate>), never a bare em-dash.
|
||||||
|
await expect.element(page.getByText('Datum unbekannt').first()).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user