Skip to content

Commit

Permalink
fix: wait for about and stats before trying to load the graph
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams committed Sep 23, 2024
1 parent 35b50ff commit c5d605f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ Cypress.Commands.add('initialSetup', (username, budget) => {
},
})

cy.wait(['@loadAbout', '@loadStats'])

cy.get('[data-testid="explore-graph-btn"]', { timeout: 30000 }).should('be.visible').click()
cy.wait(['@loadAbout', '@loadStats', '@getTrends', '@loadLatest'])

cy.wait(['@getTrends', '@loadLatest'])
})

0 comments on commit c5d605f

Please sign in to comment.