# supermaneddie/agentic-playwright-e2e-tester architecture

> Architecture diagram of the GitHub repository supermaneddie/agentic-playwright-e2e-tester, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/supermaneddie/agentic-playwright-e2e-tester
- Repository: https://github.com/supermaneddie/agentic-playwright-e2e-tester

## Overview

This is an agentic HTTP/API and browser end-to-end testing service with a web portal. A user submits a project and test case through the API or portal; the service prepares or resumes a LangGraph checklist, gathers missing answers, then executes HTTP requests or Playwright actions and records results. Major supporting capabilities include project and case management, dependencies, saved answers and element inspections, screenshots, polling, and persistent run history. The graph follows documented and excerpted links; dashed edges mark runtime connections not established by the supplied excerpts.

Main entry points: [`app/browser.py`](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/browser.py) (Playwright executor), [`app/main.py`](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/main.py) (HTTP API), [`app/service.py`](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/service.py) (Run and case service), [`app/workflow.py`](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/workflow.py) (LangGraph workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and portal"]
  node_api["HTTP API<br/>[main.py]"]
  node_portal["Portal pages"]
  node_webscripts["Portal scripts<br/>[app.js]"]
  node_polling["Live polling<br/>[polling.js]"]
  node_settings["Runtime settings<br/>[config.py]"]
end

subgraph group_orchestration["Planning and workflow"]
  node_schemas["Input and plan models<br/>[models.py]"]
  node_service["Run and case service<br/>[service.py]"]
  node_planner["Checklist planner<br/>[planner.py]"]
  node_workflow["LangGraph workflow<br/>[workflow.py]"]
end

subgraph group_execution["Test execution"]
  node_http["HTTP executor<br/>[runner.py]"]
  node_browser["Playwright executor<br/>[browser.py]"]
end

subgraph group_inspection["Browser inspection"]
  node_resolver["Element resolver<br/>[inspection.py]"]
  node_cache["Inspection cache"]
  node_targeting["Target guidance<br/>[targeting.py]"]
  node_screenshots["Screenshot artifacts<br/>[screenshots.py]"]
end

subgraph group_state["State and privacy"]
  node_privacy["Secret redaction<br/>[privacy.py]"]
  node_store[("Test record store<br/>[store.py]")]
  node_checkpoints[("Workflow checkpoints<br/>[main.py]")]
end

node_user(("Test author"))
node_llm{{"Chat completion provider"}}
node_target{{"System under test"}}

node_user -->|"submits cases"| node_api
node_user -->|"manages tests"| node_portal
node_portal -.->|"uses scripts"| node_webscripts
node_webscripts -.->|"requests data"| node_api
node_webscripts -.->|"polls updates"| node_polling
node_api -->|"routes operations"| node_service
node_api -->|"loads configuration"| node_settings
node_api -->|"initializes store"| node_store
node_api -->|"configures saver"| node_checkpoints
node_api -->|"creates runner"| node_browser
node_service -.->|"starts runs"| node_workflow
node_workflow -->|"creates plans"| node_planner
node_planner -->|"requests checklist"| node_llm
node_workflow -->|"executes HTTP steps"| node_http
node_workflow -.->|"executes browser steps"| node_browser
node_http -->|"sends requests"| node_target
node_browser -.->|"drives browser"| node_target
node_browser -->|"resolves targets"| node_resolver
node_browser -->|"captures locations"| node_cache
node_cache -->|"uses element scripts"| node_resolver
node_browser -->|"uses target guidance"| node_targeting
node_browser -->|"uses screenshot tools"| node_screenshots
node_service -.->|"persists run state"| node_store
node_store -->|"uses record models"| node_schemas
node_service -->|"redacts saved data"| node_privacy
node_planner -->|"redacts plan context"| node_privacy
node_browser -->|"redacts observations"| node_privacy

click node_api "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/main.py"
click node_portal "https://github.com/supermaneddie/agentic-playwright-e2e-tester/tree/main/app/templates"
click node_webscripts "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/static/app.js"
click node_polling "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/static/polling.js"
click node_settings "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/config.py"
click node_schemas "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/models.py"
click node_service "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/service.py"
click node_planner "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/planner.py"
click node_workflow "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/workflow.py"
click node_http "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/runner.py"
click node_browser "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/browser.py"
click node_resolver "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/inspection.py"
click node_cache "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/inspection_cache.py"
click node_targeting "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/targeting.py"
click node_screenshots "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/screenshots.py"
click node_privacy "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/privacy.py"
click node_store "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/store.py"
click node_checkpoints "https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/main.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_api,node_portal,node_webscripts,node_polling,node_settings toneBlue
class node_schemas,node_service,node_planner,node_workflow toneAmber
class node_http,node_browser toneMint
class node_resolver,node_cache,node_targeting,node_screenshots toneRose
class node_privacy,node_store,node_checkpoints,node_user,node_llm,node_target toneIndigo
```

## Components

### Entry and portal

- [HTTP API](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/main.py): `app/main.py`
- [Portal pages](https://github.com/supermaneddie/agentic-playwright-e2e-tester/tree/main/app/templates): `app/templates`
- [Portal scripts](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/static/app.js): `app/static/app.js`
- [Live polling](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/static/polling.js): `app/static/polling.js`
- [Runtime settings](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/config.py): `app/config.py`

### Planning and workflow

- [Input and plan models](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/models.py): `app/models.py`
- [Run and case service](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/service.py): `app/service.py`
- [Checklist planner](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/planner.py): `app/planner.py`
- [LangGraph workflow](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/workflow.py): `app/workflow.py`

### Test execution

- [HTTP executor](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/runner.py): `app/runner.py`
- [Playwright executor](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/browser.py): `app/browser.py`

### Browser inspection

- [Element resolver](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/inspection.py): `app/inspection.py`
- [Inspection cache](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/inspection_cache.py): `app/inspection_cache.py`
- [Target guidance](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/targeting.py): `app/targeting.py`
- [Screenshot artifacts](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/screenshots.py): `app/screenshots.py`

### State and privacy

- [Secret redaction](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/privacy.py): `app/privacy.py`
- [Test record store](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/store.py): `app/store.py`
- [Workflow checkpoints](https://github.com/supermaneddie/agentic-playwright-e2e-tester/blob/main/app/main.py): `app/main.py`

### Other components

- **Test author**
- **Chat completion provider**
- **System under test**

## Connections

- Test author → HTTP API: submits cases (evidence: `README.md`)
- Test author → Portal pages: manages tests (evidence: `README.md`)
- Portal pages → Portal scripts: uses scripts
- Portal scripts → HTTP API: requests data
- Portal scripts → Live polling: polls updates
- HTTP API → Run and case service: routes operations (evidence: `app/main.py`)
- HTTP API → Runtime settings: loads configuration (evidence: `app/main.py`)
- HTTP API → Test record store: initializes store (evidence: `app/main.py`)
- HTTP API → Workflow checkpoints: configures saver (evidence: `app/main.py`)
- HTTP API → Playwright executor: creates runner (evidence: `app/main.py`)
- Run and case service → LangGraph workflow: starts runs
- LangGraph workflow → Checklist planner: creates plans (evidence: `app/workflow.py`)
- Checklist planner → Chat completion provider: requests checklist (evidence: `app/planner.py`)
- LangGraph workflow → HTTP executor: executes HTTP steps (evidence: `app/workflow.py`)
- LangGraph workflow → Playwright executor: executes browser steps
- HTTP executor → System under test: sends requests (evidence: `app/runner.py`)
- Playwright executor → System under test: drives browser
- Playwright executor → Element resolver: resolves targets (evidence: `app/browser.py`)
- Playwright executor → Inspection cache: captures locations (evidence: `app/browser.py`)
- Inspection cache → Element resolver: uses element scripts (evidence: `app/inspection_cache.py`)
- Playwright executor → Target guidance: uses target guidance (evidence: `app/browser.py`)
- Playwright executor → Screenshot artifacts: uses screenshot tools (evidence: `app/browser.py`)
- Run and case service → Test record store: persists run state
- Test record store → Input and plan models: uses record models (evidence: `app/store.py`)
- Run and case service → Secret redaction: redacts saved data (evidence: `app/service.py`)
- Checklist planner → Secret redaction: redacts plan context (evidence: `app/planner.py`)
- Playwright executor → Secret redaction: redacts observations (evidence: `app/browser.py`)
