This project contains Playwright end-to-end tests for the Demo Web Shop application.
- Playwright test configuration in
playwright.config.ts - Page Object Model files in
pages/ - Test fixtures in
Fixtures/ - Test data loaders in
utils/ - CI workflow in
.github/workflows/playwright.yml - Jenkins pipeline in
Jenkinsfile
- Node.js 18 or newer
- npm
- Playwright browsers
- Install dependencies
npm install
- Install Playwright browsers
npx playwright install --with-deps
- Create a
.envfile with your test credentials if needed.
Run all tests:
npm testRun tests in headed mode:
npm run test:headedRun tests in CI-friendly mode:
npm run test:ci- Playwright HTML reports are generated in
playwright-report/. - Allure reports are generated in
allure-results/and can be turned into a readable report with:npm run allure:generate npm run allure:open
Run tests with Allure output enabled:
npm run test:allure- GitHub Actions:
.github/workflows/playwright.yml - Jenkins:
Jenkinsfile