Description du poste
Drafter: Dany
Story: #26 Career Goal and CV-Based Job Matching
Linked tasks: LA-12, KA-14, DA-11, DA-16 (KA-13 for the limit)
**Scenario 1: job seeker with a profile**
Given a job seeker with skills or a headline in their profile
When they open the Dashboard
Then "Recommended jobs" shows up to 5 jobs. Each one has the title, company and location, a match score (0-100), 1 to 3 reasons, the "AI match" label and a "View job" link
**Scenario 2: applied jobs are not recommended**
Given a job seeker who applied to one of the recommended jobs
When they go back to the Dashboard and click Refresh
Then that job is not in the list anymore
**Scenario 3: empty profile**
Given a job seeker with no skills and no headline
When they open the Dashboard
Then they see "Add skills or a headline to your profile first." with a "Go to your profile" link, and no jobs
**Scenario 4: limit reached**
Given a job seeker who already asked 5 times in the last hour (opening the Dashboard or clicking Refresh = 1 request)
When they ask a 6th time
Then they see "AI request limit reached. Try again later." and the rest of the Dashboard still works
**Scenario 5: AI down**
Given the AI service fails
When a job seeker with a profile opens the Dashboard
Then jobs still show up but labelled "Keyword match" instead of "AI match"
**Scenario 6: recruiter**
Given a recruiter
When they open the Dashboard
Then there is no Recommended jobs section (the endpoint gives 403 for recruiters)
How to run it by hand (after #217 and #224 are merged, demo data loaded):
1. Log in as demo.seeker@example.com (DemoPass123!) and open the Dashboard. The demo seeker has no profile yet so this checks scenario 3. Click "Go to your profile".
2. Add a headline (ex: "Junior frontend developer") and the skills React, TypeScript, SQL. Save.
3. Go back to the Dashboard -> scenario 1. Click "View job" on the first card, the job page should open.
4. Apply to that job, go back to the Dashboard and click Refresh -> scenario 2.
5. Keep