π± Front-FX Tests
Frontend E2E and unit tests for the FX (Foreign Exchange) module.
π What's Tested
The FX module has the most extensive frontend test coverage, with 7 Playwright spec files:
| Test Suite | Description |
|---|---|
| FX List | Currency pair list page, filtering, sync-all button |
| FX Detail | Detail page chart, data view, measure/signal panels |
| Add Pair | Add-pair modal, currency search, route selection |
| Data Editor | Inline rate editing, delete, date picker |
| Sync | Individual pair sync, provider fallback |
| FX API | Backend API integration (rates, routes, providers) |
| FX Settings | Chart settings, signal configuration, benchmarks |
π Running
# Run all front-fx tests
./dev.py test front-fx all
# List available tests
./dev.py test front-fx --list
# Run a specific test file
./dev.py test front-fx fx-detail
# Run with Playwright UI mode (interactive)
./dev.py test front-fx all --ui
π Test Location
frontend/e2e/
βββ fx-list.spec.ts # FX pair list page
βββ fx-detail.spec.ts # FX detail chart & data
βββ fx-add-pair.spec.ts # Add pair modal
βββ fx-editor.spec.ts # Data editor inline editing
βββ fx-sync.spec.ts # Sync operations
βββ fx-api.spec.ts # Backend API calls
βββ fx-settings.spec.ts # Chart settings & signals