fix: harden admin system fallback and benchmark review
This commit is contained in:
@@ -96,6 +96,39 @@ describe('AdminSystemPage', () => {
|
||||
rootPath: '/data/CvBenchmarks/latest',
|
||||
lastUpdatedAtUtc: '2026-03-23T10:10:00Z',
|
||||
reportMarkdown: '# CV benchmark report\n\n- Files: 4',
|
||||
indexJson: JSON.stringify({
|
||||
CorpusRoot: '/home/pi/cvs',
|
||||
OutputRoot: '/data/CvBenchmarks/latest',
|
||||
GeneratedAtUtc: '2026-03-23T10:10:00Z',
|
||||
TotalFiles: 4,
|
||||
AverageCoverage: 0.72,
|
||||
AverageConfidence: 0.66,
|
||||
AverageConsistency: 0.94,
|
||||
FilesWithSuspiciousLocations: 1,
|
||||
MissingApprovedFixtures: 4,
|
||||
Entries: [
|
||||
{
|
||||
FileName: 'cv.txt',
|
||||
Slug: 'cv-txt',
|
||||
Extension: '.txt',
|
||||
Characters: 2000,
|
||||
OutputPath: '/data/CvBenchmarks/latest/outputs/cv-txt.json',
|
||||
ApprovedFixturePath: null,
|
||||
CandidateFixturePath: '/data/CvBenchmarks/latest/candidate-fixtures/cv-txt.json',
|
||||
ContactLocation: 'San Francisco, Hobbies',
|
||||
FirstJob: '* July',
|
||||
FirstJobLocation: null,
|
||||
FirstEducation: '* September',
|
||||
FirstEducationLocation: null,
|
||||
QualificationLevels: ['Other'],
|
||||
SuspiciousLocations: [],
|
||||
CoverageScore: 0.5,
|
||||
ConfidenceScore: 0.65,
|
||||
ConsistencyScore: 0.8,
|
||||
DiffSummary: 'No approved fixture yet — candidate fixture written.',
|
||||
},
|
||||
],
|
||||
}),
|
||||
},
|
||||
} as any);
|
||||
}
|
||||
@@ -138,6 +171,8 @@ describe('AdminSystemPage', () => {
|
||||
expect(screen.getByText(/ollama version/i)).toBeTruthy();
|
||||
expect(screen.getByText(/model · qwen2.5:7b/i)).toBeTruthy();
|
||||
expect(screen.getByText(/cv benchmark review/i)).toBeTruthy();
|
||||
expect(screen.getByText(/top parser findings/i)).toBeTruthy();
|
||||
expect(screen.getByText(/suspicious contact location: san francisco, hobbies/i)).toBeTruthy();
|
||||
expect(screen.getByText('OCR avg latency')).toBeTruthy();
|
||||
expect(screen.getByText('88.4 ms')).toBeTruthy();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user