feat(cv-import): add source-grounded review and explicit corrections

This commit is contained in:
cesnimda
2026-10-26 15:56:54 +01:00
parent 9e1726c61d
commit e941b3ccb7
24 changed files with 943 additions and 48 deletions
+2 -2
View File
@@ -582,14 +582,14 @@ test('/career profile exposes extraction progress', async () => {
expect(fileInput).not.toBeNull();
});
test('/career profile can queue a CV upload without visiting import review first', async () => {
test('/career profile can queue a legacy text CV upload without visiting import review first', async () => {
extractionRunsResponse = [];
mockedApi.post.mockResolvedValueOnce({ data: { queued: true, extractionRunId: 22, status: 'queued', created: true } } as any);
const { container } = renderPage('profile');
expect(await screen.findByRole('button', { name: /upload cv/i })).toBeEnabled();
const fileInput = container.querySelector<HTMLInputElement>('input[type="file"][accept*=".pdf"]')!;
fireEvent.change(fileInput, { target: { files: [new File(['resume'], 'resume.pdf', { type: 'application/pdf' })] } });
fireEvent.change(fileInput, { target: { files: [new File(['resume'], 'resume.txt', { type: 'text/plain' })] } });
await waitFor(() => expect(mockedApi.post).toHaveBeenCalledWith('/profile-cv/upload', expect.any(FormData), {
headers: { 'Content-Type': 'multipart/form-data' },