Appearance
🧪 E2E Testy
🚀 Spuštění E2E testů (lokální prostředí)
✅ Předpoklady
- Spustit seed databáze:
bash
bun db:seed- Nastavené přihlašovací údaje v:
apps/frontend/.env- Spuštěný backend + frontend:
http://localhost:3000🏷 Testovací sady
🟢 @smoke
Základní rychlá kontrola aplikace.
⏱ Přibližně 60 sekund
bash
bun test:e2e:smoke🔴 @critical
Kritické scénáře aplikace.
⏱ Přibližně 5 minut
bash
bun test:e2e:critical🔵 Full run
Použít při větších zásazích nebo před demem.
⏱ Přibližně 20 minut
bash
bun test:e2e📋 Přehled E2E scénářů
🧾 Order Creation
| Měnový pár | Typ | Tagy |
|---|---|---|
| eur/czk | buy | @critical @smoke |
| eur/czk | sell | |
| eur/usd | buy | |
| eur/usd | sell | @critical |
| czk/usd | buy | |
| czk/usd | sell | |
| czk/eur | buy | |
| czk/eur | sell | |
| czk/eur | buy (provider) | @critical |
| czk/eur | sell (provider) |
📝 Draft Order
- should create new CLIENT order and save as draft
@critical - should create new PROVIDER order and save as draft
@critical
🧮 Order Form Interaction
- should validate client order form calculations, settlements and payout validation
@critical - should validate provider order form calculations and payout validation
@critical
📊 Table Checks
- display records in orders table
@critical - sort table by date column (asc)
- sort table by date column (desc)
- sort table by type column
- sort table by amount column
- filter records via historie and spot tabs
🔎 Filtration
- filtration SPOT type in orders table
- filtration currency in orders table
- filtration bank input account
- filtration bank output account
- filtration by status
- filtration by amount (from / to)
- filtration tickets by date
- filtration by dealer
- combining multiple filters
❌ Order Cancel
- should cancel created client order
- should cancel empty draft
- should cancel draft provider order
- should throw error when cancel created provider order
- should cancel client draft order
⏸ Order Pause
- should pause and unblock empty draft
- should pause created client order
- should pause created provider order
- should pause client draft order
- should pause provider draft order
📥 Reports Download
- should download first monthly order report with correct month, year and row count
- should download all monthly orders report with correct total count
- should download yearly orders report with correct year and count
- should download all yearly orders report with correct total count
- should download all three clients reports and verify counts match total
🔄 Transaction History
- should verify transaction in provider history
- should verify transaction in client history
@critical
👤 Users
- should not add empty user form
- should add and edit user with internal auditor role and one scope
- should add and edit user with dealer role and two scopes
- should add and edit user with AML officer role (delete one scope, add three scopes)
- should change user password and login with new password
- should block user account and verify login failure
@critical
🏁 Shrnutí
@smoke→ rychlá validace základního flow@critical→ klíčové business scénáře- Full run → kompletní regresní kontrola