Skip to content

Commit

Permalink
looks like dblClick doesn't play nice with our double click handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ndepaola committed Oct 26, 2024
1 parent 3c0a99b commit 4a7f5cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/common/test-utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { Store } from "@reduxjs/toolkit";
import { within } from "@testing-library/dom";
import type { RenderOptions } from "@testing-library/react";
import { render, screen, waitFor } from "@testing-library/react";
import { fireEvent, render, screen, waitFor } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import FileSaver from "file-saver";
import { MemoryRouterProvider } from "next-router-mock/MemoryRouterProvider";
Expand Down Expand Up @@ -327,7 +327,7 @@ export async function selectSlot(
`select-${face}${slot - 1}`
)!.children[0];
if (clickType === "double") {
await user.dblClick(element);
fireEvent.click(element, { detail: 2 });
} else if (clickType === "shift") {
await user.keyboard("{Shift>}");
await user.click(element);
Expand Down

0 comments on commit 4a7f5cd

Please sign in to comment.