Standard Playwright JavaScript Project Structure
playwright-project/
├── playwright.config.js # Runner configuration and projects
├── package.json # Dependencies and npm scripts
│
├── tests/ # Test specifications (*.spec.js)
│ ├── auth/
│ │ └── login.spec.js
│ └── checkout/
│ └── checkout.spec.js
│
├── pages/ # Page Object Model classes
│ ├── BasePage.js
│ └── LoginPage.js
│
├── components/ # Reusable UI fragments (Navigation, Modals)
│ └── Header.js
│
├── fixtures/ # Custom test fixtures
│ └── testBase.js
│
├── utils/ # Reusable helper functions
│ └── stringHelpers.js
│
├── data/ # Test fixtures and static JSON
│ └── testUsers.json
│
└── config/ # Environment endpoints and timeouts
└── envConfig.js