mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
chore: bump @testing-library/react
12.1.5
-> 16.0.0
(#8322)
This commit is contained in:
parent
3cf14c73a3
commit
f19ce30dfe
52 changed files with 1035 additions and 978 deletions
|
@ -1,3 +1,4 @@
|
|||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import {
|
||||
render,
|
||||
|
@ -159,7 +160,7 @@ describe("contextMenu element", () => {
|
|||
width: 200,
|
||||
backgroundColor: "red",
|
||||
});
|
||||
h.elements = [rect1, rect2];
|
||||
API.setElements([rect1, rect2]);
|
||||
API.setSelectedElements([rect1]);
|
||||
|
||||
// lower z-index
|
||||
|
@ -607,7 +608,7 @@ describe("contextMenu element", () => {
|
|||
fillStyle: "solid",
|
||||
groupIds: ["g1"],
|
||||
});
|
||||
h.elements = [rectangle1, rectangle2];
|
||||
API.setElements([rectangle1, rectangle2]);
|
||||
|
||||
mouse.rightClickAt(50, 50);
|
||||
expect(API.getSelectedElements().length).toBe(2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue