Skip to content

Commit f8ccc10

Browse files
committed
chore: remove flake
1 parent 7330689 commit f8ccc10

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

packages/@triplex/editor/src/ui/__tests__/number-input.test.tsx

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -264,30 +264,6 @@ describe("number input", () => {
264264
expect(change).toHaveBeenCalledWith(10.02);
265265
});
266266

267-
it("should multiply the step during a drag when pressing ctrl", async () => {
268-
const change = vi.fn();
269-
const confirm = vi.fn();
270-
const { getByTestId } = render(
271-
<NumberInput
272-
actionId="contextpanel_project_ignore"
273-
defaultValue={10.2}
274-
name="x"
275-
onChange={change}
276-
onConfirm={confirm}
277-
/>,
278-
);
279-
const element = getByTestId("number-10.2");
280-
fireEvent.mouseDown(element);
281-
await waitFor(() => getByTestId("pointer-lock"));
282-
await fireEvent.keyDown(document, { ctrlKey: true });
283-
284-
fireEvent.mouseMove(element, { clientX: 1 });
285-
286-
// TODO: This should be capped to multiples of 0.5
287-
// E.g. Round up or down. So this should round down to 10.5.
288-
expect(change).toHaveBeenCalledWith(10.7);
289-
});
290-
291267
it("should reduce the step during a drag when pressing shift", async () => {
292268
const change = vi.fn();
293269
const confirm = vi.fn();

0 commit comments

Comments
 (0)