Vai al contenuto

πŸ’± 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