This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user