# testleaftrainings/pw_wd_aug_26 architecture

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

- Interactive diagram: https://gitdiagram.com/testleaftrainings/pw_wd_aug_26
- Repository: https://github.com/testleaftrainings/pw_wd_aug_26

## Overview

This repository is primarily a collection of JavaScript and TypeScript training examples, with small Playwright and API-integration exercises. The clearest user-to-result flows are browser login automation and reporting failed or timed-out tests to Jira; a separate helper creates and fetches Salesforce leads. The README is empty, so the map reflects the sampled source and file tree; unsampled examples are grouped by topic, without inferred runtime links.

Main entry points: [`Pages/01-loginPage.js`](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Pages/01-loginPage.js) (Login script), [`Pages/01-loginPage.ts`](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Pages/01-loginPage.ts) (Login page object), [`Week8Day1/after-hooks-jiraticket.ts`](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week8Day1/after-hooks-jiraticket.ts) (Failure hook), [`Week8Day1/jiraIntegration.ts`](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week8Day1/jiraIntegration.ts) (Jira issue client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_js["JavaScript lessons"]
  node_js_fundamentals["Language basics<br/>[jsDataType.js]"]
  node_js_control["Control flow"]
  node_js_operators["Operators<br/>[operators.js]"]
  node_js_collections["Arrays and strings<br/>[array.js]"]
  node_js_functions["Functions and async<br/>[promise.js]"]
end

subgraph group_ts["TypeScript lessons"]
  node_ts_basics["TypeScript basics<br/>[datatype.ts]"]
  node_ts_types["Types and enums<br/>[typeAlias.ts]"]
  node_ts_classes["Classes<br/>[class.ts]"]
  node_ts_inheritance["Inheritance examples<br/>[Hierarchical.ts]"]
  node_ts_access["Access modifiers<br/>[accessModifier.ts]"]
  node_bank_contracts["Bank interfaces<br/>[interface.ts]"]
  node_bank_implementation["Bank classes<br/>[abstract.ts]"]
end

subgraph group_automation["Browser automation"]
  node_login_js["Login script<br/>[01-loginPage.js]"]
  node_login_ts["Login page object<br/>[01-loginPage.ts]"]
end

subgraph group_integrations["API integrations"]
  node_salesforce_api["Salesforce lead API<br/>[apiUtility.ts]"]
  node_jira_hook["Failure hook"]
  node_jira_client["Jira issue client<br/>[jiraIntegration.ts]"]
end

node_learner(("Learner"))
node_user(("Browser user"))
node_playwright["Playwright browser"]
node_salesforce["Salesforce"]
node_test_result(("Test result"))
node_jira["Jira"]

node_learner -->|"studies"| node_js_fundamentals
node_learner -->|"studies"| node_js_control
node_learner -->|"studies"| node_js_operators
node_learner -->|"studies"| node_js_collections
node_learner -->|"studies"| node_js_functions
node_learner -->|"studies"| node_ts_basics
node_learner -->|"studies"| node_ts_types
node_learner -->|"studies"| node_ts_classes
node_learner -->|"studies"| node_ts_inheritance
node_learner -->|"studies"| node_ts_access
node_user -->|"starts login"| node_login_ts
node_login_ts -->|"drives browser"| node_playwright
node_user -->|"starts login"| node_login_js
node_login_js -->|"drives browser"| node_playwright
node_salesforce_api -->|"requests token and leads"| node_salesforce
node_test_result -.->|"provides status"| node_jira_hook
node_jira_hook -->|"creates issue"| node_jira_client
node_jira_client -->|"posts issue"| node_jira
node_bank_implementation -->|"implements interfaces"| node_bank_contracts

click node_js_fundamentals "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week1Day2/jsDataType.js"
click node_js_control "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week1Day3/condiction_ifelse.js"
click node_js_operators "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week1Day4/operators.js"
click node_js_collections "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week2Day1/array.js"
click node_js_functions "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week2Day3/promise.js"
click node_ts_basics "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week4Day1/datatype.ts"
click node_ts_types "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week4Day2/typeAlias.ts"
click node_ts_classes "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week5Day4/class.ts"
click node_ts_inheritance "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week6Day1/Hierarchical.ts"
click node_ts_access "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week6Day1/accessModifier.ts"
click node_bank_contracts "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week6Day2/interface.ts"
click node_bank_implementation "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week6Day2/abstract.ts"
click node_login_js "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Pages/01-loginPage.js"
click node_login_ts "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Pages/01-loginPage.ts"
click node_salesforce_api "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week8Day1/apiUtility.ts"
click node_jira_hook "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week8Day1/after-hooks-jiraticket.ts"
click node_jira_client "https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week8Day1/jiraIntegration.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_js_fundamentals,node_js_control,node_js_operators,node_js_collections,node_js_functions,node_user,node_playwright toneBlue
class node_ts_basics,node_ts_types,node_ts_classes,node_ts_inheritance,node_ts_access,node_bank_contracts,node_bank_implementation toneAmber
class node_login_js,node_login_ts toneMint
class node_salesforce_api,node_jira_hook,node_jira_client toneRose
class node_learner,node_salesforce,node_test_result,node_jira toneIndigo
```

## Components

### JavaScript lessons

- [Language basics](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week1Day2/jsDataType.js): `Week1Day2/jsDataType.js`
- [Control flow](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week1Day3/condiction_ifelse.js): `Week1Day3/condiction_ifelse.js`
- [Operators](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week1Day4/operators.js): `Week1Day4/operators.js`
- [Arrays and strings](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week2Day1/array.js): `Week2Day1/array.js`
- [Functions and async](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week2Day3/promise.js): `Week2Day3/promise.js`

### TypeScript lessons

- [TypeScript basics](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week4Day1/datatype.ts): `Week4Day1/datatype.ts`
- [Types and enums](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week4Day2/typeAlias.ts): `Week4Day2/typeAlias.ts`
- [Classes](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week5Day4/class.ts): `Week5Day4/class.ts`
- [Inheritance examples](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week6Day1/Hierarchical.ts): `Week6Day1/Hierarchical.ts`
- [Access modifiers](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week6Day1/accessModifier.ts): `Week6Day1/accessModifier.ts`
- [Bank interfaces](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week6Day2/interface.ts): `Week6Day2/interface.ts`
- [Bank classes](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week6Day2/abstract.ts): `Week6Day2/abstract.ts`

### Browser automation

- [Login script](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Pages/01-loginPage.js): `Pages/01-loginPage.js`
- [Login page object](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Pages/01-loginPage.ts): `Pages/01-loginPage.ts`

### API integrations

- [Salesforce lead API](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week8Day1/apiUtility.ts): `Week8Day1/apiUtility.ts`
- [Failure hook](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week8Day1/after-hooks-jiraticket.ts): `Week8Day1/after-hooks-jiraticket.ts`
- [Jira issue client](https://github.com/testleaftrainings/pw_wd_aug_26/blob/main/Week8Day1/jiraIntegration.ts): `Week8Day1/jiraIntegration.ts`

### Other components

- **Learner**
- **Browser user**
- **Playwright browser**
- **Salesforce**
- **Test result**
- **Jira**

## Connections

- Learner → Language basics: studies
- Learner → Control flow: studies
- Learner → Operators: studies
- Learner → Arrays and strings: studies
- Learner → Functions and async: studies
- Learner → TypeScript basics: studies
- Learner → Types and enums: studies
- Learner → Classes: studies
- Learner → Inheritance examples: studies
- Learner → Access modifiers: studies
- Browser user → Login page object: starts login (evidence: `Pages/01-loginPage.ts`)
- Login page object → Playwright browser: drives browser (evidence: `Pages/01-loginPage.ts`)
- Browser user → Login script: starts login (evidence: `Pages/01-loginPage.js`)
- Login script → Playwright browser: drives browser (evidence: `Pages/01-loginPage.js`)
- Salesforce lead API → Salesforce: requests token and leads (evidence: `Week8Day1/apiUtility.ts`)
- Test result → Failure hook: provides status
- Failure hook → Jira issue client: creates issue (evidence: `Week8Day1/after-hooks-jiraticket.ts`)
- Jira issue client → Jira: posts issue (evidence: `Week8Day1/jiraIntegration.ts`)
- Bank classes → Bank interfaces: implements interfaces (evidence: `Week6Day2/abstract.ts`)
