Skip to content

Repository files navigation

Playwright Automation Suite

This project contains Playwright end-to-end tests for the Demo Web Shop application.

What is included

  • 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

Prerequisites

  • Node.js 18 or newer
  • npm
  • Playwright browsers

Setup

  1. Install dependencies
    npm install
  2. Install Playwright browsers
    npx playwright install --with-deps
  3. Create a .env file with your test credentials if needed.

Run tests

Run all tests:

npm test

Run tests in headed mode:

npm run test:headed

Run tests in CI-friendly mode:

npm run test:ci

Reports

  • 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

CI/CD

  • GitHub Actions: .github/workflows/playwright.yml
  • Jenkins: Jenkinsfile

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages