# bhavin35/pw-demos architecture

> Architecture diagram of the GitHub repository bhavin35/pw-demos, 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/bhavin35/pw-demos
- Repository: https://github.com/bhavin35/pw-demos

## Overview

This repository is a Playwright browser-test demo: its main workflow is Playwright discovering specs under `tests` and running them in configured browser projects. The specs and test data are present in the tree, but their contents were not provided, so their internal behavior and data flows cannot be verified. The Allure report appears to be a generated artifact, not an evidenced runtime subsystem.

Main entry points: [`playwright.config.ts`](https://github.com/bhavin35/pw-demos/blob/main/playwright.config.ts) (Playwright config), [`tests`](https://github.com/bhavin35/pw-demos/tree/main/tests) (Browser test specs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_execution["Test execution"]
  node_config["Playwright config"]
  node_chromium["Chromium project"]
  node_firefox["Firefox project"]
  node_webkit["WebKit project"]
end

subgraph group_scenarios["Test scenarios"]
  node_specs["Browser test specs"]
end

node_playwright(("Playwright"))

node_playwright -->|"loads config"| node_config
node_config -->|"discovers tests"| node_specs
node_config -->|"configures project"| node_chromium
node_config -->|"configures project"| node_firefox
node_config -->|"configures project"| node_webkit

click node_config "https://github.com/bhavin35/pw-demos/blob/main/playwright.config.ts"
click node_specs "https://github.com/bhavin35/pw-demos/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_config,node_chromium,node_firefox,node_webkit toneBlue
class node_specs toneAmber
class node_playwright toneIndigo
```

## Components

### Test execution

- [Playwright config](https://github.com/bhavin35/pw-demos/blob/main/playwright.config.ts): `playwright.config.ts`
- **Chromium project**
- **Firefox project**
- **WebKit project**

### Test scenarios

- [Browser test specs](https://github.com/bhavin35/pw-demos/tree/main/tests): `tests`

### Other components

- **Playwright**

## Connections

- Playwright → Playwright config: loads config (evidence: `playwright.config.ts`)
- Playwright config → Browser test specs: discovers tests (evidence: `playwright.config.ts`)
- Playwright config → Chromium project: configures project (evidence: `playwright.config.ts`)
- Playwright config → Firefox project: configures project (evidence: `playwright.config.ts`)
- Playwright config → WebKit project: configures project (evidence: `playwright.config.ts`)
