Skip to content

andrew-ksv/Playwright-WaterTracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Automated tests for Water Tracker

Description

This repository contains automated tests for the Water Tracker web app, using Playwright 🎭. The tests cover both frontend and backend functionality to ensure the core features work correctly.

Installation

  1. Clone the repository
  2. Navigate to the project directory
  3. Install dependencies: npm install

Running Tests

  • Run all tests: npx playwright test

  • Run a specific test: npx playwright test tests/frontend/test-name.spec.ts

  • Run in UI mode: npx playwright test --ui

  • Run frontend tests in browsers:

    -npx playwright test --project=frontend-chromium

    -npx playwright test --project=frontend-firefox

    -npx playwright test --project=frontend-webkit

  • Run backend tests:

    -npx playwright test --project=backend

Project Structure

  • πŸ“ tests/ – Test files.

    • πŸ“ frontend/ – Contains tests for the frontend.
      • πŸ“„ .spec.ts – Test file.
    • πŸ“ backend/ – Contains tests for the backend.
      • πŸ“„ .spec.ts – Test file.
    • πŸ“ pages/ – Page object pattern (POP) files.
    • πŸ“ utils/ – Utility functions for reusable tasks.
  • βš™οΈ playwright.config.ts – Playwright configuration file.

About

Automated tests for Water Tracker, using Playwright 🎭 and Page Object Pattern

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors