mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-11 18:28:15 +00:00
feat: Global E2E tests, multi-agent fixes, SIP agent tracing
- 13 Global Hospital smoke tests (CC Agent + Supervisor) - Auto-unlock agent session in test setup via maint API - agent-status-toggle sends agentId from localStorage (was missing) - maint-otp-modal injects agentId from localStorage into all calls - SIP manager logs agent identity on connect/disconnect/state changes - seed-data.ts: added CC agent + marketing users, idempotent member creation, cleanup phase before seeding - .gitignore: exclude test-results/ and playwright-report/ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,14 @@ import { fileURLToPath } from 'url';
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const authFile = path.join(__dirname, '.auth/agent.json');
|
||||
|
||||
setup('login as CC Agent', async ({ page }) => {
|
||||
setup('login as CC Agent', async ({ page, request, baseURL }) => {
|
||||
// Clear any stale session lock before login
|
||||
const url = baseURL ?? 'https://ramaiah.engage.healix360.net';
|
||||
await request.post(`${url}/api/maint/unlock-agent`, {
|
||||
headers: { 'Content-Type': 'application/json', 'x-maint-otp': '400168' },
|
||||
data: { agentId: 'ramaiahadmin' },
|
||||
}).catch(() => {});
|
||||
|
||||
await page.goto('/login');
|
||||
|
||||
await page.locator('input[type="email"], input[name="email"], input[placeholder*="@"]').first().fill('ccagent@ramaiahcare.com');
|
||||
|
||||
Reference in New Issue
Block a user