# boomika-test-automation/playwright-automation architecture

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

- Interactive diagram: https://gitdiagram.com/boomika-test-automation/playwright-automation
- Repository: https://github.com/boomika-test-automation/playwright-automation

## Overview

This repository is a Playwright browser-automation framework. Its clearest modeled journey is Demoblaze login, product selection, add-to-cart, and cart verification, implemented as page-object actions; the excerpts do not show which test invokes them or their order. The test tree also indicates API, purchase, session, cookie, upload/download, frame, and multi-page coverage. Configuration points Playwright at the tests directory. Several test relationships remain unverified because their source was not excerpted.

Main entry points: [`tests`](https://github.com/boomika-test-automation/playwright-automation/tree/main/tests) (Test suites), [`playwright.config.js`](https://github.com/boomika-test-automation/playwright-automation/blob/main/playwright.config.js) (Playwright config), [`pages/DemoblazePage.js`](https://github.com/boomika-test-automation/playwright-automation/blob/main/pages/DemoblazePage.js) (Demoblaze actions), [`tests/demoblaze.spec.js`](https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/demoblaze.spec.js) (Demoblaze tests)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Test runtime"]
  node_config["Playwright config"]
  node_playwright_api["Playwright page API"]
  node_login_data["Login data<br/>[loginData.js]"]
end

subgraph group_pages["Page objects"]
  node_demoblaze_page["Demoblaze actions<br/>[DemoblazePage.js]"]
  node_home_page["Home navigation<br/>[HomePage.js]"]
  node_login_page["Login actions<br/>[LoginPage.js]"]
  node_product_page["Product actions<br/>[ProductPage.js]"]
  node_cart_page["Cart verification<br/>[CartPage.js]"]
end

subgraph group_coverage["Test coverage"]
  node_suites["Test suites"]
  node_demoblaze_tests["Demoblaze tests<br/>[demoblaze.spec.js]"]
  node_purchase_tests["Purchase tests<br/>[purchase.spec.js]"]
  node_login_tests["Login tests<br/>[login.spec.js]"]
  node_api_tests["API tests<br/>[Api.spec.js]"]
  node_browser_tests["Browser scenarios"]
  node_file_tests["File transfer tests<br/>[fileupload.spec.js]"]
  node_download_tests["Download tests"]
  node_interaction_tests["UI interactions<br/>[frame.spec.js]"]
end

node_engineer(("Test author"))

node_engineer -->|"configures"| node_config
node_config -->|"discovers"| node_suites
node_demoblaze_page -->|"drives page"| node_playwright_api
node_home_page -->|"drives page"| node_playwright_api
node_login_page -->|"drives page"| node_playwright_api
node_product_page -->|"drives page"| node_playwright_api
node_cart_page -->|"checks page"| node_playwright_api
node_suites -.->|"includes"| node_demoblaze_tests
node_suites -.->|"includes"| node_purchase_tests
node_suites -.->|"includes"| node_login_tests
node_suites -.->|"includes"| node_api_tests
node_suites -.->|"includes"| node_browser_tests
node_suites -.->|"includes"| node_file_tests
node_suites -.->|"includes"| node_download_tests
node_suites -.->|"includes"| node_interaction_tests
node_demoblaze_tests -.->|"uses actions"| node_demoblaze_page
node_login_tests -.->|"uses credentials"| node_login_data

click node_config "https://github.com/boomika-test-automation/playwright-automation/blob/main/playwright.config.js"
click node_suites "https://github.com/boomika-test-automation/playwright-automation/tree/main/tests"
click node_demoblaze_tests "https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/demoblaze.spec.js"
click node_purchase_tests "https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/purchase.spec.js"
click node_login_tests "https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/login.spec.js"
click node_api_tests "https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/Api.spec.js"
click node_browser_tests "https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/multiplepage.spec.js"
click node_file_tests "https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/fileupload.spec.js"
click node_download_tests "https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/filedownload.spec.js"
click node_interaction_tests "https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/frame.spec.js"
click node_demoblaze_page "https://github.com/boomika-test-automation/playwright-automation/blob/main/pages/DemoblazePage.js"
click node_home_page "https://github.com/boomika-test-automation/playwright-automation/blob/main/pages/HomePage.js"
click node_login_page "https://github.com/boomika-test-automation/playwright-automation/blob/main/pages/LoginPage.js"
click node_product_page "https://github.com/boomika-test-automation/playwright-automation/blob/main/pages/ProductPage.js"
click node_cart_page "https://github.com/boomika-test-automation/playwright-automation/blob/main/pages/CartPage.js"
click node_login_data "https://github.com/boomika-test-automation/playwright-automation/blob/main/test-data/loginData.js"

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_playwright_api,node_login_data toneBlue
class node_demoblaze_page,node_home_page,node_login_page,node_product_page,node_cart_page toneAmber
class node_suites,node_demoblaze_tests,node_purchase_tests,node_login_tests,node_api_tests,node_browser_tests,node_file_tests,node_download_tests,node_interaction_tests toneMint
class node_engineer toneIndigo
```

## Components

### Test runtime

- [Playwright config](https://github.com/boomika-test-automation/playwright-automation/blob/main/playwright.config.js): `playwright.config.js`
- **Playwright page API**
- [Login data](https://github.com/boomika-test-automation/playwright-automation/blob/main/test-data/loginData.js): `test-data/loginData.js`

### Page objects

- [Demoblaze actions](https://github.com/boomika-test-automation/playwright-automation/blob/main/pages/DemoblazePage.js): `pages/DemoblazePage.js`
- [Home navigation](https://github.com/boomika-test-automation/playwright-automation/blob/main/pages/HomePage.js): `pages/HomePage.js`
- [Login actions](https://github.com/boomika-test-automation/playwright-automation/blob/main/pages/LoginPage.js): `pages/LoginPage.js`
- [Product actions](https://github.com/boomika-test-automation/playwright-automation/blob/main/pages/ProductPage.js): `pages/ProductPage.js`
- [Cart verification](https://github.com/boomika-test-automation/playwright-automation/blob/main/pages/CartPage.js): `pages/CartPage.js`

### Test coverage

- [Test suites](https://github.com/boomika-test-automation/playwright-automation/tree/main/tests): `tests`
- [Demoblaze tests](https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/demoblaze.spec.js): `tests/demoblaze.spec.js`
- [Purchase tests](https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/purchase.spec.js): `tests/purchase.spec.js`
- [Login tests](https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/login.spec.js): `tests/login.spec.js`
- [API tests](https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/Api.spec.js): `tests/Api.spec.js`
- [Browser scenarios](https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/multiplepage.spec.js): `tests/multiplepage.spec.js`
- [File transfer tests](https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/fileupload.spec.js): `tests/fileupload.spec.js`
- [Download tests](https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/filedownload.spec.js): `tests/filedownload.spec.js`
- [UI interactions](https://github.com/boomika-test-automation/playwright-automation/blob/main/tests/frame.spec.js): `tests/frame.spec.js`

### Other components

- **Test author**

## Connections

- Test author → Playwright config: configures (evidence: `playwright.config.js`)
- Playwright config → Test suites: discovers (evidence: `playwright.config.js`)
- Demoblaze actions → Playwright page API: drives page (evidence: `pages/DemoblazePage.js`)
- Home navigation → Playwright page API: drives page (evidence: `pages/HomePage.js`)
- Login actions → Playwright page API: drives page (evidence: `pages/LoginPage.js`)
- Product actions → Playwright page API: drives page (evidence: `pages/ProductPage.js`)
- Cart verification → Playwright page API: checks page (evidence: `pages/CartPage.js`)
- Test suites → Demoblaze tests: includes
- Test suites → Purchase tests: includes
- Test suites → Login tests: includes
- Test suites → API tests: includes
- Test suites → Browser scenarios: includes
- Test suites → File transfer tests: includes
- Test suites → Download tests: includes
- Test suites → UI interactions: includes
- Demoblaze tests → Demoblaze actions: uses actions
- Login tests → Login data: uses credentials
