# naveenanimation20/june2025pwframework architecture

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

- Interactive diagram: https://gitdiagram.com/naveenanimation20/june2025pwframework
- Repository: https://github.com/naveenanimation20/june2025pwframework

## Overview

This repository is a Playwright automation framework for OpenCart, with browser page objects and a separate collection of API checks. The principal browser workflow is search from the home page, inspect results, select a product, and collect its details; registration and login are additional user journeys. API coverage includes authentication, CRUD, OAuth, network monitoring, JSONPath, and schema validation. README documents HTML and Allure reports generated from test runs. Test and fixture internals were not sampled, so links from those areas are marked unverified rather than inferred as direct calls.

Main entry points: [`tests/apis`](https://github.com/naveenanimation20/june2025pwframework/tree/master/tests/apis) (API scenarios), [`tests`](https://github.com/naveenanimation20/june2025pwframework/tree/master/tests) (Browser scenarios), [`utils/ElementUtil.ts`](https://github.com/naveenanimation20/june2025pwframework/blob/master/utils/ElementUtil.ts) (Element actions), [`pages/HomePage.ts`](https://github.com/naveenanimation20/june2025pwframework/blob/master/pages/HomePage.ts) (Search results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browser["Browser journeys"]
  node_browser_tests["Browser scenarios"]
end

subgraph group_pages["Page objects"]
  node_search["Search results<br/>[HomePage.ts]"]
  node_results["Result selection<br/>[ResultsPage.ts]"]
  node_product["Product details<br/>[ProductInfoPage.ts]"]
  node_login["Login journey<br/>[LoginPage.ts]"]
  node_registration["Registration<br/>[RegisterPage.ts]"]
end

subgraph group_api["API checks"]
  node_api_tests["API scenarios"]
  node_api_auth["Auth and OAuth<br/>[basicauth.spec.ts]"]
  node_api_gorest["GoREST checks<br/>[gorest.spec.ts]"]
  node_api_crud["GoREST CRUD"]
  node_api_e2e["GoREST E2E<br/>[gorest_e2e.spec.ts]"]
  node_api_network["Network monitoring"]
  node_api_jsonpath["JSONPath checks"]
  node_api_schema["Schema validation"]
end

subgraph group_support["Test support"]
  node_element_util["Element actions<br/>[ElementUtil.ts]"]
  node_fixtures["Shared fixtures"]
  node_config["Playwright config"]
  node_schema_data["User schema"]
  node_csv_data["Registration data<br/>[register.csv]"]
end

node_engineer(("Test author"))
node_opencart(("OpenCart site"))
node_api_services(("External API services"))
node_reports["Test reports"]

node_engineer -.->|"authors"| node_browser_tests
node_engineer -.->|"authors"| node_api_tests
node_browser_tests -.->|"runs with"| node_config
node_browser_tests -.->|"uses"| node_fixtures
node_browser_tests -.->|"drives"| node_search
node_search -->|"returns"| node_results
node_results -->|"returns"| node_product
node_browser_tests -.->|"drives"| node_login
node_login -->|"returns"| node_registration
node_search -->|"delegates to"| node_element_util
node_results -->|"delegates to"| node_element_util
node_product -->|"delegates to"| node_element_util
node_login -->|"delegates to"| node_element_util
node_registration -->|"delegates to"| node_element_util
node_search -.->|"interacts with"| node_opencart
node_login -.->|"interacts with"| node_opencart
node_api_tests -.->|"includes"| node_api_auth
node_api_tests -.->|"includes"| node_api_gorest
node_api_tests -.->|"includes"| node_api_crud
node_api_tests -.->|"includes"| node_api_e2e
node_api_tests -.->|"includes"| node_api_network
node_api_tests -.->|"includes"| node_api_jsonpath
node_api_tests -.->|"includes"| node_api_schema
node_api_tests -.->|"checks"| node_api_services
node_api_schema -.->|"validates against"| node_schema_data
node_browser_tests -.->|"may read"| node_csv_data
node_browser_tests -.->|"produces"| node_reports
node_api_tests -.->|"produces"| node_reports

click node_browser_tests "https://github.com/naveenanimation20/june2025pwframework/tree/master/tests"
click node_api_tests "https://github.com/naveenanimation20/june2025pwframework/tree/master/tests/apis"
click node_search "https://github.com/naveenanimation20/june2025pwframework/blob/master/pages/HomePage.ts"
click node_results "https://github.com/naveenanimation20/june2025pwframework/blob/master/pages/ResultsPage.ts"
click node_product "https://github.com/naveenanimation20/june2025pwframework/blob/master/pages/ProductInfoPage.ts"
click node_login "https://github.com/naveenanimation20/june2025pwframework/blob/master/pages/LoginPage.ts"
click node_registration "https://github.com/naveenanimation20/june2025pwframework/blob/master/pages/RegisterPage.ts"
click node_element_util "https://github.com/naveenanimation20/june2025pwframework/blob/master/utils/ElementUtil.ts"
click node_fixtures "https://github.com/naveenanimation20/june2025pwframework/tree/master/fixtures"
click node_config "https://github.com/naveenanimation20/june2025pwframework/blob/master/playwright.config.ts"
click node_api_auth "https://github.com/naveenanimation20/june2025pwframework/blob/master/tests/apis/basicauth.spec.ts"
click node_api_gorest "https://github.com/naveenanimation20/june2025pwframework/blob/master/tests/apis/gorest.spec.ts"
click node_api_crud "https://github.com/naveenanimation20/june2025pwframework/blob/master/tests/apis/gorest_crud.spec.ts"
click node_api_e2e "https://github.com/naveenanimation20/june2025pwframework/blob/master/tests/apis/gorest_e2e.spec.ts"
click node_api_network "https://github.com/naveenanimation20/june2025pwframework/blob/master/tests/apis/network_monitoring.spec.ts"
click node_api_jsonpath "https://github.com/naveenanimation20/june2025pwframework/blob/master/tests/apis/product_jsonpath.spec.ts"
click node_api_schema "https://github.com/naveenanimation20/june2025pwframework/blob/master/tests/apis/schema_validation.spec.ts"
click node_schema_data "https://github.com/naveenanimation20/june2025pwframework/blob/master/schemas/getusersschema.json"
click node_csv_data "https://github.com/naveenanimation20/june2025pwframework/blob/master/data/register.csv"

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_browser_tests toneBlue
class node_search,node_results,node_product,node_login,node_registration toneAmber
class node_api_tests,node_api_auth,node_api_gorest,node_api_crud,node_api_e2e,node_api_network,node_api_jsonpath,node_api_schema,node_api_services toneMint
class node_element_util,node_fixtures,node_config,node_schema_data,node_csv_data toneRose
class node_engineer,node_opencart,node_reports toneIndigo
```

## Components

### Browser journeys

- [Browser scenarios](https://github.com/naveenanimation20/june2025pwframework/tree/master/tests): `tests`

### Page objects

- [Search results](https://github.com/naveenanimation20/june2025pwframework/blob/master/pages/HomePage.ts): `pages/HomePage.ts`
- [Result selection](https://github.com/naveenanimation20/june2025pwframework/blob/master/pages/ResultsPage.ts): `pages/ResultsPage.ts`
- [Product details](https://github.com/naveenanimation20/june2025pwframework/blob/master/pages/ProductInfoPage.ts): `pages/ProductInfoPage.ts`
- [Login journey](https://github.com/naveenanimation20/june2025pwframework/blob/master/pages/LoginPage.ts): `pages/LoginPage.ts`
- [Registration](https://github.com/naveenanimation20/june2025pwframework/blob/master/pages/RegisterPage.ts): `pages/RegisterPage.ts`

### API checks

- [API scenarios](https://github.com/naveenanimation20/june2025pwframework/tree/master/tests/apis): `tests/apis`
- [Auth and OAuth](https://github.com/naveenanimation20/june2025pwframework/blob/master/tests/apis/basicauth.spec.ts): `tests/apis/basicauth.spec.ts`
- [GoREST checks](https://github.com/naveenanimation20/june2025pwframework/blob/master/tests/apis/gorest.spec.ts): `tests/apis/gorest.spec.ts`
- [GoREST CRUD](https://github.com/naveenanimation20/june2025pwframework/blob/master/tests/apis/gorest_crud.spec.ts): `tests/apis/gorest_crud.spec.ts`
- [GoREST E2E](https://github.com/naveenanimation20/june2025pwframework/blob/master/tests/apis/gorest_e2e.spec.ts): `tests/apis/gorest_e2e.spec.ts`
- [Network monitoring](https://github.com/naveenanimation20/june2025pwframework/blob/master/tests/apis/network_monitoring.spec.ts): `tests/apis/network_monitoring.spec.ts`
- [JSONPath checks](https://github.com/naveenanimation20/june2025pwframework/blob/master/tests/apis/product_jsonpath.spec.ts): `tests/apis/product_jsonpath.spec.ts`
- [Schema validation](https://github.com/naveenanimation20/june2025pwframework/blob/master/tests/apis/schema_validation.spec.ts): `tests/apis/schema_validation.spec.ts`

### Test support

- [Element actions](https://github.com/naveenanimation20/june2025pwframework/blob/master/utils/ElementUtil.ts): `utils/ElementUtil.ts`
- [Shared fixtures](https://github.com/naveenanimation20/june2025pwframework/tree/master/fixtures): `fixtures`
- [Playwright config](https://github.com/naveenanimation20/june2025pwframework/blob/master/playwright.config.ts): `playwright.config.ts`
- [User schema](https://github.com/naveenanimation20/june2025pwframework/blob/master/schemas/getusersschema.json): `schemas/getusersschema.json`
- [Registration data](https://github.com/naveenanimation20/june2025pwframework/blob/master/data/register.csv): `data/register.csv`

### Other components

- **Test author**
- **OpenCart site**
- **External API services**
- **Test reports**

## Connections

- Test author → Browser scenarios: authors
- Test author → API scenarios: authors
- Browser scenarios → Playwright config: runs with
- Browser scenarios → Shared fixtures: uses
- Browser scenarios → Search results: drives
- Search results → Result selection: returns (evidence: `pages/HomePage.ts`)
- Result selection → Product details: returns (evidence: `pages/ResultsPage.ts`)
- Browser scenarios → Login journey: drives
- Login journey → Registration: returns (evidence: `pages/LoginPage.ts`)
- Search results → Element actions: delegates to (evidence: `pages/HomePage.ts`)
- Result selection → Element actions: delegates to (evidence: `pages/ResultsPage.ts`)
- Product details → Element actions: delegates to (evidence: `pages/ProductInfoPage.ts`)
- Login journey → Element actions: delegates to (evidence: `pages/LoginPage.ts`)
- Registration → Element actions: delegates to (evidence: `pages/RegisterPage.ts`)
- Search results → OpenCart site: interacts with
- Login journey → OpenCart site: interacts with
- API scenarios → Auth and OAuth: includes
- API scenarios → GoREST checks: includes
- API scenarios → GoREST CRUD: includes
- API scenarios → GoREST E2E: includes
- API scenarios → Network monitoring: includes
- API scenarios → JSONPath checks: includes
- API scenarios → Schema validation: includes
- API scenarios → External API services: checks
- Schema validation → User schema: validates against
- Browser scenarios → Registration data: may read
- Browser scenarios → Test reports: produces (evidence: `README.md`)
- API scenarios → Test reports: produces (evidence: `README.md`)
