feat(cv-import): add source-grounded review and explicit corrections
This commit is contained in:
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user