chore(trading): e2e test fix (#5466)
This commit is contained in:
parent
a157ff1e05
commit
7c0139e107
@ -59,7 +59,7 @@ def test_market_selector_filter(continuous_market, page: Page):
|
||||
page.get_by_test_id("search-term").fill("btc")
|
||||
expect(page.locator('[data-testid="market-selector-list"] a')).to_have_count(1)
|
||||
expect(page.locator('[data-testid="market-selector-list"] a').nth(0)).to_have_text(
|
||||
"BTC:DAI_2023107.50 tDAI1"
|
||||
"BTC:DAI_2023107.50 tDAI0.00"
|
||||
)
|
||||
|
||||
page.get_by_test_id("search-term").clear()
|
||||
@ -84,5 +84,5 @@ def test_market_selector_filter(continuous_market, page: Page):
|
||||
page.get_by_role("menuitemcheckbox").nth(0).get_by_text("tDAI").click()
|
||||
expect(page.locator('[data-testid="market-selector-list"] a')).to_have_count(1)
|
||||
expect(page.locator('[data-testid="market-selector-list"] a').nth(0)).to_have_text(
|
||||
"BTC:DAI_2023107.50 tDAI1"
|
||||
"BTC:DAI_2023107.50 tDAI0.00"
|
||||
)
|
||||
|
@ -137,6 +137,6 @@ def test_perps_market_terminated(page: Page, vega: VegaService):
|
||||
expect(page.get_by_test_id("market-trading-mode")).to_have_text("Trading modeNo trading")
|
||||
expect(page.get_by_test_id("market-state")).to_have_text("StatusClosed")
|
||||
expect(page.get_by_test_id("liquidity-supplied")).to_have_text("Liquidity supplied 0.00 (0.00%)")
|
||||
expect(page.get_by_test_id("market-funding")).to_have_text("Funding Rate / Countdown-Unknown")
|
||||
expect(page.get_by_test_id("index-price")).to_have_text("Index Price-")
|
||||
expect(page.get_by_test_id("market-funding")).to_contain_text("Funding Rate / Countdown")
|
||||
expect(page.get_by_test_id("index-price")).to_contain_text("Index Price")
|
||||
expect(page.get_by_test_id("deal-ticket-error-message-summary")).to_have_text("This market is closed and not accepting orders")
|
Loading…
Reference in New Issue
Block a user