Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Check composition restarts before testing blur

Kaito-Rowingebb9089c6e30
diff --git a/src/components/MentionTextarea.dom.test.ts b/src/components/MentionTextarea.dom.test.ts
index 3ab9ee1090..27e0628187 100644
--- a/src/components/MentionTextarea.dom.test.ts
+++ b/src/components/MentionTextarea.dom.test.ts
@@ -45,6 +45,7 @@ it("uses native textarea rendering during composition and restores mention rende
expect(editor.hasAttribute("data-composing")).toBe(false);
expect(onCompositionEnd).toHaveBeenCalledOnce();
act(() => input.dispatchEvent(new CompositionEvent("compositionstart", { bubbles: true })));
+ expect(editor.hasAttribute("data-composing")).toBe(true);
act(() => input.dispatchEvent(new FocusEvent("focusout", { bubbles: true })));
expect(editor.hasAttribute("data-composing")).toBe(false);
act(() => root.unmount());