update deselection tests to use act() helper, per #8322

This commit is contained in:
Andrew Aquino 2024-09-20 13:38:43 -07:00
parent ace478a0eb
commit 4f1664cc90

View file

@ -126,7 +126,7 @@ describe("deselect when pressing escape", () => {
height: 50, height: 50,
}); });
h.elements = [rect1, rect2]; API.setElements([rect1, rect2]);
mouse.clickAt(0, 0); mouse.clickAt(0, 0);
@ -170,7 +170,7 @@ describe("deselect when pressing escape", () => {
height: 50, height: 50,
}); });
h.elements = [rect1, rect2, rect3]; API.setElements([rect1, rect2, rect3]);
mouse.downAt(-10, -10); mouse.downAt(-10, -10);
mouse.moveTo(160, 60); mouse.moveTo(160, 60);