fix(web): kanban add-task tests #646

Closed
jason.woltje wants to merge 2 commits from fix/kanban-tests into main
Showing only changes of commit aa78df2c2c - Show all commits

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(