Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tonitienda committed Apr 24, 2024
1 parent 718b4f3 commit af0bf7c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions e2e-cypress/nextjs/tasks.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ const undo = (cy) => {
};

const assertNumTasks = (cy, numTasks) => {
cy.get("ul#task-list")
.find('li[id^="task-"]')
.should("have.length", numTasks);
// TODO - See this. Not sure if correct
cy.get("ul#task-list").then((taskList) => {
taskList.find('li[id^="task-"]').should("have.length", numTasks);
});
};

describe("Managing tasks", () => {
Expand Down

0 comments on commit af0bf7c

Please sign in to comment.