chore(trading): market-sim branch parralel fix (#5630)

This commit is contained in:
Ben 2024-01-17 14:44:11 +00:00 committed by GitHub
parent 58972f0a11
commit 9253e8067a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 6 deletions

View File

@ -205,7 +205,7 @@ jobs:
# run tests # run tests
#---------------------------------------------- #----------------------------------------------
- name: Run tests - name: Run tests
run: CONSOLE_IMAGE_NAME=ci/trading:local poetry run pytest -v -s --numprocesses 1 --dist loadfile --durations=90 run: CONSOLE_IMAGE_NAME=ci/trading:local poetry run pytest -v -s --numprocesses 2 --dist loadfile --durations=90
working-directory: apps/trading/e2e working-directory: apps/trading/e2e
#---------------------------------------------- #----------------------------------------------
# upload traces # upload traces

View File

@ -131,7 +131,7 @@ def test_terminated_market_no_settlement_date(page: Page, vega: VegaServiceNull)
row_selector = page.locator( row_selector = page.locator(
'[data-testid="tab-closed-markets"] .ag-center-cols-container .ag-row' '[data-testid="tab-closed-markets"] .ag-center-cols-container .ag-row'
).first ).first
expect(row_selector.locator('[col-id="state"]')).to_have_text("No trading") expect(row_selector.locator('[col-id="state"]')).to_have_text("Trading Terminated")
expect(row_selector.locator('[col-id="settlementDate"]')).to_have_text("Unknown") expect(row_selector.locator('[col-id="settlementDate"]')).to_have_text("Unknown")
# TODO Create test for terminated market with settlement date in future # TODO Create test for terminated market with settlement date in future

View File

@ -176,7 +176,7 @@ def test_market_lifecycle(proposed_market, vega: VegaServiceNull, page: Page):
# market state should be changed to "No trading" because of the invalid oracle # market state should be changed to "No trading" because of the invalid oracle
expect(trading_mode).to_have_text("No trading") expect(trading_mode).to_have_text("No trading")
expect(market_state).to_have_text("No trading") expect(market_state).to_have_text("Trading Terminated")
# settle market # settle market
vega.submit_termination_and_settlement_data( vega.submit_termination_and_settlement_data(

View File

@ -73,7 +73,6 @@ def test_limit_order_new_trade_top_of_list(
def test_price_copied_to_deal_ticket(continuous_market, page: Page): def test_price_copied_to_deal_ticket(continuous_market, page: Page):
page.goto(f"/#/markets/{continuous_market}") page.goto(f"/#/markets/{continuous_market}")
page.get_by_test_id("Trades").click() page.get_by_test_id("Trades").click()
page.locator("[col-id=price]").last.click() page.locator("[col-id=price]").nth(1).click()
# 6005-THIS-007 # 6005-THIS-007
page.reload()
expect(page.get_by_test_id("order-price")).to_have_value("107.50000") expect(page.get_by_test_id("order-price")).to_have_value("107.50000")

View File

@ -116,7 +116,7 @@ def test_wallet_transaction_rejected(continuous_market, page: Page):
page.get_by_test_id(order_price).fill("120") page.get_by_test_id(order_price).fill("120")
page.route("**/*", handle_route_connection_rejected) page.route("**/*", handle_route_connection_rejected)
page.get_by_test_id(place_order).click() page.get_by_test_id(place_order).click()
expect(page.get_by_test_id("toast-content")).to_have_text( expect(page.get_by_test_id("toast-content").nth(0)).to_have_text(
"Error occurredthe user rejected the wallet connection" "Error occurredthe user rejected the wallet connection"
) )