feat(CORE-002): add GLD share quote conversion seam

This commit is contained in:
Bu5hm4nn
2026-03-25 14:52:48 +01:00
parent 1a2dfaff01
commit f0d7ab5748
10 changed files with 425 additions and 34 deletions

View File

@@ -141,10 +141,13 @@ def test_homepage_and_options_page_render() -> None:
assert "Options Chain" in overview_text
assert "Backtests" in overview_text
assert "Event Comparison" in overview_text
assert "Live quote source: configured entry price fallback" in overview_text
assert "Live quote source:" in overview_text
assert "GLD share quote converted to ozt-equivalent spot" in overview_text
assert "configured entry price fallback" not in overview_text
assert "Collateral Spot Price" in overview_text
assert "$1,261.36" in overview_text
assert "$968,000.00" in overview_text
assert "$746,000.00" in overview_text
assert "$968,000" in overview_text
assert "$222,000" in overview_text
expect(page.get_by_role("link", name="Hedge Analysis")).to_have_attribute("href", f"/{workspace_id}/hedge")
expect(page.get_by_role("link", name="Backtests")).to_have_attribute("href", f"/{workspace_id}/backtests")
expect(page.get_by_role("link", name="Event Comparison")).to_have_attribute(
@@ -160,7 +163,9 @@ def test_homepage_and_options_page_render() -> None:
second_workspace_url = second_page.url
assert second_workspace_url != workspace_url
second_page.goto(f"{second_workspace_url}/settings", wait_until="domcontentloaded", timeout=30000)
expect(second_page.get_by_label("Monthly hedge budget ($)")).to_have_value("8000")
expect(second_page).to_have_url(f"{second_workspace_url}/settings")
expect(second_page.locator("text=Settings").first).to_be_visible(timeout=15000)
expect(second_page.get_by_label("Monthly hedge budget ($)")).to_have_value("8000", timeout=15000)
second_page.close()
second_context.close()