Skip to content

Commit

Permalink
add a wait (for api) when loading flowsheets list
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPesce committed Sep 24, 2024
1 parent 672963e commit 5bb59df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions electron/ui/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ require('cypress-downloadfile/lib/downloadFileCommand');
* From page: any
*/
Cypress.Commands.add('load_flowsheets_list', () => {
cy.intercept({
method: 'GET',
url: 'http://localhost:8001/flowsheets/**',
}).as('loadFlowsheetsList');
cy.visit('/')
cy.wait('@loadFlowsheetsList', {timeout: 30000});
})

/**
Expand Down

0 comments on commit 5bb59df

Please sign in to comment.