feat(admin): add OCR entry to EntityNav sidebar and flyout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -79,3 +79,16 @@ describe('EntityNav — flyout', () => {
|
||||
await expect.element(page.getByRole('dialog')).not.toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
describe('EntityNav — OCR entry', () => {
|
||||
it('renders OCR link when canRunMaintenance is true', async () => {
|
||||
render(EntityNav, props);
|
||||
await expect.element(page.getByRole('link', { name: /OCR/i })).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('does not render OCR link when canRunMaintenance is false', async () => {
|
||||
render(EntityNav, { ...props, canRunMaintenance: false });
|
||||
const links = document.querySelectorAll('a[href="/admin/ocr"]');
|
||||
expect(links.length).toBe(0);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user