From 5a00ad8361127de85db4841769d03c308f7f7701 Mon Sep 17 00:00:00 2001 From: Matthew Russell Date: Tue, 17 May 2022 10:07:53 -0400 Subject: [PATCH] fix: flakey cypress test runs (#409) * fix: wait for aggrid to render before asserting * fix: mock markets manually and move wait for aggrid to init --- .../src/support/step_definitions/markets-page.step.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/trading-e2e/src/support/step_definitions/markets-page.step.ts b/apps/trading-e2e/src/support/step_definitions/markets-page.step.ts index d46982c5c..73d3952d2 100644 --- a/apps/trading-e2e/src/support/step_definitions/markets-page.step.ts +++ b/apps/trading-e2e/src/support/step_definitions/markets-page.step.ts @@ -6,6 +6,7 @@ import MarketsPage from '../pages/markets-page'; const marketsPage = new MarketsPage(); const mockMarkets = () => { + cy.log('Mocking markets query'); cy.mockGQL('Markets', (req) => { if (hasOperationName(req, 'Markets')) { req.reply({