# dwarak-dev/playwrightautomation architecture

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

- Interactive diagram: https://gitdiagram.com/dwarak-dev/playwrightautomation
- Repository: https://github.com/dwarak-dev/playwrightautomation

## Overview

This repository is a small Playwright/NUnit browser-automation test project, not a user-facing application. Its main workflow drives SauceDemo login scenarios through a page-object helper and checks success or failure in the browser. A separate sample test navigates Playwright’s website and verifies its title and documentation link. The source excerpts show these interactions; the graph therefore maps test workflows and external sites, without inferring additional runtime subsystems.

Main entry points: [`PlaywrightAutomation.Tests/LoginTests.cs`](https://github.com/dwarak-dev/playwrightautomation/blob/master/PlaywrightAutomation.Tests/LoginTests.cs) (Login scenarios), [`PlaywrightAutomation.Tests/Pages/LoginPage.cs`](https://github.com/dwarak-dev/playwrightautomation/blob/master/PlaywrightAutomation.Tests/Pages/LoginPage.cs) (Login page object), [`PlaywrightAutomation.Tests/UnitTest1.cs`](https://github.com/dwarak-dev/playwrightautomation/blob/master/PlaywrightAutomation.Tests/UnitTest1.cs) (Website checks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_login["Login tests"]
  node_login_tests["Login scenarios<br/>[LoginTests.cs]"]
  node_login_page["Login page object<br/>[LoginPage.cs]"]
end

subgraph group_browser["Browser automation"]
  node_browser_page["Playwright page"]
end

subgraph group_sample["Website sample"]
  node_playwright_tests["Website checks<br/>[UnitTest1.cs]"]
end

node_tester(("Test runner"))
node_saucedemo(("SauceDemo"))
node_playwright_site(("Playwright website"))

node_tester -->|"runs"| node_login_tests
node_login_tests -->|"uses"| node_login_page
node_login_page -->|"drives"| node_browser_page
node_browser_page -->|"navigates"| node_saucedemo
node_tester -->|"runs"| node_playwright_tests
node_playwright_tests -->|"drives"| node_browser_page
node_browser_page -->|"navigates"| node_playwright_site

click node_login_tests "https://github.com/dwarak-dev/playwrightautomation/blob/master/PlaywrightAutomation.Tests/LoginTests.cs"
click node_login_page "https://github.com/dwarak-dev/playwrightautomation/blob/master/PlaywrightAutomation.Tests/Pages/LoginPage.cs"
click node_playwright_tests "https://github.com/dwarak-dev/playwrightautomation/blob/master/PlaywrightAutomation.Tests/UnitTest1.cs"

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_tests,node_login_page toneBlue
class node_browser_page toneAmber
class node_playwright_tests toneMint
class node_tester,node_saucedemo,node_playwright_site toneIndigo
```

## Components

### Login tests

- [Login scenarios](https://github.com/dwarak-dev/playwrightautomation/blob/master/PlaywrightAutomation.Tests/LoginTests.cs): `PlaywrightAutomation.Tests/LoginTests.cs`
- [Login page object](https://github.com/dwarak-dev/playwrightautomation/blob/master/PlaywrightAutomation.Tests/Pages/LoginPage.cs): `PlaywrightAutomation.Tests/Pages/LoginPage.cs`

### Browser automation

- **Playwright page**

### Website sample

- [Website checks](https://github.com/dwarak-dev/playwrightautomation/blob/master/PlaywrightAutomation.Tests/UnitTest1.cs): `PlaywrightAutomation.Tests/UnitTest1.cs`

### Other components

- **Test runner**
- **SauceDemo**
- **Playwright website**

## Connections

- Test runner → Login scenarios: runs (evidence: `PlaywrightAutomation.Tests/LoginTests.cs`)
- Login scenarios → Login page object: uses (evidence: `PlaywrightAutomation.Tests/LoginTests.cs`)
- Login page object → Playwright page: drives (evidence: `PlaywrightAutomation.Tests/Pages/LoginPage.cs`)
- Playwright page → SauceDemo: navigates
- Test runner → Website checks: runs (evidence: `PlaywrightAutomation.Tests/UnitTest1.cs`)
- Website checks → Playwright page: drives (evidence: `PlaywrightAutomation.Tests/UnitTest1.cs`)
- Playwright page → Playwright website: navigates
