chore(trading): fix volume e2e test (#5978)
This commit is contained in:
parent
9eee76e5a6
commit
e57a6de765
@ -92,7 +92,7 @@ def init_vega(request=None):
|
||||
"store_transactions": True,
|
||||
"transactions_per_block": 1000,
|
||||
"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:
|
||||
|
@ -72,7 +72,7 @@ class TestSettledMarket:
|
||||
# 6001-MARK-009
|
||||
# 6001-MARK-008
|
||||
# 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()
|
||||
assert re.match(
|
||||
pattern, date_text
|
||||
|
@ -15,10 +15,9 @@ def test_market_selector(continuous_market, page: Page):
|
||||
# 6001-MARK-025
|
||||
btc_market = page.locator('[data-testid="market-selector-list"] a')
|
||||
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(
|
||||
# "1"
|
||||
# )
|
||||
expect(btc_market.locator('[data-testid="market-selector-volume"]')).to_have_text(
|
||||
"1"
|
||||
)
|
||||
expect(btc_market.locator('[data-testid="market-selector-price"]')).to_have_text(
|
||||
"107.50 tDAI"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user