# infopulse/playwright-course-python architecture

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

- Interactive diagram: https://gitdiagram.com/infopulse/playwright-course-python
- Repository: https://github.com/infopulse/playwright-course-python

## Overview

This repository is a pytest/Playwright learning project for automating the Coffee Cart web app. The main workflow is running example scenarios against the app, creating browser-backed page objects through pytest fixtures, and exposing results to the team. The sampled page objects cover menu interaction, navigation, cart access, and request interception. The README documents parallel execution and Testomat.io reporting; test implementations and reporting wiring were not sampled, so those links are documented rather than inferred from source.

Main entry points: [`page_objects/menu.py`](https://github.com/infopulse/playwright-course-python/blob/master/page_objects/menu.py) (Menu actions), [`tests`](https://github.com/infopulse/playwright-course-python/tree/master/tests) (Example scenarios), [`conftest.py`](https://github.com/infopulse/playwright-course-python/blob/master/conftest.py) (Pytest fixtures), [`page_objects/base.py`](https://github.com/infopulse/playwright-course-python/blob/master/page_objects/base.py) (Base page actions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_execution["Test execution"]
  node_pytest["pytest runner"]
  node_settings["Test settings<br/>[pyproject.toml]"]
  node_scenarios["Example scenarios"]
  node_fixtures["Pytest fixtures<br/>[conftest.py]"]
end

subgraph group_automation["Browser automation"]
  node_base["Base page actions<br/>[base.py]"]
  node_menu["Menu actions<br/>[menu.py]"]
end

subgraph group_reporting["Results and reporting"]
  node_testomat["Testomat.io"]
end

node_developer(("Developer"))
node_coffee["Coffee Cart app"]

node_developer -->|"runs tests"| node_pytest
node_settings -->|"configures"| node_pytest
node_pytest -->|"discovers"| node_scenarios
node_pytest -->|"loads fixtures"| node_fixtures
node_fixtures -->|"creates"| node_menu
node_menu -->|"extends"| node_base
node_base -->|"navigates"| node_coffee
node_menu -->|"interacts with"| node_coffee
node_scenarios -.->|"tests"| node_coffee
node_pytest -.->|"reports results"| node_testomat

click node_settings "https://github.com/infopulse/playwright-course-python/blob/master/pyproject.toml"
click node_scenarios "https://github.com/infopulse/playwright-course-python/tree/master/tests"
click node_fixtures "https://github.com/infopulse/playwright-course-python/blob/master/conftest.py"
click node_base "https://github.com/infopulse/playwright-course-python/blob/master/page_objects/base.py"
click node_menu "https://github.com/infopulse/playwright-course-python/blob/master/page_objects/menu.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_pytest,node_settings,node_scenarios,node_fixtures toneBlue
class node_base,node_menu toneAmber
class node_testomat toneMint
class node_developer,node_coffee toneIndigo
```

## Components

### Test execution

- **pytest runner**
- [Test settings](https://github.com/infopulse/playwright-course-python/blob/master/pyproject.toml): `pyproject.toml`
- [Example scenarios](https://github.com/infopulse/playwright-course-python/tree/master/tests): `tests`
- [Pytest fixtures](https://github.com/infopulse/playwright-course-python/blob/master/conftest.py): `conftest.py`

### Browser automation

- [Base page actions](https://github.com/infopulse/playwright-course-python/blob/master/page_objects/base.py): `page_objects/base.py`
- [Menu actions](https://github.com/infopulse/playwright-course-python/blob/master/page_objects/menu.py): `page_objects/menu.py`

### Results and reporting

- **Testomat.io**

### Other components

- **Developer**
- **Coffee Cart app**

## Connections

- Developer → pytest runner: runs tests (evidence: `readme.md`)
- Test settings → pytest runner: configures (evidence: `pyproject.toml`)
- pytest runner → Example scenarios: discovers
- pytest runner → Pytest fixtures: loads fixtures (evidence: `conftest.py`)
- Pytest fixtures → Menu actions: creates (evidence: `conftest.py`)
- Menu actions → Base page actions: extends (evidence: `page_objects/menu.py`)
- Base page actions → Coffee Cart app: navigates (evidence: `page_objects/base.py`)
- Menu actions → Coffee Cart app: interacts with (evidence: `page_objects/menu.py`)
- Example scenarios → Coffee Cart app: tests (evidence: `readme.md`)
- pytest runner → Testomat.io: reports results (evidence: `readme.md`)
