Skip to content

Commit

Permalink
Let's wait for React after locaiton was created
Browse files Browse the repository at this point in the history
  • Loading branch information
mika-robots committed Oct 9, 2023
1 parent de97860 commit a506759
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/end-to-end/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ Cypress.Commands.add('createFirstLocation', () => {

cy.get('[data-cy=snackBar').should('exist').and('be.visible');

cy.waitForReact();

// Confirm that location exists
cy.visit('/');
cy.get('[data-cy=home-farmButton]').should('exist').and('not.be.disabled').click({ force: true });
Expand Down

0 comments on commit a506759

Please sign in to comment.