Skip to content

Commit

Permalink
Confirm that location exists before adding a task
Browse files Browse the repository at this point in the history
  • Loading branch information
mika-robots committed Oct 8, 2023
1 parent e812dd8 commit 892a29d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/end-to-end/cypress/e2e/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ describe('Tasks', () => {
after(() => {});

it('CheckTasksNavigation', () => {
// Confirm that location exists
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');

// Add a crop variety
cy.get('[data-cy=navbar-hamburger]').should('exist').click();
cy.contains(translation['SLIDE_MENU']['TASKS']).should('exist').click();
Expand Down

0 comments on commit 892a29d

Please sign in to comment.