diff --git a/apps/trading-e2e/src/integration/home.cy.ts b/apps/trading-e2e/src/integration/home.cy.ts index 8c7f35190..996050767 100644 --- a/apps/trading-e2e/src/integration/home.cy.ts +++ b/apps/trading-e2e/src/integration/home.cy.ts @@ -4,17 +4,15 @@ import { mockTradingPage } from '../support/trading'; describe('home', () => { const selectMarketOverlay = 'select-market-list'; - - beforeEach('load homepage', () => { + beforeEach(() => { + cy.mockGQL((req) => { + mockTradingPage(req, MarketState.STATE_ACTIVE); + }); cy.visit('/'); }); describe('default market found', () => { it('redirects to a default market with the landing dialog open', () => { - cy.mockGQL((req) => { - // Mock all market page queries - mockTradingPage(req, MarketState.STATE_ACTIVE); - }); cy.visit('/'); cy.wait('@Market');