This repository is a Playwright + TypeScript automation framework that covers multiple end-to-end flows for the LetCode demo application. It is structured for maintainable test development and easy integration with CI/CD pipelines (e.g. GitHub Actions).
- 🤖 Multiple E2E scenarios automated using Playwright Test
- 📦 Page Object Model (POM) design for reusable and maintainable code
- 🔐 Auth state saved in
auth.jsonto skip repetitive logins - 📊 JSON-based test data in the
datafolder - ⚙️ CI/CD-ready structure with
.githubworkflows support - 📈 HTML and JSON reports generated under
test-resultsandreport.json
- 🟢 Node.js (CommonJS)
- 📘 TypeScript
5.9.3 - 🎭 Playwright
1.57.0 - ✅ @playwright/test
1.57.0
.github/– 🔄 GitHub Actions workflows for CI/CD (running tests on push/PR)pages/– 📄 Page Object Model classes for LetCode pages and flowstest/– 🧪 Test specs covering different business flows and combinationsdata/– 💾 Test data files used across multiple casesauth.json– 🔑 Stored authentication state for logged-in sessionsplaywright.config.ts– ⚙️ Global Playwright configuration (base URL, projects, reporters, etc.)test-results/– 📊 Playwright HTML and trace results (auto-generated)report.json– 📋 Example JSON report generated from a test runpackage.json/package-lock.json– 📦 NPM scripts and dependencies
- 🟢 Node.js LTS (recommended: 18 or later)
- 🔧 Git
- 🌐 Internet access for Playwright to download browser binaries