mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
improvement: change hint for 2-point lines on resize (#2655)
This commit is contained in:
parent
d7f314cda8
commit
8dfea49ec1
5 changed files with 17 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
|||
import { queryByText } from "@testing-library/react";
|
||||
import { queryAllByText, queryByText } from "@testing-library/react";
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import { copiedStyles } from "../actions/actionStyles";
|
||||
|
@ -864,7 +864,7 @@ describe("regression tests", () => {
|
|||
clientY: 1,
|
||||
});
|
||||
const contextMenu = document.querySelector(".context-menu");
|
||||
fireEvent.click(queryByText(contextMenu as HTMLElement, "Delete")!);
|
||||
fireEvent.click(queryAllByText(contextMenu as HTMLElement, "Delete")[0]);
|
||||
expect(API.getSelectedElements()).toHaveLength(0);
|
||||
expect(h.elements[0].isDeleted).toBe(true);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue