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.
- Clone the repository
- Navigate to the project directory
- Install dependencies: npm install
- 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
-
π 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.
- π frontend/ β Contains tests for the frontend.
-
βοΈ playwright.config.ts β Playwright configuration file.