fix(web): fix kanban add-task tests
Some checks failed
ci/woodpecker/push/ci Pipeline failed

This commit is contained in:
2026-03-01 17:06:04 -06:00
parent 1ac2c33bc2
commit aa78df2c2c

View File

@@ -140,8 +140,8 @@ describe("KanbanPage add task flow", (): void => {
const titleInput = screen.getByPlaceholderText("Task title..."); const titleInput = screen.getByPlaceholderText("Task title...");
await user.type(titleInput, createdTask.title); await user.type(titleInput, createdTask.title);
// Click the Add button // Press Enter to submit
await user.click(screen.getByRole("button", { name: /✓ Add/i })); await user.keyboard("{Enter}");
await waitFor((): void => { await waitFor((): void => {
expect(mockCreateTask).toHaveBeenCalledWith( expect(mockCreateTask).toHaveBeenCalledWith(