Chai & Code – Playwright Automation Project
This repository contains Playwright-based end-to-end tests for browser automation. You can run tests either locally using Playwright CLI or via a Jenkins pipeline.
✅ Option 1: Run Tests Locally
🔁 Step-by-Step
- Clone the Repository
git clone https://github.com/Mukesh-50/chaiandcode.git
cd chaiandcode- Install Dependencies
npm install- Run Tests in Specific Browsers
-
Run tests in Chromium
npx playwright test --project=chromium --headed -
Run tests in Firefox
npx playwright test --project=firefox --headed -
Run tests in WebKit
npx playwright test --project=webkit --headed -
Run tests in All Browsers
npx playwright test --headed
If you have Jenkins set up locally or on a server, you can execute all tests using the configured pipeline:
- Playwright
- JavaScript
- Jenkins (for CI/CD)
chaiandcode/
├── tests/ # Test scripts
├── playwright.config.js # Playwright configuration
├── package.json # NPM scripts
└── README.md # Project documentation
Make sure you have the following installed:
- Node.js (v16+)
- Playwright (
npx playwright install) - Browsers installed via Playwright
- Jenkins (for Option 2)