# ferlautaro2001/playwright architecture

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

- Interactive diagram: https://gitdiagram.com/ferlautaro2001/playwright
- Repository: https://github.com/ferlautaro2001/playwright

## Overview

This repository is an adaptive Playwright E2E test suite for the SushiExpress SPA, not the application itself. Its documented workflow exercises login/session behavior, recipe search and filtering, then recipe creation with validation, dynamic fields, network/persistence checks, and optional LLM-assisted locator recovery. The graph preserves those domain stages and the shared page-object layer; test and fixture source was not excerpted, so links involving their runtime orchestration are documented rather than source-verified.

Main entry points: [`tests`](https://github.com/ferlautaro2001/playwright/tree/main/tests) (E2E Scenarios), [`fixtures/test.fixtures.ts`](https://github.com/ferlautaro2001/playwright/blob/main/fixtures/test.fixtures.ts) (Test Fixtures), [`helpers/adaptive-locator.ts`](https://github.com/ferlautaro2001/playwright/blob/main/helpers/adaptive-locator.ts) (Locator Recovery), [`pages/login.page.ts`](https://github.com/ferlautaro2001/playwright/blob/main/pages/login.page.ts) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_flows["Test Workflows"]
  node_suite["E2E Scenarios"]
  node_fixtures["Test Fixtures<br/>[test.fixtures.ts]"]
end

subgraph group_pages["Page Objects"]
  node_login["Authentication<br/>[login.page.ts]"]
  node_recipebook["Recipe Search<br/>[recetario.page.ts]"]
  node_recipeform["Recipe Entry"]
end

subgraph group_healing["Adaptive Healing"]
  node_adaptive["Locator Recovery"]
end

node_user(("QA Runner"))
node_spa["SushiExpress SPA"]
node_deepseek{{"DeepSeek LLM"}}

node_user -->|"runs"| node_suite
node_suite -.->|"uses"| node_fixtures
node_fixtures -.->|"provides POM"| node_login
node_fixtures -.->|"provides POM"| node_recipebook
node_fixtures -.->|"provides POM"| node_recipeform
node_suite -.->|"tests login"| node_login
node_suite -.->|"tests filtering"| node_recipebook
node_suite -.->|"tests creation"| node_recipeform
node_suite -.->|"invokes recovery"| node_adaptive
node_login -->|"navigates"| node_spa
node_recipebook -->|"navigates"| node_spa
node_recipeform -->|"navigates"| node_spa
node_adaptive -->|"reads ARIA"| node_spa
node_adaptive -->|"requests locator"| node_deepseek
node_deepseek -->|"returns JSON"| node_adaptive

click node_suite "https://github.com/ferlautaro2001/playwright/tree/main/tests"
click node_fixtures "https://github.com/ferlautaro2001/playwright/blob/main/fixtures/test.fixtures.ts"
click node_login "https://github.com/ferlautaro2001/playwright/blob/main/pages/login.page.ts"
click node_recipebook "https://github.com/ferlautaro2001/playwright/blob/main/pages/recetario.page.ts"
click node_recipeform "https://github.com/ferlautaro2001/playwright/blob/main/pages/formulario-receta.page.ts"
click node_adaptive "https://github.com/ferlautaro2001/playwright/blob/main/helpers/adaptive-locator.ts"

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_suite,node_fixtures toneBlue
class node_login,node_recipebook,node_recipeform toneAmber
class node_adaptive toneMint
class node_user,node_spa,node_deepseek toneIndigo
```

## Components

### Test Workflows

- [E2E Scenarios](https://github.com/ferlautaro2001/playwright/tree/main/tests): `tests`
- [Test Fixtures](https://github.com/ferlautaro2001/playwright/blob/main/fixtures/test.fixtures.ts): `fixtures/test.fixtures.ts`

### Page Objects

- [Authentication](https://github.com/ferlautaro2001/playwright/blob/main/pages/login.page.ts): `pages/login.page.ts`
- [Recipe Search](https://github.com/ferlautaro2001/playwright/blob/main/pages/recetario.page.ts): `pages/recetario.page.ts`
- [Recipe Entry](https://github.com/ferlautaro2001/playwright/blob/main/pages/formulario-receta.page.ts): `pages/formulario-receta.page.ts`

### Adaptive Healing

- [Locator Recovery](https://github.com/ferlautaro2001/playwright/blob/main/helpers/adaptive-locator.ts): `helpers/adaptive-locator.ts`

### Other components

- **QA Runner**
- **SushiExpress SPA**
- **DeepSeek LLM**

## Connections

- QA Runner → E2E Scenarios: runs (evidence: `README.md`)
- E2E Scenarios → Test Fixtures: uses (evidence: `README.md`)
- Test Fixtures → Authentication: provides POM (evidence: `README.md`)
- Test Fixtures → Recipe Search: provides POM (evidence: `README.md`)
- Test Fixtures → Recipe Entry: provides POM (evidence: `README.md`)
- E2E Scenarios → Authentication: tests login (evidence: `README.md`)
- E2E Scenarios → Recipe Search: tests filtering (evidence: `README.md`)
- E2E Scenarios → Recipe Entry: tests creation (evidence: `README.md`)
- E2E Scenarios → Locator Recovery: invokes recovery (evidence: `README.md`)
- Authentication → SushiExpress SPA: navigates (evidence: `pages/login.page.ts`)
- Recipe Search → SushiExpress SPA: navigates (evidence: `pages/recetario.page.ts`)
- Recipe Entry → SushiExpress SPA: navigates (evidence: `pages/formulario-receta.page.ts`)
- Locator Recovery → SushiExpress SPA: reads ARIA (evidence: `helpers/adaptive-locator.ts`)
- Locator Recovery → DeepSeek LLM: requests locator (evidence: `helpers/adaptive-locator.ts`)
- DeepSeek LLM → Locator Recovery: returns JSON (evidence: `helpers/adaptive-locator.ts`)
