fix: Better fill rendering with latest RoughJS (#7031)

Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
Preet
2023-10-20 06:08:24 -07:00
committed by GitHub
parent 3697618266
commit d2a508104e
8 changed files with 44 additions and 32 deletions

13
src/tests/queries/dom.ts Normal file
View File

@@ -0,0 +1,13 @@
import { waitFor } from "@testing-library/dom";
export const getTextEditor = async (waitForEditor = true) => {
const query = () =>
document.querySelector(
".excalidraw-textEditorContainer > textarea",
) as HTMLTextAreaElement;
if (waitForEditor) {
waitFor(() => expect(query()).not.toBe(null));
return query();
}
return query();
};