How vitalets/playwright-bdd-example works
This repository is a small React users-directory app presented as a Playwright BDD example. The user-facing flow loads users from JSONPlaceholder, displays the list, and shows selected-user details. Its BDD example configures Playwright and provides shared fixtures and step definitions. The graph follows relationships visible in the sampled source and README; feature-file contents were not sampled, so scenario-to-step mappings are omitted.
Main entry points: App.tsx App coordinator · playwright.config.ts Playwright config · main.tsx React entry · UsersList.tsx Users list
Components 11
Users app
- React entry
src/main.tsx - App coordinator
src/App.tsx - User model
src/User.ts - Users list
src/UsersList.tsx - User details
src/UserInfo.tsx
BDD example
- Playwright config
playwright.config.ts - BDD scenarios
features/users.feature - BDD fixtures
features/steps/fixtures.ts - Step definitions
features/steps/index.ts
Other components
- Browser user
- JSONPlaceholder API
Connections 10
- Browser user → React entry: opens app
- React entry → App coordinator: renders
src/main.tsx - App coordinator → JSONPlaceholder API: fetches users
src/App.tsx - App coordinator → Users list: renders list
src/App.tsx - App coordinator → User details: renders details
src/App.tsx - Users list → User model: uses type
src/UsersList.tsx - User details → User model: uses type
src/UserInfo.tsx - Playwright config → BDD scenarios: loads scenarios
playwright.config.ts - Playwright config → Step definitions: loads steps
playwright.config.ts - Step definitions → BDD fixtures: imports bindings
features/steps/index.ts