This repository contains an API automation testing framework built with Playwright and TypeScript, focused on validating a real public REST API.
The project demonstrates how to design, structure, and run reliable API tests with proper assertions, negative scenarios, and CI integration.
- Playwright – API testing framework
- TypeScript – type-safe test development
- Node.js
- GitHub Actions – CI pipeline
Fake Store API
Base URL: https://fakestoreapi.com
This is a public API that simulates e-commerce backend functionality, making it suitable for realistic API testing scenarios.
- API automation using Playwright’s request context
- Validation of HTTP status codes
- Response body assertions
- Positive and negative test scenarios
- Handling public API limitations (rate limiting / access restrictions)
- CI pipeline using GitHub Actions
- Clean and maintainable test structure
🤖 Continuous Integration
-Tests run automatically on every push and pull request -Implemented using GitHub Actions -CI status is visible via the badge at the top of the repository
🎯 Why Playwright for API Testing?
-Built-in API request context -Unified tool for UI + API testing -Fast execution -First-class TypeScript support -Easy CI integration