mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-11 18:28:15 +00:00
feat: add E2E smoke tests, architecture docs, and operations runbook
- 27 Playwright E2E tests covering login (3 roles), CC Agent pages (call desk, call history, patients, appointments, my performance, sidebar, sign-out), and Supervisor pages (all 11 pages + sidebar) - Tests run against live EC2 at ramaiah.engage.healix360.net - Last test completes sign-out to release agent session for next run - Architecture doc with updated Mermaid diagram including telephony dispatcher, service discovery, and multi-tenant topology - Operations runbook with SSH access (VPS + EC2), accounts, container reference, deploy steps, Redis ops, and troubleshooting guide Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
51
playwright.config.ts
Normal file
51
playwright.config.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
import { defineConfig } from '@playwright/test';
|
||||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
export default defineConfig({
|
||||
testDir: './e2e',
|
||||
timeout: 60_000,
|
||||
expect: { timeout: 10_000 },
|
||||
retries: 1,
|
||||
workers: 1,
|
||||
reporter: [['html', { open: 'never' }], ['list']],
|
||||
use: {
|
||||
baseURL: process.env.E2E_BASE_URL ?? 'https://ramaiah.engage.healix360.net',
|
||||
headless: true,
|
||||
screenshot: 'only-on-failure',
|
||||
trace: 'on-first-retry',
|
||||
actionTimeout: 8_000,
|
||||
navigationTimeout: 15_000,
|
||||
},
|
||||
projects: [
|
||||
// Login tests run first — fresh browser, no saved auth
|
||||
{
|
||||
name: 'login',
|
||||
testMatch: /agent-login\.spec\.ts/,
|
||||
use: { browserName: 'chromium' },
|
||||
},
|
||||
// Auth setup — saves CC agent session for reuse
|
||||
{
|
||||
name: 'agent-setup',
|
||||
testMatch: /auth\.setup\.ts/,
|
||||
},
|
||||
// CC Agent feature tests — reuse saved auth
|
||||
{
|
||||
name: 'cc-agent',
|
||||
dependencies: ['agent-setup'],
|
||||
use: {
|
||||
storageState: path.join(__dirname, 'e2e/.auth/agent.json'),
|
||||
browserName: 'chromium',
|
||||
},
|
||||
testMatch: /agent-smoke\.spec\.ts/,
|
||||
},
|
||||
// Supervisor tests — logs in fresh each run
|
||||
{
|
||||
name: 'supervisor',
|
||||
testMatch: /supervisor-smoke\.spec\.ts/,
|
||||
use: { browserName: 'chromium' },
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user