From 80fff35b397e3711850207c9f4b94252fed165c8 Mon Sep 17 00:00:00 2001 From: Dariusz Majcherczyk Date: Fri, 29 Dec 2023 12:20:38 +0100 Subject: [PATCH] chore(trading): add wait --- apps/trading/e2e/tests/market/test_market.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/trading/e2e/tests/market/test_market.py b/apps/trading/e2e/tests/market/test_market.py index dc717f452..bcc0d7710 100644 --- a/apps/trading/e2e/tests/market/test_market.py +++ b/apps/trading/e2e/tests/market/test_market.py @@ -206,12 +206,16 @@ def test_auction_uncross_fees(continuous_market, vega: VegaServiceNull, page: Pa page.goto(f"/#/markets/{continuous_market}") page.get_by_test_id("Fills").click() expect(page.locator(COL_ID_FEE)).to_have_text("0.00 tDAI") + # tbd - tooltip is not visible without this wait + page.wait_for_timeout(1000) page.get_by_role("gridcell", name="0.00 tDAI").nth(0).hover() expect(page.get_by_test_id("fee-breakdown-tooltip")).to_have_text( "If the market was suspendedDuring auction, half the infrastructure and liquidity fees will be paid.Infrastructure fee0.00 tDAILiquidity fee0.00 tDAIMaker fee0.00 tDAITotal fees0.00 tDAI" ) change_keys(page, vega, "market_maker") expect(page.locator(COL_ID_FEE)).to_have_text("0.00 tDAI") + # tbd - tooltip is not visible without this wait + page.wait_for_timeout(1000) page.get_by_role("gridcell", name="0.00 tDAI").nth(0).hover() expect(page.get_by_test_id("fee-breakdown-tooltip")).to_have_text( "If the market was suspendedDuring auction, half the infrastructure and liquidity fees will be paid.Infrastructure fee0.00 tDAILiquidity fee0.00 tDAIMaker fee0.00 tDAITotal fees0.00 tDAI"