# udworkrepository/learningselenium architecture

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

- Interactive diagram: https://gitdiagram.com/udworkrepository/learningselenium
- Repository: https://github.com/udworkrepository/learningselenium

## Overview

This repository is itself a cross-browser acceptance-test product: a user runs either the Playwright or Selenium/NUnit suite, which checks the flight-booking practice page. The README documents both suites’ scenario coverage and browser choices; source excerpts show Playwright’s test-directory and browser-project configuration. The Selenium implementation and both test files were not sampled, so their internal calls and scenario breakdown are not shown.

Main entry points: [`playwright.config.js`](https://github.com/udworkrepository/learningselenium/blob/main/playwright.config.js) (Browser configuration), [`tests/selenium/BookingTests.cs`](https://github.com/udworkrepository/learningselenium/blob/main/tests/selenium/BookingTests.cs) (Booking scenarios), [`tests/playwright/booking.spec.js`](https://github.com/udworkrepository/learningselenium/blob/main/tests/playwright/booking.spec.js) (Booking scenarios), [`tests/selenium/BookingTests.csproj`](https://github.com/udworkrepository/learningselenium/blob/main/tests/selenium/BookingTests.csproj) (NUnit test project)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pw["Playwright suite"]
  node_pw_config["Browser configuration"]
  node_pw_tests["Booking scenarios<br/>[booking.spec.js]"]
  node_pw_browsers["Chrome, Brave, WebKit"]
end

subgraph group_sel["Selenium suite"]
  node_selenium_tests["Booking scenarios<br/>[BookingTests.cs]"]
  node_selenium_project["NUnit test project"]
  node_selenium_browsers["Chrome, Brave, Safari"]
end

subgraph group_target["Test target"]
  node_site["Flight booking page"]
end

node_user(("Test runner"))

node_user -->|"runs suite"| node_pw_config
node_pw_config -->|"selects tests"| node_pw_tests
node_pw_config -->|"configures projects"| node_pw_browsers
node_pw_tests -->|"checks page"| node_site
node_user -->|"runs suite"| node_selenium_project
node_selenium_project -->|"runs tests"| node_selenium_tests
node_selenium_tests -->|"runs against"| node_selenium_browsers
node_selenium_tests -->|"checks page"| node_site

click node_pw_config "https://github.com/udworkrepository/learningselenium/blob/main/playwright.config.js"
click node_pw_tests "https://github.com/udworkrepository/learningselenium/blob/main/tests/playwright/booking.spec.js"
click node_selenium_tests "https://github.com/udworkrepository/learningselenium/blob/main/tests/selenium/BookingTests.cs"
click node_selenium_project "https://github.com/udworkrepository/learningselenium/blob/main/tests/selenium/BookingTests.csproj"

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_pw_config,node_pw_tests,node_pw_browsers toneBlue
class node_selenium_tests,node_selenium_project,node_selenium_browsers toneAmber
class node_site toneMint
class node_user toneIndigo
```

## Components

### Playwright suite

- [Browser configuration](https://github.com/udworkrepository/learningselenium/blob/main/playwright.config.js): `playwright.config.js`
- [Booking scenarios](https://github.com/udworkrepository/learningselenium/blob/main/tests/playwright/booking.spec.js): `tests/playwright/booking.spec.js`
- **Chrome, Brave, WebKit**

### Selenium suite

- [Booking scenarios](https://github.com/udworkrepository/learningselenium/blob/main/tests/selenium/BookingTests.cs): `tests/selenium/BookingTests.cs`
- [NUnit test project](https://github.com/udworkrepository/learningselenium/blob/main/tests/selenium/BookingTests.csproj): `tests/selenium/BookingTests.csproj`
- **Chrome, Brave, Safari**

### Test target

- **Flight booking page**

### Other components

- **Test runner**

## Connections

- Test runner → Browser configuration: runs suite (evidence: `README.md`)
- Browser configuration → Booking scenarios: selects tests (evidence: `playwright.config.js`)
- Browser configuration → Chrome, Brave, WebKit: configures projects (evidence: `playwright.config.js`)
- Booking scenarios → Flight booking page: checks page (evidence: `README.md`)
- Test runner → NUnit test project: runs suite (evidence: `README.md`)
- NUnit test project → Booking scenarios: runs tests (evidence: `README.md`)
- Booking scenarios → Chrome, Brave, Safari: runs against (evidence: `README.md`)
- Booking scenarios → Flight booking page: checks page (evidence: `README.md`)
