Hybrid QA automation framework using Playwright for API + UI testing with a clean service layer, tagged test suites, and CI-ready structure.
This repo demonstrates a real-world workflow:
- authenticate via API
- validate products via API
- create an order via API
- verify the order exists via UI by injecting the token into
localStorage(skip UI login)
- Playwright Test (UI + APIRequestContext)
- Node.js (CommonJS)
.envconfiguration (local) + GitHub Secrets (CI)
src/
api/
apiClient.js
auth.service.js
products.service.js
orders.service.js
utils/
authStorage.js
tests/
api/
auth.negative-edge.api.spec.js
orders.negative-edge.api.spec.js
contracts.api.spec.js
e2e/
orders.api.spec.js
.github/
workflows/
playwright.yml