# lazkorsan/qa701-instulearn-ui architecture

> Architecture diagram of the GitHub repository lazkorsan/qa701-instulearn-ui, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lazkorsan/qa701-instulearn-ui
- Repository: https://github.com/lazkorsan/qa701-instulearn-ui

## Overview

This is a Playwright/TypeScript UI test framework for InstuLearn, with native Playwright tests and a separate Cucumber/Gherkin workflow. The principal BDD path is feature scenarios → step definitions → page objects and shared verification helpers → the tested site; Cucumber hooks manage browser contexts and scenario logging. Native tests provide a direct-code route for checking workflows such as login, registration, and course creation. The graph includes the indexed shared utilities; unsampled test and runner internals are not assigned speculative call links.

Main entry points: [`src/step-definitions/StudentSteps.ts`](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/step-definitions/StudentSteps.ts) (Student steps), [`src/step-definitions/ExampleSteps.ts`](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/step-definitions/ExampleSteps.ts) (Example steps), [`src/pages/StudentPage.ts`](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/pages/StudentPage.ts) (Student page), [`src/features`](https://github.com/lazkorsan/qa701-instulearn-ui/tree/main/src/features) (Gherkin features)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_execution["Test execution"]
  node_native["Native tests"]
  node_runners["Cucumber runners"]
end

subgraph group_bdd["BDD workflow"]
  node_features["Gherkin features"]
  node_steps["Example steps<br/>[ExampleSteps.ts]"]
  node_student_steps["Student steps<br/>[StudentSteps.ts]"]
  node_hooks["Browser hooks<br/>[hooks.ts]"]
  node_plugin_logger["Scenario logger"]
end

subgraph group_pages["Page objects"]
  node_example_page["Example page<br/>[ExamplePage.ts]"]
  node_student_page["Student page<br/>[StudentPage.ts]"]
  node_base_page["Base page<br/>[BasePage.ts]"]
end

subgraph group_shared["Shared utilities"]
  node_reusable["Reusable checks<br/>[ReusableMethods.ts]"]
  node_account["Account storage"]
  node_logger["Shared logger<br/>[LoggerHelper.ts]"]
  node_click["Click utilities<br/>[ClickUtils.ts]"]
  node_select["Select utilities<br/>[SelectUtils.ts]"]
  node_sendkeys["Input utilities<br/>[SendKeysUtils.ts]"]
  node_robot["Robot utilities<br/>[RobotUtils.ts]"]
end

node_engineer(("Test author"))
node_site{{"InstuLearn site"}}

node_engineer -->|"writes tests"| node_native
node_engineer -->|"writes scenarios"| node_features
node_features -->|"binds steps"| node_steps
node_steps -->|"calls methods"| node_example_page
node_student_steps -->|"calls methods"| node_student_page
node_steps -->|"verifies URL"| node_reusable
node_student_steps -->|"verifies URL"| node_reusable
node_student_steps -->|"imports helper"| node_account
node_example_page -->|"extends"| node_base_page
node_student_page -->|"extends"| node_base_page
node_student_page -->|"saves accounts"| node_account
node_account -->|"logs events"| node_logger
node_hooks -->|"logs scenarios"| node_plugin_logger
node_steps -->|"navigates browser"| node_site
node_student_steps -->|"navigates browser"| node_site
node_native -->|"tests workflows"| node_site
node_runners -.->|"runs features"| node_features

click node_native "https://github.com/lazkorsan/qa701-instulearn-ui/tree/main/src/NativeTest"
click node_runners "https://github.com/lazkorsan/qa701-instulearn-ui/tree/main/src/Runners"
click node_features "https://github.com/lazkorsan/qa701-instulearn-ui/tree/main/src/features"
click node_steps "https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/step-definitions/ExampleSteps.ts"
click node_student_steps "https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/step-definitions/StudentSteps.ts"
click node_hooks "https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/step-definitions/hooks.ts"
click node_plugin_logger "https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/step-definitions/LoginPluginLogger.ts"
click node_example_page "https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/pages/ExamplePage.ts"
click node_student_page "https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/pages/StudentPage.ts"
click node_base_page "https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/pages/BasePage.ts"
click node_reusable "https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/utils/ReusableMethods.ts"
click node_account "https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/utils/AccountStorageHelper.ts"
click node_logger "https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/utils/LoggerHelper.ts"
click node_click "https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/utils/ClickUtils.ts"
click node_select "https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/utils/SelectUtils.ts"
click node_sendkeys "https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/utils/SendKeysUtils.ts"
click node_robot "https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/utils/RobotUtils.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_native,node_runners toneBlue
class node_features,node_steps,node_student_steps,node_hooks,node_plugin_logger toneAmber
class node_example_page,node_student_page,node_base_page toneMint
class node_reusable,node_account,node_logger,node_click,node_select,node_sendkeys,node_robot toneRose
class node_engineer,node_site toneIndigo
```

## Components

### Test execution

- [Native tests](https://github.com/lazkorsan/qa701-instulearn-ui/tree/main/src/NativeTest): `src/NativeTest`
- [Cucumber runners](https://github.com/lazkorsan/qa701-instulearn-ui/tree/main/src/Runners): `src/Runners`

### BDD workflow

- [Gherkin features](https://github.com/lazkorsan/qa701-instulearn-ui/tree/main/src/features): `src/features`
- [Example steps](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/step-definitions/ExampleSteps.ts): `src/step-definitions/ExampleSteps.ts`
- [Student steps](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/step-definitions/StudentSteps.ts): `src/step-definitions/StudentSteps.ts`
- [Browser hooks](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/step-definitions/hooks.ts): `src/step-definitions/hooks.ts`
- [Scenario logger](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/step-definitions/LoginPluginLogger.ts): `src/step-definitions/LoginPluginLogger.ts`

### Page objects

- [Example page](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/pages/ExamplePage.ts): `src/pages/ExamplePage.ts`
- [Student page](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/pages/StudentPage.ts): `src/pages/StudentPage.ts`
- [Base page](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/pages/BasePage.ts): `src/pages/BasePage.ts`

### Shared utilities

- [Reusable checks](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/utils/ReusableMethods.ts): `src/utils/ReusableMethods.ts`
- [Account storage](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/utils/AccountStorageHelper.ts): `src/utils/AccountStorageHelper.ts`
- [Shared logger](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/utils/LoggerHelper.ts): `src/utils/LoggerHelper.ts`
- [Click utilities](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/utils/ClickUtils.ts): `src/utils/ClickUtils.ts`
- [Select utilities](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/utils/SelectUtils.ts): `src/utils/SelectUtils.ts`
- [Input utilities](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/utils/SendKeysUtils.ts): `src/utils/SendKeysUtils.ts`
- [Robot utilities](https://github.com/lazkorsan/qa701-instulearn-ui/blob/main/src/utils/RobotUtils.ts): `src/utils/RobotUtils.ts`

### Other components

- **Test author**
- **InstuLearn site**

## Connections

- Test author → Native tests: writes tests (evidence: `Readme.md`)
- Test author → Gherkin features: writes scenarios (evidence: `Readme.md`)
- Gherkin features → Example steps: binds steps (evidence: `Readme.md`)
- Example steps → Example page: calls methods (evidence: `src/step-definitions/ExampleSteps.ts`)
- Student steps → Student page: calls methods (evidence: `src/step-definitions/StudentSteps.ts`)
- Example steps → Reusable checks: verifies URL (evidence: `src/step-definitions/ExampleSteps.ts`)
- Student steps → Reusable checks: verifies URL (evidence: `src/step-definitions/StudentSteps.ts`)
- Student steps → Account storage: imports helper (evidence: `src/step-definitions/StudentSteps.ts`)
- Example page → Base page: extends (evidence: `src/pages/ExamplePage.ts`)
- Student page → Base page: extends (evidence: `src/pages/StudentPage.ts`)
- Student page → Account storage: saves accounts (evidence: `src/pages/StudentPage.ts`)
- Account storage → Shared logger: logs events (evidence: `src/utils/AccountStorageHelper.ts`)
- Browser hooks → Scenario logger: logs scenarios (evidence: `src/step-definitions/hooks.ts`)
- Example steps → InstuLearn site: navigates browser (evidence: `src/step-definitions/ExampleSteps.ts`)
- Student steps → InstuLearn site: navigates browser (evidence: `src/step-definitions/StudentSteps.ts`)
- Native tests → InstuLearn site: tests workflows (evidence: `Readme.md`)
- Cucumber runners → Gherkin features: runs features
