# rohithrakasy/playwright_pom_framework architecture

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

- Interactive diagram: https://gitdiagram.com/rohithrakasy/playwright_pom_framework
- Repository: https://github.com/rohithrakasy/playwright_pom_framework

## Overview

This repository is a Playwright automation suite for browser and API workflows, including login, terms administration, underwriting, bond applications, and user creation. The visible implementation provides page objects, shared browser helpers, and API clients; the test files indicate additional workflows, but their connections to those components are not shown. The graph therefore includes those test domains without inventing call paths. The README is empty, and unsampled test and fixture source limits relationship evidence.

Main entry points: [`services/AuthApi.js`](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/services/AuthApi.js) (Authentication API), [`pages/LoginPage.js`](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/LoginPage.js) (Login page), [`pages/BasePage.js`](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/BasePage.js) (Page helpers), [`pages/DashboardPage.js`](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/DashboardPage.js) (Dashboard page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browser["Browser automation"]
  node_login["Login page<br/>[LoginPage.js]"]
  node_basepage["Page helpers<br/>[BasePage.js]"]
  node_dashboard["Dashboard page<br/>[DashboardPage.js]"]
  node_adminlogin["Admin login page"]
  node_adminhome["Admin home page<br/>[AdminHomePage.js]"]
  node_pfalogin["PFA login page<br/>[PfaLoginPage.js]"]
  node_terms["Terms management"]
  node_underwriting["Underwriting page"]
end

subgraph group_api["API clients"]
  node_api_client["API client<br/>[ApiClient.js]"]
  node_auth_api["Authentication API<br/>[AuthApi.js]"]
  node_base_api["API helpers<br/>[BaseApi.js]"]
end

subgraph group_workflows["Test workflows"]
  node_bond_workflow["Bond application"]
  node_admin_workflow["Admin user creation"]
  node_terms_workflow["Terms administration"]
  node_underwriting_workflow["Underwriting approval"]
  node_api_workflow["PFA API tests<br/>[pfaApi.spec.js]"]
  node_pfa_ui_workflow["PFA UI tests<br/>[pfaUi.spec.js]"]
end

subgraph group_support["Test support"]
  node_env["Environment settings<br/>[env.js]"]
  node_excel["Excel reader<br/>[excelReader.js]"]
  node_random["Random data"]
  node_login_data["Login data<br/>[loginData.json]"]
end

node_user(("Test initiator"))
node_browser(("Browser"))
node_api_service(("Remote API"))

node_login -->|"extends"| node_basepage
node_dashboard -->|"extends"| node_basepage
node_auth_api -->|"extends"| node_base_api
node_auth_api -->|"imports"| node_login_data
node_api_client -->|"sends requests"| node_api_service
node_auth_api -->|"sends requests"| node_api_service
node_login -->|"uses page"| node_browser
node_terms -->|"uses page"| node_browser

click node_login "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/LoginPage.js"
click node_basepage "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/BasePage.js"
click node_dashboard "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/DashboardPage.js"
click node_adminlogin "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/AdminAppLoginPage.js"
click node_adminhome "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/AdminHomePage.js"
click node_pfalogin "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/PfaLoginPage.js"
click node_terms "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/TermsConditionsPage.js"
click node_underwriting "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/UnderwritingPage.js"
click node_api_client "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/services/ApiClient.js"
click node_auth_api "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/services/AuthApi.js"
click node_base_api "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/services/BaseApi.js"
click node_bond_workflow "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/tests/CreateBondApplication.spec.js"
click node_admin_workflow "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/tests/AdminUserCreation.spec.js"
click node_terms_workflow "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/tests/TermsConditionsAdmin.spec.js"
click node_underwriting_workflow "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/tests/UnderwritingApprove.spec.js"
click node_api_workflow "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/tests/pfaApi.spec.js"
click node_pfa_ui_workflow "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/tests/pfaUi.spec.js"
click node_env "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/config/env.js"
click node_excel "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/utils/excelReader.js"
click node_random "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/utils/generateRandomNumbers.js"
click node_login_data "https://github.com/rohithrakasy/playwright_pom_framework/blob/main/test-data/loginData.json"

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_login,node_basepage,node_dashboard,node_adminlogin,node_adminhome,node_pfalogin,node_terms,node_underwriting,node_browser toneBlue
class node_api_client,node_auth_api,node_base_api toneAmber
class node_bond_workflow,node_admin_workflow,node_terms_workflow,node_underwriting_workflow,node_api_workflow,node_pfa_ui_workflow,node_api_service toneMint
class node_env,node_excel,node_random,node_login_data toneRose
class node_user toneIndigo
```

## Components

### Browser automation

- [Login page](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/LoginPage.js): `pages/LoginPage.js`
- [Page helpers](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/BasePage.js): `pages/BasePage.js`
- [Dashboard page](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/DashboardPage.js): `pages/DashboardPage.js`
- [Admin login page](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/AdminAppLoginPage.js): `pages/AdminAppLoginPage.js`
- [Admin home page](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/AdminHomePage.js): `pages/AdminHomePage.js`
- [PFA login page](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/PfaLoginPage.js): `pages/PfaLoginPage.js`
- [Terms management](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/TermsConditionsPage.js): `pages/TermsConditionsPage.js`
- [Underwriting page](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/pages/UnderwritingPage.js): `pages/UnderwritingPage.js`

### API clients

- [API client](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/services/ApiClient.js): `services/ApiClient.js`
- [Authentication API](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/services/AuthApi.js): `services/AuthApi.js`
- [API helpers](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/services/BaseApi.js): `services/BaseApi.js`

### Test workflows

- [Bond application](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/tests/CreateBondApplication.spec.js): `tests/CreateBondApplication.spec.js`
- [Admin user creation](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/tests/AdminUserCreation.spec.js): `tests/AdminUserCreation.spec.js`
- [Terms administration](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/tests/TermsConditionsAdmin.spec.js): `tests/TermsConditionsAdmin.spec.js`
- [Underwriting approval](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/tests/UnderwritingApprove.spec.js): `tests/UnderwritingApprove.spec.js`
- [PFA API tests](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/tests/pfaApi.spec.js): `tests/pfaApi.spec.js`
- [PFA UI tests](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/tests/pfaUi.spec.js): `tests/pfaUi.spec.js`

### Test support

- [Environment settings](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/config/env.js): `config/env.js`
- [Excel reader](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/utils/excelReader.js): `utils/excelReader.js`
- [Random data](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/utils/generateRandomNumbers.js): `utils/generateRandomNumbers.js`
- [Login data](https://github.com/rohithrakasy/playwright_pom_framework/blob/main/test-data/loginData.json): `test-data/loginData.json`

### Other components

- **Test initiator**
- **Browser**
- **Remote API**

## Connections

- Login page → Page helpers: extends (evidence: `pages/LoginPage.js`)
- Dashboard page → Page helpers: extends (evidence: `pages/DashboardPage.js`)
- Authentication API → API helpers: extends (evidence: `services/AuthApi.js`)
- Authentication API → Login data: imports (evidence: `services/AuthApi.js`)
- API client → Remote API: sends requests (evidence: `services/ApiClient.js`)
- Authentication API → Remote API: sends requests (evidence: `services/AuthApi.js`)
- Login page → Browser: uses page (evidence: `pages/LoginPage.js`)
- Terms management → Browser: uses page (evidence: `pages/TermsConditionsPage.js`)
