Skip to content

Commit

Permalink
Add wait for react before trying to add cleaning task
Browse files Browse the repository at this point in the history
  • Loading branch information
mika-robots committed Oct 11, 2023
1 parent 9c42d4b commit 5b2d72f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/end-to-end/cypress/e2e/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ describe('Tasks', () => {
it('CreateCleanTask', () => {
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();
cy.waitForReact();
cy.contains(tasks['CLEANING_TASK']).should('exist').click();

//Create an unassigned cleaning task due tomorrow
Expand Down

0 comments on commit 5b2d72f

Please sign in to comment.