feat: add "toggle grid" to command palette (#7887)

This commit is contained in:
David Luzar
2024-04-13 19:12:29 +02:00
committed by GitHub
parent da2e507298
commit 890ed9f31f
7 changed files with 65 additions and 5 deletions
@@ -101,7 +101,7 @@ describe("<Excalidraw/>", () => {
clientY: 1,
});
const contextMenu = document.querySelector(".context-menu");
fireEvent.click(queryByText(contextMenu as HTMLElement, "Show grid")!);
fireEvent.click(queryByText(contextMenu as HTMLElement, "Toggle grid")!);
expect(h.state.gridSize).toBe(GRID_SIZE);
});