fix(admin): complete processing diagnostics and failure evidence
This commit is contained in:
@@ -30,6 +30,7 @@ test('real Docling produces owner-scoped administrator history without exposing
|
||||
const detail = await (await admin.get(`${api}/admin/processing/${id}`)).json();
|
||||
expect(detail.owner.id).toBe(owner.id);
|
||||
expect(detail.document.name).toBe('dev-en-simple.pdf');
|
||||
expect(detail.document.importId).toBe(run.id);
|
||||
expect(detail.document.pages).toBeGreaterThan(0);
|
||||
expect(detail.worker).toBe('document');
|
||||
expect(detail.workerEnabled).toBe(true);
|
||||
@@ -41,6 +42,9 @@ test('real Docling produces owner-scoped administrator history without exposing
|
||||
await page.getByRole('button', { name: `View processing details ${id}`, exact: true }).click();
|
||||
await expect(page.getByText(/^Processing completed/)).toBeVisible();
|
||||
await expect(page.getByLabel('Correlation ID', { exact: true })).toHaveValue(id);
|
||||
await expect(page.getByLabel('Submitting user ID', { exact: true })).toHaveValue(owner.id);
|
||||
await expect(page.getByText(`Import ID: ${run.id}`, { exact: true })).toBeVisible();
|
||||
await expect(page.getByText('No linked job', { exact: true })).toBeVisible();
|
||||
await page.screenshot({ path: info.outputPath('real-docling-processing-history.png'), fullPage: true });
|
||||
await info.attach('real-parser-evidence-limit', { body: 'Actual pinned Docling conversion and deterministic interpretation; no generative model inference or model accuracy acceptance. Administrator source-download access remains denied by the ordinary ownership API.', contentType: 'text/plain' });
|
||||
} finally { await admin.dispose(); }
|
||||
|
||||
Reference in New Issue
Block a user