{"id":33314495,"url":"https://github.com/jptrp/saucedemo-playwright","last_synced_at":"2026-04-15T20:05:19.477Z","repository":{"id":324455506,"uuid":"1097282107","full_name":"jptrp/saucedemo-playwright","owner":"jptrp","description":"Playwright + TypeScript automation framework for SauceDemo with comprehensive test coverage","archived":false,"fork":false,"pushed_at":"2025-11-15T22:28:46.000Z","size":1658,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-16T00:19:24.204Z","etag":null,"topics":["automation","automation-testing","playwright","playwright-tests","playwright-typescript","pomme","qa","qa-automation","test-automation","testing","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jptrp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-15T21:51:42.000Z","updated_at":"2025-11-15T22:28:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jptrp/saucedemo-playwright","commit_stats":null,"previous_names":["jptrp/saucedemo-playwright"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jptrp/saucedemo-playwright","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jptrp%2Fsaucedemo-playwright","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jptrp%2Fsaucedemo-playwright/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jptrp%2Fsaucedemo-playwright/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jptrp%2Fsaucedemo-playwright/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jptrp","download_url":"https://codeload.github.com/jptrp/saucedemo-playwright/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jptrp%2Fsaucedemo-playwright/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31857639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","automation-testing","playwright","playwright-tests","playwright-typescript","pomme","qa","qa-automation","test-automation","testing","typescript"],"created_at":"2025-11-19T12:00:47.436Z","updated_at":"2026-04-15T20:05:19.460Z","avatar_url":"https://github.com/jptrp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e🧪 Playwright UI Automation Framework\u003c/h1\u003e\n  \u003cstrong\u003eModern, maintainable end-to-end automation using Playwright, TypeScript, and the Page Object Model.\u003c/strong\u003e\n  \u003cbr\u003e\u003cbr\u003e\n  \u003cimg src=\"https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge\u0026logo=typescript\u0026logoColor=white\" alt=\"TypeScript\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Playwright-2EAD33?style=for-the-badge\u0026logo=playwright\u0026logoColor=white\" alt=\"Playwright\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/GitHub_Actions-2088FF?style=for-the-badge\u0026logo=github-actions\u0026logoColor=white\" alt=\"GitHub Actions\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Tests-25_Passing-success?style=for-the-badge\" alt=\"Tests\" /\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Pattern-Page_Object_Model-blue?style=for-the-badge\" alt=\"POM\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Coverage-Login_|_Cart_|_Checkout-informational?style=for-the-badge\" alt=\"Coverage\" /\u003e\n\u003c/div\u003e\n\n---\n\n## 🎯 Why This Project Matters\n\n**Most QA portfolios only show simple scripts. This repo demonstrates real-world automation capability:**\n\n- ✅ **Clean Architecture** - Page Object Model pattern with proper encapsulation and reusability\n- ✅ **Comprehensive Coverage** - 25+ tests across authentication, inventory, cart, and checkout flows\n- ✅ **Production-Ready** - CI/CD pipeline with GitHub Actions, automated testing on every push\n- ✅ **Modern Stack** - TypeScript with Playwright, following current industry standards\n- ✅ **Best Practices** - Centralized test data, JSDoc documentation, AAA test pattern\n- ✅ **Robust Selectors** - Data-test attributes and defensive locator strategies\n- ✅ **Cross-Browser** - Configured for Chromium, Firefox, and WebKit testing\n- ✅ **Professional Reporting** - HTML reports with screenshots and videos on failure\n- ✅ **Maintainable** - DRY principles, clear naming conventions, and comprehensive comments\n\n**This isn't just test automation—it's a scalable framework that shows enterprise-level thinking.**\n\n---\n\n## 🎬 Demo\n\n![Test Execution Demo](./demo.gif)\n\n*Automated end-to-end checkout flow running in Chromium*\n\n---\n\n## 📋 Overview\n\nA production-ready UI automation framework built using Playwright, TypeScript, and the Page Object Model (POM) pattern.\nThis project demonstrates clean automation architecture, comprehensive test coverage, and CI/CD integration — all aligned with real-world QA Engineer workflows.\n\n📚 **Documentation**:\n- [Test Strategy](./docs/TestStrategy.md) - Comprehensive testing approach and methodology\n- [Test Plan](./docs/TestPlan.md) - Detailed test planning and execution strategy  \n- [Architecture](./docs/Architecture.md) - Framework design and technical architecture\n\n---\n\n## 🚀 Tech Stack\n\n- Playwright (TypeScript)\n- Page Object Model (POM)\n- GitHub Actions (Continuous Integration)\n- Node.js\n- HTML Reporter\n- Cross-browser testing (Chromium, Firefox, WebKit)\n\n---\n\n## 📁 Project Structure\n\n```text\nsaucedemo-playwright/\n├── tests/                 # Test specs\n│   ├── login.spec.ts\n│   ├── inventory.spec.ts\n│   ├── cart.spec.ts\n│   └── checkout.spec.ts\n│\n├── pages/                 # Page Object Model classes\n│   ├── BasePage.ts\n│   ├── LoginPage.ts\n│   ├── InventoryPage.ts\n│   ├── CartPage.ts\n│   └── CheckoutPage.ts\n│\n├── fixtures/              # Test data\n│   └── testData.ts\n│\n├── playwright.config.ts   # Global Playwright settings\n├── package.json\n│\n└── .github/workflows/     # CI pipeline\n    └── playwright.yml\n```\n\n---\n\n## 🧪 Features \u0026 Tests Included\n\n### ✔️ Login tests\n\n- Valid login\n- Invalid login (error validation)\n\n### ✔️ Inventory tests\n\n- Add item to cart\n- Navigate from inventory → cart\n\n### ✔️ Cart \u0026 Checkout tests\n\n- Start checkout\n- Fill user information\n- Complete the purchase\n- Validate confirmation screen\n\n### ✔️ Page Object Model (POM)\n\n- LoginPage\n- InventoryPage\n- CartPage\n- CheckoutPage\n- BasePage (shared functionality)\n\n### ✔️ CI Integration\n\n- GitHub Actions workflow triggers on push and pull requests\n- Ensures all tests run headless in CI\n\n---\n\n## ▶️ Running Tests Locally\n\nInstall dependencies:\n\n```bash\nnpm install\n```\n\nRun all Playwright tests:\n\n```bash\nnpx playwright test\n```\n\nView the HTML test report:\n\n```bash\nnpx playwright show-report\n```\n\nRun tests in headed mode:\n\n```bash\nnpx playwright test --headed\n```\n\nRun a specific test file:\n\n```bash\nnpx playwright test tests/login.spec.ts\n```\n\n---\n\n## 🤖 Continuous Integration (CI)\n\nGitHub Actions workflow automatically runs:\n\n- `npm ci`\n- Install Playwright browsers\n- All test specs\n- Generate report artifacts\n\nOn:\n\n- Push to main\n- Pull requests\n\nWorkflow file: `.github/workflows/playwright.yml`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjptrp%2Fsaucedemo-playwright","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjptrp%2Fsaucedemo-playwright","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjptrp%2Fsaucedemo-playwright/lists"}