Skip to content

Commit 01babc7

Browse files
committed
fix: linter issue in tests
1 parent d350ebf commit 01babc7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/twd-tests/todoList.twd.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ describe("Todo List Page", () => {
106106
// Find the delete button for the first todo (Learn TWD)
107107
// Since there are multiple delete buttons, we'll get all and use the first one
108108
// which corresponds to the first todo item
109-
const deleteButtons = await screenDom.getAllByRole("button", { name: "Delete" });
110-
const deleteButton = deleteButtons[0];
109+
const deleteButtons = await screenDom.findAllByRole("button", { name: "Delete" });
110+
const deleteButton = deleteButtons[0] as HTMLElement;
111111

112112
await twd.mockRequest("getTodoList", {
113113
method: "GET",
@@ -120,8 +120,8 @@ describe("Todo List Page", () => {
120120
await twd.waitForRequest("deleteTodo");
121121
await twd.waitForRequest("getTodoList");
122122

123-
const todoList = await screenDom.getAllByText(/Learn TWD|Build Todo App/);
123+
const todoList = await screenDom.findAllByText(/Learn TWD|Build Todo App/);
124124
expect(todoList).to.have.length(1);
125-
twd.should(todoList[0], "be.visible");
125+
twd.should(todoList[0] as HTMLElement, "be.visible");
126126
});
127-
});
127+
});

0 commit comments

Comments
 (0)