// Test login flow script const credentials = { admin: { email: "admin@example.com", password: "password123" }, hr: { email: "hr@example.com", password: "password123" } }; // Simulate login with demo users function testLoginFlow() { console.log("Testing login flow with demo credentials"); // Admin user test console.log("\nTesting admin login:"); console.log("Email:", credentials.admin.email); console.log("Password:", credentials.admin.password); console.log("Expected result: Success - Should authenticate and return admin role"); // HR user test console.log("\nTesting HR login:"); console.log("Email:", credentials.hr.email); console.log("Password:", credentials.hr.password); console.log("Expected result: Success - Should authenticate and return hr role"); console.log("\nTo test this login:"); console.log("1. Go to the login page"); console.log("2. Enter the credentials above"); console.log("3. Click 'Sign In'"); console.log("4. You should be redirected to the dashboard"); } testLoginFlow();