feat: show hedge starting position summary
This commit is contained in:
@@ -103,6 +103,12 @@ def test_homepage_and_options_page_render() -> None:
|
||||
page.mouse.click(slider_box["x"] + slider_box["width"] * 0.1, slider_box["y"] + slider_box["height"] / 2)
|
||||
expect(page.locator("text=Scenario move: -20%").first).to_be_visible(timeout=15000)
|
||||
hedge_text = page.locator("body").inner_text(timeout=15000)
|
||||
assert "Start value" in hedge_text
|
||||
assert "Start price" in hedge_text
|
||||
assert "Weight" in hedge_text
|
||||
assert "$215,000" in hedge_text
|
||||
assert "$215.00/oz" in hedge_text
|
||||
assert "1,000 oz" in hedge_text
|
||||
assert "Unhedged equity" in hedge_text
|
||||
assert "Hedged equity" in hedge_text
|
||||
assert "$27,000" in hedge_text
|
||||
|
||||
Reference in New Issue
Block a user