-
Notifications
You must be signed in to change notification settings - Fork 0
Home
yhAutomationQA edited this page May 9, 2026
·
4 revisions
This is the wiki for the Playwright + TypeScript Automation Framework.
git clone https://github.com/yhAutomationQA/playwright-typescript-framework.git
cd playwright-typescript-framework
npm install
npx playwright install
npm testPages extend BasePage and use Playwright's built-in auto-waiting:
| Page | Purpose |
|---|---|
LoginPage |
Login/logout flows |
InventoryPage |
Product browsing and cart management |
CartPage |
Cart review and checkout |
The ApiClient fixture provides typed HTTP methods (GET, POST, PUT, DELETE) with query params, custom headers, and timeout support.
npm run docker:testRuns inside mcr.microsoft.com/playwright with all browsers and system dependencies.
- GitHub Actions — lint, Snyk scan, cross-browser tests (chromium/firefox/webkit)
- Jenkins — full pipeline with Docker, reports, and security scanning
- SonarCloud — auto-analysis with quality gate on PRs
Set ENV=dev|qa|staging|prod to switch environments. Defaults to dev.
Snyk dependency scanning runs in CI. Local: npm run snyk:test.
The framework includes a Model Context Protocol server for AI-assisted browser automation. See MCP Server for details.