110 lines
3.2 KiB
JSON
110 lines
3.2 KiB
JSON
{
|
|
"baseUrl": "http://localhost:8080/8a14e99e-54e4-459e-8f3f-17006c17956a/",
|
|
"defaultCredentials": { "email": "admin@acme.com", "password": "admin123" },
|
|
"routes": [
|
|
{
|
|
"path": "/login",
|
|
"title": "Login",
|
|
"selectors": {
|
|
"emailInput": "input[name='email']",
|
|
"passwordInput": "input[name='password']",
|
|
"submitButton": "button[type='submit']"
|
|
}
|
|
},
|
|
{
|
|
"path": "/dashboard",
|
|
"title": "Dashboard",
|
|
"requiresAuth": true,
|
|
"selectors": {
|
|
"headcountCard": "[data-testid='headcount-card']",
|
|
"leaveCard": "[data-testid='leave-card']",
|
|
"statCard": "[data-testid^='stat-card-']"
|
|
}
|
|
},
|
|
{
|
|
"path": "/people",
|
|
"title": "People Directory",
|
|
"requiresAuth": true,
|
|
"selectors": {
|
|
"employeeTable": "[data-testid='employee-table']",
|
|
"addButton": "[data-testid='add-employee-btn']"
|
|
}
|
|
},
|
|
{
|
|
"path": "/leave",
|
|
"title": "Leave Management",
|
|
"requiresAuth": true,
|
|
"selectors": {
|
|
"leaveBalance": "[data-testid='leave-balance']",
|
|
"requestButton": "[data-testid='request-leave-btn']"
|
|
}
|
|
},
|
|
{
|
|
"path": "/attendance",
|
|
"title": "Attendance",
|
|
"requiresAuth": true,
|
|
"selectors": {
|
|
"clockInBtn": "[data-testid='clock-in-btn']"
|
|
}
|
|
},
|
|
{
|
|
"path": "/payroll",
|
|
"title": "Payroll",
|
|
"requiresAuth": true,
|
|
"selectors": {
|
|
"runsList": "[data-testid='payroll-runs']"
|
|
}
|
|
},
|
|
{
|
|
"path": "/recruitment",
|
|
"title": "Recruitment",
|
|
"requiresAuth": true,
|
|
"selectors": {
|
|
"jobsList": "[data-testid='jobs-list']"
|
|
}
|
|
},
|
|
{
|
|
"path": "/performance",
|
|
"title": "Performance",
|
|
"requiresAuth": true,
|
|
"selectors": {
|
|
"cyclesList": "[data-testid='review-cycles']"
|
|
}
|
|
},
|
|
{
|
|
"path": "/engagement",
|
|
"title": "Engagement",
|
|
"requiresAuth": true,
|
|
"selectors": {
|
|
"announcementFeed": "[data-testid='announcement-feed']"
|
|
}
|
|
},
|
|
{
|
|
"path": "/analytics",
|
|
"title": "Analytics",
|
|
"requiresAuth": true,
|
|
"selectors": {
|
|
"dashboardKpis": "[data-testid='analytics-kpis']"
|
|
}
|
|
},
|
|
{
|
|
"path": "/settings",
|
|
"title": "Settings",
|
|
"requiresAuth": true,
|
|
"selectors": {
|
|
"companyForm": "[data-testid='company-form']"
|
|
}
|
|
}
|
|
],
|
|
"apiTests": [
|
|
{ "method": "POST", "path": "/api/v1/auth/login", "body": { "email": "admin@acme.com", "password": "admin123" }, "expectedStatus": 200 },
|
|
{ "method": "GET", "path": "/api/v1/employees", "requiresAuth": true, "expectedStatus": 200 },
|
|
{ "method": "GET", "path": "/api/v1/analytics/dashboard", "requiresAuth": true, "expectedStatus": 200 },
|
|
{ "method": "GET", "path": "/api/v1/leave/requests", "requiresAuth": true, "expectedStatus": 200 },
|
|
{ "method": "GET", "path": "/api/v1/payroll/runs", "requiresAuth": true, "expectedStatus": 200 },
|
|
{ "method": "GET", "path": "/api/v1/departments", "requiresAuth": true, "expectedStatus": 200 },
|
|
{ "method": "GET", "path": "/api/v1/recruitment/jobs", "requiresAuth": true, "expectedStatus": 200 },
|
|
{ "method": "GET", "path": "/health", "expectedStatus": 200 }
|
|
]
|
|
}
|