# cncalumpad/playwright-test-portfolio architecture

> Architecture diagram of the GitHub repository cncalumpad/playwright-test-portfolio, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cncalumpad/playwright-test-portfolio
- Repository: https://github.com/cncalumpad/playwright-test-portfolio

## Overview

This repository is a Playwright end-to-end test portfolio, not an application implementation. Its principal workflow is running automated browser scenarios against Automation Exercise and reporting scenario outcomes. The README documents automated authentication, contact, and navigation coverage, plus planned product, subscription, cart, and checkout scenarios. The sampled configuration establishes the test directory, browser projects, and target base URL; test-file internals were not sampled, so scenario-to-site interactions are documented rather than verified in source.

Main entry points: [`playwright.config.ts`](https://github.com/cncalumpad/playwright-test-portfolio/blob/main/playwright.config.ts) (Browser configuration), [`tests/TID_001_Register.spec.ts`](https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_001_Register.spec.ts) (Authentication tests), [`tests/TID_002_Login.spec.ts`](https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_002_Login.spec.ts) (Login tests), [`tests/TID_003_Login_Incorrect.spec.ts`](https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_003_Login_Incorrect.spec.ts) (Invalid login tests)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_execution["Test execution"]
  node_config["Browser configuration"]
end

subgraph group_automated["Automated scenarios"]
  node_auth["Authentication tests"]
  node_login["Login tests"]
  node_badlogin["Invalid login tests"]
  node_logout["Logout tests"]
  node_duplicate["Duplicate registration"]
  node_contact["Contact form test"]
  node_navigation["Test-case navigation"]
end

subgraph group_roadmap["Planned coverage"]
  node_planned["Unstarted scenarios<br/>[README.md]"]
  node_testcases["Scenario specifications<br/>[TEST_CASES.md]"]
end

node_engineer(("Test operator"))
node_playwright["Playwright runner"]
node_target["Automation Exercise"]

node_engineer -->|"starts run"| node_playwright
node_playwright -->|"loads configuration"| node_config
node_config -->|"selects test directory"| node_auth
node_playwright -.->|"runs scenarios"| node_login
node_playwright -.->|"runs scenarios"| node_badlogin
node_playwright -.->|"runs scenarios"| node_logout
node_playwright -.->|"runs scenarios"| node_duplicate
node_playwright -.->|"runs scenarios"| node_contact
node_playwright -.->|"runs scenarios"| node_navigation
node_config -->|"sets base URL"| node_target
node_auth -.->|"tests workflows"| node_target
node_login -.->|"tests workflows"| node_target
node_badlogin -.->|"tests workflows"| node_target
node_logout -.->|"tests workflows"| node_target
node_duplicate -.->|"tests workflows"| node_target
node_contact -.->|"tests form"| node_target
node_navigation -.->|"checks page"| node_target
node_testcases -->|"describes scenarios"| node_planned

click node_config "https://github.com/cncalumpad/playwright-test-portfolio/blob/main/playwright.config.ts"
click node_auth "https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_001_Register.spec.ts"
click node_login "https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_002_Login.spec.ts"
click node_badlogin "https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_003_Login_Incorrect.spec.ts"
click node_logout "https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_004_Logout.spec.ts"
click node_duplicate "https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_005_Register_Existing_User.spec.ts"
click node_contact "https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_006_Contact_Us_Form.spec.ts"
click node_navigation "https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_007_Verify_Test_Cases.spec.ts"
click node_planned "https://github.com/cncalumpad/playwright-test-portfolio/blob/main/README.md"
click node_testcases "https://github.com/cncalumpad/playwright-test-portfolio/blob/main/docs/TEST_CASES.md"

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_config toneBlue
class node_auth,node_login,node_badlogin,node_logout,node_duplicate,node_contact,node_navigation toneAmber
class node_planned,node_testcases toneMint
class node_engineer,node_playwright,node_target toneIndigo
```

## Components

### Test execution

- [Browser configuration](https://github.com/cncalumpad/playwright-test-portfolio/blob/main/playwright.config.ts): `playwright.config.ts`

### Automated scenarios

- [Authentication tests](https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_001_Register.spec.ts): `tests/TID_001_Register.spec.ts`
- [Login tests](https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_002_Login.spec.ts): `tests/TID_002_Login.spec.ts`
- [Invalid login tests](https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_003_Login_Incorrect.spec.ts): `tests/TID_003_Login_Incorrect.spec.ts`
- [Logout tests](https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_004_Logout.spec.ts): `tests/TID_004_Logout.spec.ts`
- [Duplicate registration](https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_005_Register_Existing_User.spec.ts): `tests/TID_005_Register_Existing_User.spec.ts`
- [Contact form test](https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_006_Contact_Us_Form.spec.ts): `tests/TID_006_Contact_Us_Form.spec.ts`
- [Test-case navigation](https://github.com/cncalumpad/playwright-test-portfolio/blob/main/tests/TID_007_Verify_Test_Cases.spec.ts): `tests/TID_007_Verify_Test_Cases.spec.ts`

### Planned coverage

- [Unstarted scenarios](https://github.com/cncalumpad/playwright-test-portfolio/blob/main/README.md): `README.md`
- [Scenario specifications](https://github.com/cncalumpad/playwright-test-portfolio/blob/main/docs/TEST_CASES.md): `docs/TEST_CASES.md`

### Other components

- **Test operator**
- **Playwright runner**
- **Automation Exercise**

## Connections

- Test operator → Playwright runner: starts run (evidence: `README.md`)
- Playwright runner → Browser configuration: loads configuration (evidence: `playwright.config.ts`)
- Browser configuration → Authentication tests: selects test directory (evidence: `playwright.config.ts`)
- Playwright runner → Login tests: runs scenarios
- Playwright runner → Invalid login tests: runs scenarios
- Playwright runner → Logout tests: runs scenarios
- Playwright runner → Duplicate registration: runs scenarios
- Playwright runner → Contact form test: runs scenarios
- Playwright runner → Test-case navigation: runs scenarios
- Browser configuration → Automation Exercise: sets base URL (evidence: `playwright.config.ts`)
- Authentication tests → Automation Exercise: tests workflows (evidence: `README.md`)
- Login tests → Automation Exercise: tests workflows (evidence: `README.md`)
- Invalid login tests → Automation Exercise: tests workflows (evidence: `README.md`)
- Logout tests → Automation Exercise: tests workflows (evidence: `README.md`)
- Duplicate registration → Automation Exercise: tests workflows (evidence: `README.md`)
- Contact form test → Automation Exercise: tests form (evidence: `README.md`)
- Test-case navigation → Automation Exercise: checks page (evidence: `README.md`)
- Scenario specifications → Unstarted scenarios: describes scenarios (evidence: `README.md`)
