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
This commit is contained in:
Matthew Russell 2022-05-17 10:07:53 -04:00 committed by GitHub
parent 6800f22064
commit 5a00ad8361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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({