mirror of
https://github.com/johndoe6345789/goodpackagerepo.git
synced 2026-04-24 13:54:59 +00:00
1020 B
1020 B
E2E Tests
This directory contains end-to-end tests using Playwright.
Setup
Install dependencies:
cd tests
npm install
npx playwright install
Running Tests
Run all tests:
npm test
Run tests in headed mode (see browser):
npm run test:headed
Run tests with UI mode (interactive):
npm run test:ui
View test report:
npm run test:report
Test Structure
e2e/home.spec.js- Tests for the home pagee2e/auth.spec.js- Tests for authentication (login, logout, password change)e2e/pages.spec.js- Tests for browse, publish, and docs pages
Prerequisites
Before running tests, make sure:
- The backend server is running on
http://localhost:5000 - The frontend dev server is running on
http://localhost:3000(or let the test config start it automatically)
CI/CD Integration
The tests are configured to work in CI environments. Set CI=true environment variable to enable CI-specific behavior (retries, single worker, etc.).