{"repo":"codewithmmak/playwright-api-testing","free":true,"listed":false,"github":"https://github.com/codewithmmak/playwright-api-testing","clone":"git clone https://github.com/codewithmmak/playwright-api-testing.git","description":"This is a Playwright API testing framework designed to demonstrate playwright api testing example","language":"JavaScript","stars":28,"topics":["api-testing-framework","faker-js","playwright","playwright-demo","playwright-javascript","playwright-tests","rimraf"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"Playwright API Testing Framework A production-style API testing framework using Playwright Test and JavaScript. Highlights - Isolated test data lifecycle for create/read/update/delete scenarios - Environment-driven auth and base URL configuration - Stronger response contract assertions - Positive and negative API coverage - Lint and formatting quality gates - GitHub Actions CI workflow with report artifacts Tech Stack - Node.js 20+ - Playwright Test - Faker for dynamic payloads - ESLint + Prettier Setup 1. Install dependencies: 2. Create a local environment file from the sample: 3. Set valid values in .env : - BASE URL - BOOKER USERNAME - BOOKER PASSWORD Run Commands - Run full test suite: npm test - Run against dev profile: npm run test:dev - Run against qa profile: npm run test:qa - Run against staging profile: npm run test:staging - Run against prod profile: npm run test:prod - Run with headed mode: npm run test:headed - Open last HTML report: npm run test:report - CI-style run with line/junit/html reports: npm run test:ci - Lint checks: npm run lint - Fix lint issues: npm run lint:fix - Format checks: npm run format - Apply formatting: npm run format:write - Install local git hooks: npm run hooks:install Environment Profiles The framework supports profile-based execution using TEST ENV : - dev - .env.dev - qa - .env.qa - staging - .env.staging - prod - .env.prod - default fallback - .env Sample templates are provided: - .env.dev.example - .env.qa.example - .env.staging.ex","default_branch":null,"files":null,"tree":[],"storefront":"/r/codewithmmak","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/codewithmmak/playwright-api-testing/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}