Skip to content

Latest commit

Β 

History

History
84 lines (62 loc) Β· 1.84 KB

File metadata and controls

84 lines (62 loc) Β· 1.84 KB

🎭 playwright-the-internet-tests

Automated UI test suite using Playwright for the test application: the-internet.herokuapp.com.

This project covers various interactive features of the Herokuapp test site using modern, maintainable Playwright tests.


πŸš€ Features Tested

  • βœ… Page Title Validation
  • βœ… Add/Remove Elements
  • βœ… Basic Authentication (via httpCredentials)
  • βœ… Broken Images Detection
  • βœ… Button Visibility and Click Actions
  • βœ… Element Count Assertions

🧰 Tech Stack


πŸ“‚ Project Structure

 

β”œβ”€β”€ constants/
β”‚ └── configuration.ts
β”œβ”€β”€ pages/
β”‚ β”œβ”€β”€ pageObjects.ts
β”‚ └── locators.ts
β”œβ”€β”€ tests/
β”‚ β”œβ”€β”€ TC01-addRemove.spec.ts
β”‚ β”œβ”€β”€ TC02-basicAuth.spec.ts
β”‚ └── TC03-brokenImages.spec.ts
β”œβ”€β”€ utils/
β”‚ β”œβ”€β”€ credentials.ts
β”‚ └── generalUtils.ts
β”œβ”€β”€ package.json
β”œβ”€β”€ playwright.config.ts
└── README.md


πŸ› οΈ Installation & Setup

  1. Clone the repo
    git clone https://github.com/ravigitgit/playwright-the-internet-tests.git
    cd playwright-the-internet-tests
    
  2. Install project dependencies
    npm install
    
  3. Install Playwright browsers with system dependencies
    npx playwright install --with-deps
    
  4. Run Tests
    npx playwright test
    # or
    npm run test
    
  5. Show HTML Report
    npx playwright show-report
    # or
    npm run test:report
    
  6. View Allure Report (GitHub Pages Hosted) Allure test reports are automatically generated and deployed via GitHub Actions.

πŸ“Ž Live Report URL: πŸ‘‰ https://ravigitgit.github.io/playwright-the-internet-tests/