# pranjal-mani/qa-ai-practical-assessment architecture

> Architecture diagram of the GitHub repository pranjal-mani/qa-ai-practical-assessment, 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/pranjal-mani/qa-ai-practical-assessment
- Repository: https://github.com/pranjal-mani/qa-ai-practical-assessment

## Overview

This repository is a Playwright QA automation suite for the live Practice Software Testing Toolshop, not the Toolshop application itself. Its user-to-result workflow is running UI or API tests against the remote service and producing execution results. The README documents coverage of registration, authentication/profile, product search, cart, checkout, invoice creation, and invoice listing. Page objects and API helpers provide separate interaction layers. Test-to-helper call wiring is not shown in the excerpts, so those relationships are omitted; the documented suite scope and external targets are shown.

Main entry points: [`prism-toolshop-playwright/tests/ui`](https://github.com/pranjal-mani/qa-ai-practical-assessment/tree/main/prism-toolshop-playwright/tests/ui) (UI test suite), [`prism-toolshop-playwright/tests/api`](https://github.com/pranjal-mani/qa-ai-practical-assessment/tree/main/prism-toolshop-playwright/tests/api) (API test suite), [`prism-toolshop-playwright/test-data/test-config.json`](https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/test-data/test-config.json) (Test configuration), [`prism-toolshop-playwright/reports`](https://github.com/pranjal-mani/qa-ai-practical-assessment/tree/main/prism-toolshop-playwright/reports) (Test reports)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui_tests["UI automation"]
  node_ui_suite["UI test suite"]
end

subgraph group_api_tests["API automation"]
  node_api_suite["API test suite"]
end

subgraph group_ui_pages["UI page objects"]
  node_registration["Registration<br/>[RegisterPage.js]"]
  node_login["Login<br/>[LoginPage.js]"]
  node_profile["Profile<br/>[ProfilePage.js]"]
  node_product_search["Product search<br/>[HomePage.js]"]
  node_product_detail["Product detail<br/>[ProductPage.js]"]
  node_checkout["Cart and checkout<br/>[CheckoutPage.js]"]
  node_invoice_view["Invoice listing<br/>[InvoicesPage.js]"]
end

subgraph group_api_helpers["API helpers"]
  node_auth_api["Authentication API<br/>[authApi.js]"]
  node_products_api["Products API<br/>[productsApi.js]"]
  node_cart_api["Cart API<br/>[cartApi.js]"]
  node_invoice_api["Invoice API<br/>[invoiceApi.js]"]
end

node_engineer(("QA engineer"))
node_config["Test configuration<br/>[test-config.json]"]
node_sut_ui["Toolshop UI"]
node_sut_api["Toolshop API"]
node_results["Test reports"]

node_engineer -->|"runs UI tests"| node_ui_suite
node_engineer -->|"runs API tests"| node_api_suite
node_ui_suite -->|"tests flows"| node_sut_ui
node_api_suite -->|"tests endpoints"| node_sut_api
node_ui_suite -->|"produces reports"| node_results
node_api_suite -->|"produces reports"| node_results
node_config -->|"sets UI target"| node_sut_ui
node_config -->|"sets API target"| node_sut_api

click node_ui_suite "https://github.com/pranjal-mani/qa-ai-practical-assessment/tree/main/prism-toolshop-playwright/tests/ui"
click node_api_suite "https://github.com/pranjal-mani/qa-ai-practical-assessment/tree/main/prism-toolshop-playwright/tests/api"
click node_registration "https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/pages/RegisterPage.js"
click node_login "https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/pages/LoginPage.js"
click node_profile "https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/pages/ProfilePage.js"
click node_product_search "https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/pages/HomePage.js"
click node_product_detail "https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/pages/ProductPage.js"
click node_checkout "https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/pages/CheckoutPage.js"
click node_invoice_view "https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/pages/InvoicesPage.js"
click node_auth_api "https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/api/authApi.js"
click node_products_api "https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/api/productsApi.js"
click node_cart_api "https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/api/cartApi.js"
click node_invoice_api "https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/api/invoiceApi.js"
click node_config "https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/test-data/test-config.json"
click node_results "https://github.com/pranjal-mani/qa-ai-practical-assessment/tree/main/prism-toolshop-playwright/reports"

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_ui_suite,node_sut_ui toneBlue
class node_api_suite toneAmber
class node_registration,node_login,node_profile,node_product_search,node_product_detail,node_checkout,node_invoice_view,node_sut_api toneMint
class node_auth_api,node_products_api,node_cart_api,node_invoice_api toneRose
class node_engineer toneIndigo
class node_config,node_results toneTeal
```

## Components

### UI automation

- [UI test suite](https://github.com/pranjal-mani/qa-ai-practical-assessment/tree/main/prism-toolshop-playwright/tests/ui): `prism-toolshop-playwright/tests/ui`

### API automation

- [API test suite](https://github.com/pranjal-mani/qa-ai-practical-assessment/tree/main/prism-toolshop-playwright/tests/api): `prism-toolshop-playwright/tests/api`

### UI page objects

- [Registration](https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/pages/RegisterPage.js): `prism-toolshop-playwright/pages/RegisterPage.js`
- [Login](https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/pages/LoginPage.js): `prism-toolshop-playwright/pages/LoginPage.js`
- [Profile](https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/pages/ProfilePage.js): `prism-toolshop-playwright/pages/ProfilePage.js`
- [Product search](https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/pages/HomePage.js): `prism-toolshop-playwright/pages/HomePage.js`
- [Product detail](https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/pages/ProductPage.js): `prism-toolshop-playwright/pages/ProductPage.js`
- [Cart and checkout](https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/pages/CheckoutPage.js): `prism-toolshop-playwright/pages/CheckoutPage.js`
- [Invoice listing](https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/pages/InvoicesPage.js): `prism-toolshop-playwright/pages/InvoicesPage.js`

### API helpers

- [Authentication API](https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/api/authApi.js): `prism-toolshop-playwright/api/authApi.js`
- [Products API](https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/api/productsApi.js): `prism-toolshop-playwright/api/productsApi.js`
- [Cart API](https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/api/cartApi.js): `prism-toolshop-playwright/api/cartApi.js`
- [Invoice API](https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/api/invoiceApi.js): `prism-toolshop-playwright/api/invoiceApi.js`

### Other components

- **QA engineer**
- [Test configuration](https://github.com/pranjal-mani/qa-ai-practical-assessment/blob/main/prism-toolshop-playwright/test-data/test-config.json): `prism-toolshop-playwright/test-data/test-config.json`
- **Toolshop UI**
- **Toolshop API**
- [Test reports](https://github.com/pranjal-mani/qa-ai-practical-assessment/tree/main/prism-toolshop-playwright/reports): `prism-toolshop-playwright/reports`

## Connections

- QA engineer → UI test suite: runs UI tests (evidence: `README.md`)
- QA engineer → API test suite: runs API tests (evidence: `README.md`)
- UI test suite → Toolshop UI: tests flows (evidence: `README.md`)
- API test suite → Toolshop API: tests endpoints (evidence: `README.md`)
- UI test suite → Test reports: produces reports (evidence: `README.md`)
- API test suite → Test reports: produces reports (evidence: `README.md`)
- Test configuration → Toolshop UI: sets UI target (evidence: `README.md`)
- Test configuration → Toolshop API: sets API target (evidence: `README.md`)
