# ntailor76/learn_v2 architecture

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

- Interactive diagram: https://gitdiagram.com/ntailor76/learn_v2
- Repository: https://github.com/ntailor76/learn_v2

## Overview

This repository is a small Playwright end-to-end test harness targeting Sauce Demo, rather than the application itself. Its configured workflow discovers tests under `tests`, runs an authentication setup project before Chromium, and configures a saved browser storage state. The tree also names example and secure test files, but their contents were not provided, so their actions and relationships cannot be established. The graph reflects only the workflow explicitly visible in the Playwright configuration.

Main entry points: [`playwright.config.ts`](https://github.com/ntailor76/learn_v2/blob/main/playwright.config.ts) (Playwright config), [`tests/auth.setup.ts`](https://github.com/ntailor76/learn_v2/blob/main/tests/auth.setup.ts) (Auth setup), [`tests`](https://github.com/ntailor76/learn_v2/tree/main/tests) (Test files)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_harness["Test harness"]
  node_runner(("Playwright runner"))
  node_config["Playwright config"]
end

subgraph group_suite["Browser tests"]
  node_auth["Auth setup<br/>[auth.setup.ts]"]
  node_tests["Test files"]
end

node_saucedemo["Sauce Demo"]

node_runner -->|"uses config"| node_config
node_config -->|"matches setup"| node_auth
node_config -->|"discovers tests"| node_tests
node_config -->|"sets base URL"| node_saucedemo

click node_config "https://github.com/ntailor76/learn_v2/blob/main/playwright.config.ts"
click node_auth "https://github.com/ntailor76/learn_v2/blob/main/tests/auth.setup.ts"
click node_tests "https://github.com/ntailor76/learn_v2/tree/main/tests"

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_runner,node_config toneBlue
class node_auth,node_tests toneAmber
class node_saucedemo toneIndigo
```

## Components

### Test harness

- **Playwright runner**
- [Playwright config](https://github.com/ntailor76/learn_v2/blob/main/playwright.config.ts): `playwright.config.ts`

### Browser tests

- [Auth setup](https://github.com/ntailor76/learn_v2/blob/main/tests/auth.setup.ts): `tests/auth.setup.ts`
- [Test files](https://github.com/ntailor76/learn_v2/tree/main/tests): `tests`

### Other components

- **Sauce Demo**

## Connections

- Playwright runner → Playwright config: uses config (evidence: `playwright.config.ts`)
- Playwright config → Auth setup: matches setup (evidence: `playwright.config.ts`)
- Playwright config → Test files: discovers tests (evidence: `playwright.config.ts`)
- Playwright config → Sauce Demo: sets base URL (evidence: `playwright.config.ts`)
