feat(dashboard): show block count instead of page numbers in resume strip
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -16,8 +16,7 @@ const mockResume: DashboardResumeDTO = {
|
||||
title: 'Geburtsurkunde 1920',
|
||||
caption: 'Max Mustermann · 1920-01-01',
|
||||
excerpt: 'Hiermit wird beurkundet…',
|
||||
page: 1,
|
||||
pages: 4,
|
||||
totalBlocks: 4,
|
||||
pct: 75,
|
||||
collaborators: []
|
||||
};
|
||||
@@ -47,4 +46,10 @@ describe('DashboardResumeStrip', () => {
|
||||
const link = page.getByRole('link', { name: /Weitertranskribieren/i });
|
||||
await expect.element(link).toHaveAttribute('href', '/documents/doc-123');
|
||||
});
|
||||
|
||||
it('shows block count label', async () => {
|
||||
render(DashboardResumeStrip, { resumeDoc: mockResume });
|
||||
const label = page.getByText(/4 Abschnitte/i);
|
||||
await expect.element(label).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user