Skip to content

End-to-end UI automation for DemoQA using Playwright with CI/CD, Docker test runner, GHCR packaging, HTML reporting, and GitHub Pages report hosting.

Notifications You must be signed in to change notification settings

ravigitgit/demoqa

Repository files navigation

DemoQA Playwright Automation Framework

GitHub release Playwright Tests

Automation framework for DemoQA built using Playwright, featuring:

  • 📌 Page Object Model (POM)
  • 🧪 Multi‑browser testing (Chromium / Firefox / WebKit)
  • 🚀 GitHub Actions CI Pipeline
  • 🌐 Test Report hosted via GitHub Pages
  • 🐳 Docker Test Runner (GHCR Package)
  • 🔐 Secure secrets for credentials

🛠️ Installation & Local Setup

  1. Clone the Repo
git clone https://github.com/ravigitgit/demoqa.git
cd demoqa
  1. Install Dependencies
npm install
  1. Install Browsers
npx playwright install --with-deps
  1. Run Tests
npx playwright test
# or
npm run test
  1. View HTML Report (Local)
npx playwright show-report
# or
npm run test:report
  1. View Report (GitHub Pages) Reports are auto‑published on CI ✅

https://ravigitgit.github.io/demoqa


🐳 Run via Docker

Pull Playwright Test Runner

docker pull ghcr.io/ravigitgit/demoqa:latest

Execute Tests Inside Container

docker run --rm ghcr.io/ravigitgit/demoqa:latest

Ensures consistent test environment across machines & CI 🌍


📂 Project Structure

demoqa/
 ├─.github/workflows      # CI pipelines
 ├─ pageObject/           # Page Objects
 ├─ tests/                # Test specs
 ├─ userData/             # Test data & helpers
 ├─ Dockerfile            # Docker runner
 └─ playwright.config.js  # Playwright configuration
 

✅ CI / CD Pipeline Features

  • Multi‑browser test matrix
  • Upload test artifacts (HTML + traces)
  • Deploy HTML report to GitHub Pages
  • PR comment summary
  • Build & push Docker Image to GHCR

🔗 Useful Links

Resource Link
DemoQA Site https://demoqa.com
GitHub Pages Report https://ravigitgit.github.io/demoqa
Docker Image ghcr.io/ravigitgit/demoqa:latest
Releases https://github.com/ravigitgit/demoqa/releases

👨‍💻 Author

Ravi — QA Engineer | Playwright | CI/CD | Docker

Feel free to ⭐ this repo if it helped you!


📬 Contribution & Support

PRs are welcome 🙌

For issues or suggestions: https://github.com/ravigitgit/demoqa/issues

About

End-to-end UI automation for DemoQA using Playwright with CI/CD, Docker test runner, GHCR packaging, HTML reporting, and GitHub Pages report hosting.

Topics

Resources

Stars

Watchers

Forks

Packages