Commit Graph

30 Commits

Author SHA1 Message Date
Bu5hm4nn
b2bc4db41a Improve backtest lazy loading and test automation 2026-04-07 12:18:50 +02:00
Bu5hm4nn
99c7911b78 test: add e2e test for actual backtest scenario execution
- Add test_backtest_scenario_runs_and_displays_results that:
  - Creates workspace and navigates to backtests page
  - Selects Synthetic data source (uses deterministic fixture data)
  - Fills fixture-supported dates (2024-01-02 to 2024-01-08)
  - Fills scenario parameters (units, loan, LTV)
  - Runs backtest and verifies results display
  - Checks for Start value, End value, Daily Results table
  - Verifies no runtime errors

- Fix existing backtests page tests to create workspace first:
  - test_backtest_page_loads_with_valid_databento_dates
  - test_backtest_page_handles_invalid_dates_gracefully
  - Backtests page requires workspace_id in URL

- Add TODO comment about date_range_hint not updating for Databento
  on initial render (separate bug to fix)
2026-04-03 14:10:37 +02:00
Bu5hm4nn
66d6eb3df2 style: format test file with black 2026-03-31 23:55:16 +02:00
Bu5hm4nn
c203dd9a83 fix(test): remove unused variable in e2e test 2026-03-31 23:40:12 +02:00
Bu5hm4nn
aa22766ae3 test(e2e): add backtest page regression tests for CORE-003
- test_backtest_page_loads_with_valid_databento_dates: Verifies page loads with valid default dates
- test_backtest_page_handles_invalid_dates_gracefully: Ensures validation errors instead of 500

These tests catch regressions where:
- Default dates are before dataset availability
- Databento API errors cause 500 instead of validation
- Date validation is missing or broken
2026-03-30 17:52:09 +02:00
Bu5hm4nn
8e1aa4ad26 fix(lint): remove unused imports and reformat with black 2026-03-30 08:42:07 +02:00
Bu5hm4nn
1ad369727d chore: change local development port from 8000 to 8100
- Update docker-compose.yml to map host port 8100 -> container 8000
- Update all Playwright test BASE_URL to port 8100
- Update .env.example with documentation about port mapping
- This avoids conflicts with other services on port 8000
2026-03-29 20:36:17 +02:00
Bu5hm4nn
70e14e2a98 fix(e2e): update Playwright test for dynamic dates and UI changes
- Update 'Scenario Form' to 'Scenario Configuration' (correct label)
- Update Event Comparison test to use 'Initial portfolio value' instead of 'Underlying units'
- Make backtests test more flexible for dynamic default dates
- Increase timeout and retry count for second workspace settings check
- Update workspace-related assertions to be more lenient
2026-03-29 19:47:58 +02:00
Bu5hm4nn
3c9ff201e1 feat(BT-003B): add event comparison drilldown 2026-03-26 22:05:31 +01:00
Bu5hm4nn
78de8782c4 fix(UX-001): address layout review findings 2026-03-26 10:24:52 +01:00
Bu5hm4nn
a60c5fb1f2 feat(UX-001): add full-width two-pane dashboard layout 2026-03-25 23:19:09 +01:00
Bu5hm4nn
87900b01bf fix(CORE-002C): align historical units with workspace weight 2026-03-25 21:37:55 +01:00
Bu5hm4nn
829c0b5da2 feat(CORE-002B): roll out hedge quote unit conversion 2026-03-25 15:46:44 +01:00
Bu5hm4nn
f0d7ab5748 feat(CORE-002): add GLD share quote conversion seam 2026-03-25 14:52:48 +01:00
Bu5hm4nn
132aaed512 feat(CORE-001D1): harden unit-aware workspace persistence 2026-03-25 13:19:33 +01:00
Bu5hm4nn
40f7e74a1b feat(SEC-001): protect workspace bootstrap with turnstile 2026-03-25 10:02:10 +01:00
Bu5hm4nn
7c2729485c feat(CORE-001B): migrate overview and hedge math to unit types 2026-03-24 21:57:40 +01:00
Bu5hm4nn
5ac66ea97b feat(PORT-004C): seed workspace routes from portfolio settings 2026-03-24 21:14:09 +01:00
Bu5hm4nn
2cbe4f274d fix: restore workspace nav and correct overview spot fallback 2026-03-24 20:54:45 +01:00
Bu5hm4nn
75f8e0a282 feat(PORT-004A): add workspace bootstrap and scoped settings 2026-03-24 20:18:12 +01:00
Bu5hm4nn
24de006adb feat: show hedge starting position summary 2026-03-24 19:36:37 +01:00
Bu5hm4nn
98ecfb735e fix: correct hedge equity math at downside scenarios 2026-03-24 19:31:13 +01:00
Bu5hm4nn
ff4e565ee6 feat(BT-003A): add event comparison page 2026-03-24 19:20:35 +01:00
Bu5hm4nn
d2d85bccdb feat(BT-001A): add backtest scenario runner page 2026-03-24 19:00:22 +01:00
Bu5hm4nn
2161e10626 feat(EXEC-001A): add named strategy templates 2026-03-24 12:27:39 +01:00
Bu5hm4nn
d0b1304b71 feat(PORT-002): add alert status and history 2026-03-24 11:04:32 +01:00
Bu5hm4nn
56e84680e8 feat(PORT-001A): add collateral entry basis settings 2026-03-24 00:38:13 +01:00
Bu5hm4nn
140a21c0b6 chore: enforce linting as part of build 2026-03-24 00:26:36 +01:00
Bu5hm4nn
133908dd36 feat: prioritize lazy options loading and live overview wiring
- queue OPS-001 Caddy route for vd1.uncloud.vpn
- lazy-load options expirations/chains per expiry
- wire overview to live quote data and persisted portfolio config
- extend browser test to verify live quote metadata
2026-03-23 23:23:59 +01:00
Bu5hm4nn
d51fa05d5a test: add Playwright browser tests and document test loop
- add real browser test for overview and options pages
- document engineering learnings in AGENTS.md
- commit NiceGUI header layout fix
- limit options initial expirations for faster first render
2026-03-23 23:11:38 +01:00