chore(trading): fix volume e2e test (#5978)

This commit is contained in:
Ben 2024-03-12 12:52:48 +00:00 committed by GitHub
parent 9eee76e5a6
commit e57a6de765
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 6 deletions

View File

@ -92,7 +92,7 @@ def init_vega(request=None):
"store_transactions": True, "store_transactions": True,
"transactions_per_block": 1000, "transactions_per_block": 1000,
"seconds_per_block": seconds_per_block, "seconds_per_block": seconds_per_block,
"genesis_time": datetime.now() - timedelta(days=1), "genesis_time": datetime.now() - timedelta(hours=1),
} }
if port_config is not None: if port_config is not None:

View File

@ -72,7 +72,7 @@ class TestSettledMarket:
# 6001-MARK-009 # 6001-MARK-009
# 6001-MARK-008 # 6001-MARK-008
# 6001-MARK-010 # 6001-MARK-010
pattern = r"(\d+)\s+(months|hours|days)\s+ago" pattern = r"(\d+)\s+(months|hours|days|minutes)\s+ago"
date_text = row_selector.locator('[col-id="settlementDate"]').inner_text() date_text = row_selector.locator('[col-id="settlementDate"]').inner_text()
assert re.match( assert re.match(
pattern, date_text pattern, date_text

View File

@ -15,10 +15,9 @@ def test_market_selector(continuous_market, page: Page):
# 6001-MARK-025 # 6001-MARK-025
btc_market = page.locator('[data-testid="market-selector-list"] a') btc_market = page.locator('[data-testid="market-selector-list"] a')
expect(btc_market.locator("h3")).to_have_text("BTC:DAI_2023Futr") expect(btc_market.locator("h3")).to_have_text("BTC:DAI_2023Futr")
# tbd - 5465 expect(btc_market.locator('[data-testid="market-selector-volume"]')).to_have_text(
# expect(btc_market.locator('[data-testid="market-selector-volume"]')).to_have_text( "1"
# "1" )
# )
expect(btc_market.locator('[data-testid="market-selector-price"]')).to_have_text( expect(btc_market.locator('[data-testid="market-selector-price"]')).to_have_text(
"107.50 tDAI" "107.50 tDAI"
) )