test(ui): add e2e and integration tests

This commit is contained in:
Tuan-Dat Tran
2026-02-23 13:48:13 +01:00
parent 00af8862d3
commit 4198b91498
9 changed files with 632 additions and 0 deletions

View File

@@ -0,0 +1,109 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`Regression: API Snapshots > GET /api/cv response matches snapshot > cv-data-response 1`] = `
{
"education": [
{
"degree": "CS Degree",
"id": 1,
"institution": "Test University",
"period": "2016-2020",
"status": "Completed",
},
],
"experience": [
{
"company": "Test Corp",
"description": "Testing",
"highlights": [
"Automated tests",
],
"id": 1,
"period": "2020-2024",
"role": "QA Engineer",
"type": "Vollzeit",
},
],
"personal": {
"email": "regression@test.com",
"name": "Regression Test User",
"title": "Test Engineer",
},
"projects": [
{
"description": "Test framework",
"id": 1,
"name": "Test Project",
"tech": [
"Vitest",
],
"url": "https://test.com",
},
],
"skills": {
"Testing": [
"Vitest",
"Playwright",
],
},
}
`;
exports[`Regression: API Snapshots > education section matches snapshot > education-section 1`] = `
[
{
"degree": "CS Degree",
"id": 1,
"institution": "Test University",
"period": "2016-2020",
"status": "Completed",
},
]
`;
exports[`Regression: API Snapshots > experience section matches snapshot > experience-section 1`] = `
[
{
"company": "Test Corp",
"description": "Testing",
"highlights": [
"Automated tests",
],
"id": 1,
"period": "2020-2024",
"role": "QA Engineer",
"type": "Vollzeit",
},
]
`;
exports[`Regression: API Snapshots > personal section matches snapshot > personal-section 1`] = `
{
"email": "regression@test.com",
"name": "Regression Test User",
"title": "Test Engineer",
}
`;
exports[`Regression: API Snapshots > projects section matches snapshot > projects-section 1`] = `
[
{
"description": "Test framework",
"id": 1,
"name": "Test Project",
"tech": [
"Vitest",
],
"url": "https://test.com",
},
]
`;
exports[`Regression: API Snapshots > skills section matches snapshot > skills-section 1`] = `
{
"Testing": [
"Vitest",
"Playwright",
],
}
`;