fix(research): explain evaluation horizon and CAGR (RP04)
This commit is contained in:
parent
76eb1b1255
commit
302ba60e53
4 changed files with 117 additions and 2 deletions
|
|
@ -1873,6 +1873,16 @@ test('canonical_native_smoke', async () => {
|
|||
(await f.pool.query('SELECT * FROM backtest_dispatch WHERE run_id=$1', [runId])).rowCount
|
||||
).toBe(1);
|
||||
await visible(f.page, 'Canonical research result');
|
||||
const interval = f.page.locator('[aria-label="Evaluation horizon"]');
|
||||
await interval.waitFor({ state: 'visible' });
|
||||
expect(await interval.textContent()).toContain(
|
||||
new Date(result.financial.reporting.tradeStart).toISOString()
|
||||
);
|
||||
expect(await interval.textContent()).toContain(
|
||||
new Date(result.financial.reporting.tradeEnd).toISOString()
|
||||
);
|
||||
await visible(f.page, /CAGR extrapolates this evaluation interval to a 365-calendar-day year/);
|
||||
await visible(f.page, /Annualization for periodic statistics:/);
|
||||
await f.page.getByRole('button', { name: 'Trades', exact: true }).click();
|
||||
await visible(f.page, result.financial.projection.fills[0].side);
|
||||
await visible(f.page, result.financial.projection.fills[0].price);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue