fix(match): prioritize meaningful job terms

This commit is contained in:
cesnimda
2026-08-09 18:47:21 +02:00
parent f2d1963c61
commit da1aa8bb2a
5 changed files with 208 additions and 22 deletions
@@ -76,12 +76,15 @@ afterEach(() => {
jest.clearAllMocks();
});
test('match score panel shows the score, matched and missing keywords', async () => {
test('match score panel shows the score and honest important-term labels', async () => {
renderDialog();
expect(await screen.findByText('82%')).toBeInTheDocument();
expect(await screen.findByText(/strong match/i)).toBeInTheDocument();
expect(await screen.findByText('4/6 keywords')).toBeInTheDocument();
expect(await screen.findByText('4/6 important terms')).toBeInTheDocument();
expect(await screen.findByText('Important terms already in your CV')).toBeInTheDocument();
expect(await screen.findByText('Important terms from the job to review')).toBeInTheDocument();
expect(screen.queryByText(/matched keywords/i)).not.toBeInTheDocument();
// Matched keyword chips
expect(await screen.findByText('C#')).toBeInTheDocument();