Skip to content

Commit

Permalink
Cypress – Introduce waiting to see if the race-condition can be patch…
Browse files Browse the repository at this point in the history
…ed that way
  • Loading branch information
te-online committed Jul 6, 2023
1 parent cc9ecd0 commit 35cb41a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cypress/e2e/timemanager.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,8 @@ describe("TimeManager", { defaultCommandTimeout: 5000 }, () => {
cy.contains("div.tm_item-row", firstTask.Name).click();
cy.contains(".list-title", "Time entries");

cy.wait(4000);

const firstTimeEntry = timeEntries[0];
cy.contains("div.tm_item-row", firstTimeEntry.note).scrollIntoView().should("be.visible");
cy.contains("div.tm_item-row", firstTimeEntry.note).within(() => {
Expand Down

0 comments on commit 35cb41a

Please sign in to comment.