# linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224 architecture

> Architecture diagram of the GitHub repository linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224, 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/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224
- Repository: https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224

## Overview

This is a Playwright training repository, with a sample bagel-shop site and an automation suite demonstrating test data, page-object abstractions, fixtures, and complex scenarios. A typical workflow is to run a test against a configured browser and exercise a site or API; the README describes broader interception and mocking capabilities, but the sampled source does not show their wiring. Dashed, unverified links mark those gaps; test files themselves were not sampled.

Main entry points: [`tests`](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/tests) (Test scenarios), [`lib/pages`](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/lib/pages) (Page objects), [`bagel-shop`](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/bagel-shop) (Bagel-shop site), [`lib/datafactory`](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/lib/datafactory) (Test data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_test["Test workflows"]
  node_suite["Test scenarios"]
  node_auth_setup["Auth setup<br/>[auth.setup.ts]"]
  node_api_tests["API scenarios"]
  node_account_tests["Account scenarios"]
  node_login_tests["Login scenarios"]
  node_checkout_tests["Checkout scenarios"]
  node_shop_tests["Shop scenarios"]
end

subgraph group_abstraction["Test abstractions"]
  node_fixtures["Shared fixtures"]
  node_pages["Page objects"]
  node_login_page["Login page<br/>[login.page.ts]"]
  node_contact_page["Contact page<br/>[contact.page.ts]"]
  node_account_page["Account page<br/>[account.page.ts]"]
  node_messages_page["Messages page<br/>[messages.page.ts]"]
  node_datafactory["Test data"]
  node_register["User registration<br/>[register.ts]"]
  node_messages["Message creation<br/>[messages.ts]"]
  node_helpers["Test helpers"]
end

subgraph group_sample["Sample application"]
  node_shop["Bagel-shop site"]
  node_shop_home["Home and promo<br/>[main.js]"]
  node_shop_order["Order and receipt<br/>[order.js]"]
  node_shop_contact["Contact form<br/>[contact.js]"]
  node_shop_menu["Menu page<br/>[menu.js]"]
end

subgraph group_runtime["Browser and API"]
  node_config["Playwright config"]
  node_browser{{"Browser runtime"}}
  node_api{{"Application API"}}
end

node_engineer(("Test author"))

node_engineer -->|"runs"| node_suite
node_suite -.->|"uses settings"| node_config
node_suite -.->|"uses fixtures"| node_fixtures
node_suite -.->|"uses abstractions"| node_pages
node_suite -.->|"covers API"| node_api_tests
node_suite -.->|"covers accounts"| node_account_tests
node_suite -.->|"covers login"| node_login_tests
node_suite -.->|"covers checkout"| node_checkout_tests
node_suite -.->|"covers shop"| node_shop_tests
node_suite -.->|"includes setup"| node_auth_setup
node_pages -.->|"includes"| node_login_page
node_pages -.->|"includes"| node_contact_page
node_pages -.->|"includes"| node_account_page
node_pages -.->|"includes"| node_messages_page
node_datafactory -.->|"includes"| node_register
node_datafactory -.->|"includes"| node_messages
node_register -->|"posts registration"| node_api
node_messages -->|"posts messages"| node_api
node_shop -.->|"serves script"| node_shop_home
node_shop -.->|"serves script"| node_shop_order
node_shop -.->|"serves script"| node_shop_contact
node_shop -.->|"serves script"| node_shop_menu
node_config -->|"configures projects"| node_browser
node_suite -.->|"exercises"| node_browser
node_suite -.->|"tests"| node_shop

click node_suite "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/tests"
click node_auth_setup "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/tests/auth.setup.ts"
click node_api_tests "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/tests/api"
click node_account_tests "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/tests/account"
click node_login_tests "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/tests/login"
click node_checkout_tests "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/tests/checkout"
click node_shop_tests "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/tests/bagel-shop"
click node_fixtures "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/lib/fixtures"
click node_pages "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/lib/pages"
click node_login_page "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/lib/pages/login/login.page.ts"
click node_contact_page "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/lib/pages/contact/contact.page.ts"
click node_account_page "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/lib/pages/account/account.page.ts"
click node_messages_page "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/lib/pages/account/messages.page.ts"
click node_datafactory "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/lib/datafactory"
click node_register "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/lib/datafactory/register.ts"
click node_messages "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/lib/datafactory/messages.ts"
click node_helpers "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/lib/helpers"
click node_shop "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/bagel-shop"
click node_shop_home "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/bagel-shop/js/main.js"
click node_shop_order "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/bagel-shop/js/order.js"
click node_shop_contact "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/bagel-shop/js/contact.js"
click node_shop_menu "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/bagel-shop/js/menu.js"
click node_config "https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/playwright.config.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_suite,node_auth_setup,node_api_tests,node_account_tests,node_login_tests,node_checkout_tests,node_shop_tests toneBlue
class node_fixtures,node_pages,node_login_page,node_contact_page,node_account_page,node_messages_page,node_datafactory,node_register,node_messages,node_helpers toneAmber
class node_shop,node_shop_home,node_shop_order,node_shop_contact,node_shop_menu toneMint
class node_config,node_browser,node_api toneRose
class node_engineer toneIndigo
```

## Components

### Test workflows

- [Test scenarios](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/tests): `tests`
- [Auth setup](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/tests/auth.setup.ts): `tests/auth.setup.ts`
- [API scenarios](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/tests/api): `tests/api`
- [Account scenarios](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/tests/account): `tests/account`
- [Login scenarios](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/tests/login): `tests/login`
- [Checkout scenarios](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/tests/checkout): `tests/checkout`
- [Shop scenarios](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/tests/bagel-shop): `tests/bagel-shop`

### Test abstractions

- [Shared fixtures](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/lib/fixtures): `lib/fixtures`
- [Page objects](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/lib/pages): `lib/pages`
- [Login page](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/lib/pages/login/login.page.ts): `lib/pages/login/login.page.ts`
- [Contact page](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/lib/pages/contact/contact.page.ts): `lib/pages/contact/contact.page.ts`
- [Account page](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/lib/pages/account/account.page.ts): `lib/pages/account/account.page.ts`
- [Messages page](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/lib/pages/account/messages.page.ts): `lib/pages/account/messages.page.ts`
- [Test data](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/lib/datafactory): `lib/datafactory`
- [User registration](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/lib/datafactory/register.ts): `lib/datafactory/register.ts`
- [Message creation](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/lib/datafactory/messages.ts): `lib/datafactory/messages.ts`
- [Test helpers](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/lib/helpers): `lib/helpers`

### Sample application

- [Bagel-shop site](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/tree/main/bagel-shop): `bagel-shop`
- [Home and promo](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/bagel-shop/js/main.js): `bagel-shop/js/main.js`
- [Order and receipt](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/bagel-shop/js/order.js): `bagel-shop/js/order.js`
- [Contact form](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/bagel-shop/js/contact.js): `bagel-shop/js/contact.js`
- [Menu page](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/bagel-shop/js/menu.js): `bagel-shop/js/menu.js`

### Browser and API

- [Playwright config](https://github.com/linkedinlearning/playwright-essential-training-abstractions-fixtures-and-complex-scenarios-4278224/blob/main/playwright.config.ts): `playwright.config.ts`
- **Browser runtime**
- **Application API**

### Other components

- **Test author**

## Connections

- Test author → Test scenarios: runs (evidence: `README.md`)
- Test scenarios → Playwright config: uses settings
- Test scenarios → Shared fixtures: uses fixtures
- Test scenarios → Page objects: uses abstractions
- Test scenarios → API scenarios: covers API
- Test scenarios → Account scenarios: covers accounts
- Test scenarios → Login scenarios: covers login
- Test scenarios → Checkout scenarios: covers checkout
- Test scenarios → Shop scenarios: covers shop
- Test scenarios → Auth setup: includes setup
- Page objects → Login page: includes
- Page objects → Contact page: includes
- Page objects → Account page: includes
- Page objects → Messages page: includes
- Test data → User registration: includes
- Test data → Message creation: includes
- User registration → Application API: posts registration (evidence: `lib/datafactory/register.ts`)
- Message creation → Application API: posts messages (evidence: `lib/datafactory/messages.ts`)
- Bagel-shop site → Home and promo: serves script
- Bagel-shop site → Order and receipt: serves script
- Bagel-shop site → Contact form: serves script
- Bagel-shop site → Menu page: serves script
- Playwright config → Browser runtime: configures projects (evidence: `playwright.config.ts`)
- Test scenarios → Browser runtime: exercises
- Test scenarios → Bagel-shop site: tests
