# maxxsalov/diplom3 architecture

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

- Interactive diagram: https://gitdiagram.com/maxxsalov/diplom3
- Repository: https://github.com/maxxsalov/diplom3

## Overview

This repository is a Selenium/Pytest UI test suite for Stellar Burgers. Its user-to-result workflow is running browser checks that navigate the site, interact through page objects and locators, and assert visible outcomes across burger construction/orders, account actions, and password recovery. The README identifies the test suites and page modules; sampled source confirms fixture setup, browser helpers, and several page-object relationships. Some page and test implementations were not sampled, so those links are documented at a high level rather than inferred as exact calls.

Main entry points: [`pages/main_page.py`](https://github.com/maxxsalov/diplom3/blob/main/pages/main_page.py) (Burger and feed), [`conftest.py`](https://github.com/maxxsalov/diplom3/blob/main/conftest.py) (Browser fixtures), [`pages/personal_area_page.py`](https://github.com/maxxsalov/diplom3/blob/main/pages/personal_area_page.py) (Account actions), [`pages/restore_password_page.py`](https://github.com/maxxsalov/diplom3/blob/main/pages/restore_password_page.py) (Password recovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_execution["Test execution"]
  node_fixtures["Browser fixtures<br/>[conftest.py]"]
  node_main_tests["Main checks"]
  node_order_tests["Order checks<br/>[test_order_line.py]"]
  node_account_tests["Account checks"]
  node_restore_tests["Recovery checks"]
end

subgraph group_pages["Page interactions"]
  node_base_page["Browser helpers<br/>[base_page.py]"]
  node_main_page["Burger and feed<br/>[main_page.py]"]
  node_account_page["Account actions"]
  node_restore_page["Password recovery"]
end

subgraph group_selectors["Selectors and configuration"]
  node_data["Test credentials<br/>[data.py]"]
  node_urls["Page URLs<br/>[urls.py]"]
  node_login_locators["Login selectors"]
  node_main_locators["Burger selectors<br/>[main_locators.py]"]
  node_restore_locators["Recovery selectors"]
end

subgraph group_site["Stellar Burgers"]
  node_website{{"Stellar Burgers"}}
end

node_engineer(("Test runner"))

node_engineer -->|"runs checks"| node_fixtures
node_fixtures -->|"uses credentials"| node_data
node_fixtures -->|"opens login"| node_urls
node_fixtures -->|"locates login"| node_login_locators
node_fixtures -->|"opens browser"| node_website
node_main_tests -.->|"checks features"| node_main_page
node_order_tests -.->|"checks ordering"| node_main_page
node_account_tests -.->|"checks account"| node_account_page
node_restore_tests -.->|"checks recovery"| node_restore_page
node_base_page -.->|"drives browser"| node_website
node_main_page -->|"inherits helpers"| node_base_page
node_main_page -->|"uses selectors"| node_main_locators
node_account_page -->|"inherits methods"| node_main_page
node_account_page -->|"uses selectors"| node_login_locators
node_account_page -->|"uses selectors"| node_main_locators
node_restore_page -.->|"uses selectors"| node_restore_locators
node_main_page -.->|"interacts with site"| node_website
node_account_page -.->|"interacts with site"| node_website
node_restore_page -.->|"interacts with site"| node_website

click node_fixtures "https://github.com/maxxsalov/diplom3/blob/main/conftest.py"
click node_main_tests "https://github.com/maxxsalov/diplom3/blob/main/tests/test_main_functions.py"
click node_order_tests "https://github.com/maxxsalov/diplom3/blob/main/tests/test_order_line.py"
click node_account_tests "https://github.com/maxxsalov/diplom3/blob/main/tests/test_personal_area.py"
click node_restore_tests "https://github.com/maxxsalov/diplom3/blob/main/tests/test_restore_password.py"
click node_base_page "https://github.com/maxxsalov/diplom3/blob/main/pages/base_page.py"
click node_main_page "https://github.com/maxxsalov/diplom3/blob/main/pages/main_page.py"
click node_account_page "https://github.com/maxxsalov/diplom3/blob/main/pages/personal_area_page.py"
click node_restore_page "https://github.com/maxxsalov/diplom3/blob/main/pages/restore_password_page.py"
click node_data "https://github.com/maxxsalov/diplom3/blob/main/data.py"
click node_urls "https://github.com/maxxsalov/diplom3/blob/main/urls.py"
click node_login_locators "https://github.com/maxxsalov/diplom3/blob/main/locators/login_page_locators.py"
click node_main_locators "https://github.com/maxxsalov/diplom3/blob/main/locators/main_locators.py"
click node_restore_locators "https://github.com/maxxsalov/diplom3/blob/main/locators/restore_page_locators.py"

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_fixtures,node_main_tests,node_order_tests,node_account_tests,node_restore_tests toneBlue
class node_base_page,node_main_page,node_account_page,node_restore_page toneAmber
class node_data,node_urls,node_login_locators,node_main_locators,node_restore_locators toneMint
class node_website toneRose
class node_engineer toneIndigo
```

## Components

### Test execution

- [Browser fixtures](https://github.com/maxxsalov/diplom3/blob/main/conftest.py): `conftest.py`
- [Main checks](https://github.com/maxxsalov/diplom3/blob/main/tests/test_main_functions.py): `tests/test_main_functions.py`
- [Order checks](https://github.com/maxxsalov/diplom3/blob/main/tests/test_order_line.py): `tests/test_order_line.py`
- [Account checks](https://github.com/maxxsalov/diplom3/blob/main/tests/test_personal_area.py): `tests/test_personal_area.py`
- [Recovery checks](https://github.com/maxxsalov/diplom3/blob/main/tests/test_restore_password.py): `tests/test_restore_password.py`

### Page interactions

- [Browser helpers](https://github.com/maxxsalov/diplom3/blob/main/pages/base_page.py): `pages/base_page.py`
- [Burger and feed](https://github.com/maxxsalov/diplom3/blob/main/pages/main_page.py): `pages/main_page.py`
- [Account actions](https://github.com/maxxsalov/diplom3/blob/main/pages/personal_area_page.py): `pages/personal_area_page.py`
- [Password recovery](https://github.com/maxxsalov/diplom3/blob/main/pages/restore_password_page.py): `pages/restore_password_page.py`

### Selectors and configuration

- [Test credentials](https://github.com/maxxsalov/diplom3/blob/main/data.py): `data.py`
- [Page URLs](https://github.com/maxxsalov/diplom3/blob/main/urls.py): `urls.py`
- [Login selectors](https://github.com/maxxsalov/diplom3/blob/main/locators/login_page_locators.py): `locators/login_page_locators.py`
- [Burger selectors](https://github.com/maxxsalov/diplom3/blob/main/locators/main_locators.py): `locators/main_locators.py`
- [Recovery selectors](https://github.com/maxxsalov/diplom3/blob/main/locators/restore_page_locators.py): `locators/restore_page_locators.py`

### Stellar Burgers

- **Stellar Burgers**

### Other components

- **Test runner**

## Connections

- Test runner → Browser fixtures: runs checks (evidence: `README.md`)
- Browser fixtures → Test credentials: uses credentials (evidence: `conftest.py`)
- Browser fixtures → Page URLs: opens login (evidence: `conftest.py`)
- Browser fixtures → Login selectors: locates login (evidence: `conftest.py`)
- Browser fixtures → Stellar Burgers: opens browser (evidence: `conftest.py`)
- Main checks → Burger and feed: checks features (evidence: `README.md`)
- Order checks → Burger and feed: checks ordering (evidence: `README.md`)
- Account checks → Account actions: checks account (evidence: `README.md`)
- Recovery checks → Password recovery: checks recovery (evidence: `README.md`)
- Browser helpers → Stellar Burgers: drives browser
- Burger and feed → Browser helpers: inherits helpers (evidence: `pages/main_page.py`)
- Burger and feed → Burger selectors: uses selectors (evidence: `pages/main_page.py`)
- Account actions → Burger and feed: inherits methods (evidence: `pages/personal_area_page.py`)
- Account actions → Login selectors: uses selectors (evidence: `pages/personal_area_page.py`)
- Account actions → Burger selectors: uses selectors (evidence: `pages/personal_area_page.py`)
- Password recovery → Recovery selectors: uses selectors
- Burger and feed → Stellar Burgers: interacts with site
- Account actions → Stellar Burgers: interacts with site
- Password recovery → Stellar Burgers: interacts with site
