feat: renderer tweaks (#6698)

This commit is contained in:
David Luzar
2023-10-20 17:45:37 +02:00
committed by GitHub
parent d2a508104e
commit afea0df141
14 changed files with 1075 additions and 1127 deletions

View File

@@ -6,7 +6,7 @@ export const getTextEditor = async (waitForEditor = true) => {
".excalidraw-textEditorContainer > textarea",
) as HTMLTextAreaElement;
if (waitForEditor) {
waitFor(() => expect(query()).not.toBe(null));
await waitFor(() => expect(query()).not.toBe(null));
return query();
}
return query();