chore(trading): check e2e tests issue (#5544)

This commit is contained in:
daro-maj 2023-12-27 14:07:27 +01:00 committed by GitHub
parent 424cced4be
commit 723ff2805d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 19 deletions

View File

@ -166,6 +166,7 @@ class TestGetStarted:
page.wait_for_selector('[data-testid="sidebar-content"]', state="visible") page.wait_for_selector('[data-testid="sidebar-content"]', state="visible")
expect(page.get_by_test_id("get-started-banner")).not_to_be_visible() expect(page.get_by_test_id("get-started-banner")).not_to_be_visible()
@pytest.mark.skip("tbd-market-sim")
def test_redirect_default_market(self, continuous_market, vega: VegaServiceNull, page: Page): def test_redirect_default_market(self, continuous_market, vega: VegaServiceNull, page: Page):
page.goto("/") page.goto("/")
# 0007-FUGS-012 # 0007-FUGS-012

View File

@ -30,7 +30,7 @@ initial_volume: float = 1
initial_spread: float = 0.1 initial_spread: float = 0.1
market_name = "BTC:DAI_2023" market_name = "BTC:DAI_2023"
@pytest.mark.skip("tbd")
@pytest.mark.usefixtures("risk_accepted", "auth") @pytest.mark.usefixtures("risk_accepted", "auth")
def test_price_monitoring(simple_market, vega: VegaServiceNull, page: Page): def test_price_monitoring(simple_market, vega: VegaServiceNull, page: Page):
page.goto(f"/#/markets/all") page.goto(f"/#/markets/all")

View File

@ -42,7 +42,7 @@ def validate_info_section(page: Page, fields: [[str, str]]):
page.get_by_test_id("key-value-table-row").nth(rowNumber).locator("dd") page.get_by_test_id("key-value-table-row").nth(rowNumber).locator("dd")
).to_contain_text(value) ).to_contain_text(value)
@pytest.mark.skip("tbd-market-sim")
def test_market_info_current_fees(page: Page): def test_market_info_current_fees(page: Page):
# 6002-MDET-101 # 6002-MDET-101
page.get_by_test_id(market_title_test_id).get_by_text("Current fees").click() page.get_by_test_id(market_title_test_id).get_by_text("Current fees").click()
@ -54,7 +54,7 @@ def test_market_info_current_fees(page: Page):
] ]
validate_info_section(page, fields) validate_info_section(page, fields)
@pytest.mark.skip("tbd-market-sim")
def test_market_info_market_price(page: Page): def test_market_info_market_price(page: Page):
# 6002-MDET-102 # 6002-MDET-102
page.get_by_test_id(market_title_test_id).get_by_text("Market price").click() page.get_by_test_id(market_title_test_id).get_by_text("Market price").click()
@ -66,7 +66,7 @@ def test_market_info_market_price(page: Page):
] ]
validate_info_section(page, fields) validate_info_section(page, fields)
@pytest.mark.skip("tbd-market-sim")
def test_market_info_market_volume(page: Page): def test_market_info_market_volume(page: Page):
# 6002-MDET-103 # 6002-MDET-103
page.get_by_test_id(market_title_test_id).get_by_text("Market volume").click() page.get_by_test_id(market_title_test_id).get_by_text("Market volume").click()
@ -80,14 +80,14 @@ def test_market_info_market_volume(page: Page):
] ]
validate_info_section(page, fields) validate_info_section(page, fields)
@pytest.mark.skip("tbd-market-sim")
def test_market_info_insurance_pool(page: Page): def test_market_info_insurance_pool(page: Page):
# 6002-MDET-104 # 6002-MDET-104
page.get_by_test_id(market_title_test_id).get_by_text("Insurance pool").click() page.get_by_test_id(market_title_test_id).get_by_text("Insurance pool").click()
fields = [["Balance", "0.00 tDAI"]] fields = [["Balance", "0.00 tDAI"]]
validate_info_section(page, fields) validate_info_section(page, fields)
@pytest.mark.skip("tbd-market-sim")
def test_market_info_key_details(page: Page, vega: VegaServiceNull): def test_market_info_key_details(page: Page, vega: VegaServiceNull):
# 6002-MDET-201 # 6002-MDET-201
page.get_by_test_id(market_title_test_id).get_by_text("Key details").click() page.get_by_test_id(market_title_test_id).get_by_text("Key details").click()
@ -106,7 +106,7 @@ def test_market_info_key_details(page: Page, vega: VegaServiceNull):
] ]
validate_info_section(page, fields) validate_info_section(page, fields)
@pytest.mark.skip("tbd-market-sim")
def test_market_info_instrument(page: Page): def test_market_info_instrument(page: Page):
# 6002-MDET-202 # 6002-MDET-202
page.get_by_test_id(market_title_test_id).get_by_text("Instrument").click() page.get_by_test_id(market_title_test_id).get_by_text("Instrument").click()
@ -121,7 +121,7 @@ def test_market_info_instrument(page: Page):
# @pytest.mark.skip("oracle test to be fixed") # @pytest.mark.skip("oracle test to be fixed")
@pytest.mark.skip("tbd-market-sim")
def test_market_info_oracle(page: Page): def test_market_info_oracle(page: Page):
# 6002-MDET-203 # 6002-MDET-203
page.get_by_test_id(market_title_test_id).get_by_text("Oracle").click() page.get_by_test_id(market_title_test_id).get_by_text("Oracle").click()
@ -135,7 +135,7 @@ def test_market_info_oracle(page: Page):
# "href", re.compile(rf'(\/oracles\/{vega.find_market_id("BTC:DAI_2023")})') # "href", re.compile(rf'(\/oracles\/{vega.find_market_id("BTC:DAI_2023")})')
# ) # )
@pytest.mark.skip("tbd-market-sim")
def test_market_info_settlement_asset(page: Page, vega: VegaServiceNull): def test_market_info_settlement_asset(page: Page, vega: VegaServiceNull):
# 6002-MDET-206 # 6002-MDET-206
page.get_by_test_id(market_title_test_id).get_by_text("Settlement asset").click() page.get_by_test_id(market_title_test_id).get_by_text("Settlement asset").click()
@ -155,7 +155,7 @@ def test_market_info_settlement_asset(page: Page, vega: VegaServiceNull):
] ]
validate_info_section(page, fields) validate_info_section(page, fields)
@pytest.mark.skip("tbd-market-sim")
def test_market_info_metadata(page: Page): def test_market_info_metadata(page: Page):
# 6002-MDET-207 # 6002-MDET-207
page.get_by_test_id(market_title_test_id).get_by_text("Metadata").click() page.get_by_test_id(market_title_test_id).get_by_text("Metadata").click()
@ -164,7 +164,7 @@ def test_market_info_metadata(page: Page):
] ]
validate_info_section(page, fields) validate_info_section(page, fields)
@pytest.mark.skip("tbd-market-sim")
def test_market_info_risk_model(page: Page): def test_market_info_risk_model(page: Page):
# 6002-MDET-208 # 6002-MDET-208
page.get_by_test_id(market_title_test_id).get_by_text("Risk model").click() page.get_by_test_id(market_title_test_id).get_by_text("Risk model").click()
@ -175,7 +175,7 @@ def test_market_info_risk_model(page: Page):
] ]
validate_info_section(page, fields) validate_info_section(page, fields)
@pytest.mark.skip("tbd-market-sim")
def test_market_info_margin_scaling_factors(page: Page): def test_market_info_margin_scaling_factors(page: Page):
# 6002-MDET-209 # 6002-MDET-209
page.get_by_test_id(market_title_test_id).get_by_text( page.get_by_test_id(market_title_test_id).get_by_text(
@ -190,7 +190,7 @@ def test_market_info_margin_scaling_factors(page: Page):
] ]
validate_info_section(page, fields) validate_info_section(page, fields)
@pytest.mark.skip("tbd-market-sim")
def test_market_info_risk_factors(page: Page): def test_market_info_risk_factors(page: Page):
# 6002-MDET-210 # 6002-MDET-210
page.get_by_test_id(market_title_test_id).get_by_text("Risk factors").click() page.get_by_test_id(market_title_test_id).get_by_text("Risk factors").click()
@ -204,7 +204,7 @@ def test_market_info_risk_factors(page: Page):
] ]
validate_info_section(page, fields) validate_info_section(page, fields)
@pytest.mark.skip("tbd-market-sim")
def test_market_info_price_monitoring_bounds(page: Page): def test_market_info_price_monitoring_bounds(page: Page):
# 6002-MDET-211 # 6002-MDET-211
page.get_by_test_id(market_title_test_id).get_by_text( page.get_by_test_id(market_title_test_id).get_by_text(
@ -220,7 +220,7 @@ def test_market_info_price_monitoring_bounds(page: Page):
] ]
validate_info_section(page, fields) validate_info_section(page, fields)
@pytest.mark.skip("tbd-market-sim")
def test_market_info_liquidity_monitoring_parameters(page: Page): def test_market_info_liquidity_monitoring_parameters(page: Page):
# 6002-MDET-212 # 6002-MDET-212
page.get_by_test_id(market_title_test_id).get_by_text( page.get_by_test_id(market_title_test_id).get_by_text(
@ -233,7 +233,7 @@ def test_market_info_liquidity_monitoring_parameters(page: Page):
] ]
validate_info_section(page, fields) validate_info_section(page, fields)
@pytest.mark.skip("tbd-market-sim")
# Liquidity resolves to 3 results # Liquidity resolves to 3 results
def test_market_info_liquidit(page: Page): def test_market_info_liquidit(page: Page):
# 6002-MDET-213 # 6002-MDET-213
@ -246,7 +246,7 @@ def test_market_info_liquidit(page: Page):
] ]
validate_info_section(page, fields) validate_info_section(page, fields)
@pytest.mark.skip("tbd-market-sim")
def test_market_info_liquidity_price_range(page: Page): def test_market_info_liquidity_price_range(page: Page):
# 6002-MDET-214 # 6002-MDET-214
page.get_by_test_id(market_title_test_id).get_by_text( page.get_by_test_id(market_title_test_id).get_by_text(
@ -259,7 +259,7 @@ def test_market_info_liquidity_price_range(page: Page):
] ]
validate_info_section(page, fields) validate_info_section(page, fields)
@pytest.mark.skip("tbd-market-sim")
def test_market_info_proposal(page: Page, vega: VegaServiceNull): def test_market_info_proposal(page: Page, vega: VegaServiceNull):
# 6002-MDET-301 # 6002-MDET-301
page.get_by_test_id(market_title_test_id).get_by_text("Proposal").click() page.get_by_test_id(market_title_test_id).get_by_text("Proposal").click()

View File

@ -22,7 +22,7 @@ def successor_market(vega: VegaServiceNull):
vega.wait_for_total_catchup() vega.wait_for_total_catchup()
return successor_market_id return successor_market_id
@pytest.mark.skip("tbd")
@pytest.mark.usefixtures("risk_accepted") @pytest.mark.usefixtures("risk_accepted")
def test_succession_line(page: Page, successor_market): def test_succession_line(page: Page, successor_market):
page.goto(f"/#/markets/{successor_market}") page.goto(f"/#/markets/{successor_market}")