Skip to content

Commit

Permalink
Add another verification that location was created
Browse files Browse the repository at this point in the history
  • Loading branch information
mika-robots committed Oct 9, 2023
1 parent 3cdef41 commit de97860
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/end-to-end/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,16 @@ Cypress.Commands.add('createFirstLocation', () => {
cy.get('[data-cy=createField-save]').should('exist').and('not.be.disabled').click();

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

// Confirm that location exists
cy.visit('/');
cy.get('[data-cy=home-farmButton]').should('exist').and('not.be.disabled').click({ force: true });
cy.get('[data-cy=navbar-option]')
.eq(1)
.should('exist')
.and('not.be.disabled')
.click({ force: true });
cy.contains('First Field').should('be.visible');
});

Cypress.Commands.add('acceptSlideMenuSpotlights', (crop_menu_name) => {
Expand Down

0 comments on commit de97860

Please sign in to comment.