Skip to content

Commit

Permalink
Confirm that locaiton exists and wait for react to finish before tryi…
Browse files Browse the repository at this point in the history
…ng to create a task
  • Loading branch information
mika-robots committed Oct 9, 2023
1 parent a506759 commit 94049c1
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 @@ -64,8 +64,20 @@ describe('Tasks', () => {
});

it('CreateCleanTask', () => {
// 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');
cy.get('[data-cy=navbar-hamburger]').should('exist').click();
cy.contains(translation['SLIDE_MENU']['TASKS']).should('exist').click();
cy.waitForReact();

cy.contains(translation['TASK']['ADD_TASK']).should('exist').and('not.be.disabled').click();

Expand Down

0 comments on commit 94049c1

Please sign in to comment.