Update App.tsx to handle viewport panel hover and modify tests/unit/transform-foundation.integration.test.tsx for pointer events

This commit is contained in:
2026-04-03 02:37:22 +02:00
parent 17709683bd
commit a66f57faff
2 changed files with 14 additions and 2 deletions

View File

@@ -436,7 +436,10 @@ describe("transform foundation integration", () => {
fireEvent.click(screen.getByRole("button", { name: /^Brush Transform Fixture$/ }));
});
fireEvent.pointerOver(screen.getByTestId("viewport-panel-bottomRight"));
fireEvent.pointerMove(screen.getByTestId("viewport-panel-bottomRight"), {
clientX: 24,
clientY: 24
});
fireEvent.keyDown(window, {
key: "g",
code: "KeyG"