From 84874dcf315ca92350e536736dafacacff855f06 Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 14 Apr 2026 12:36:01 -0500 Subject: [PATCH] test(ui): wait for fallback textarea render --- ui/src/components/MarkdownEditor.test.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/components/MarkdownEditor.test.tsx b/ui/src/components/MarkdownEditor.test.tsx index b9233bd2028..106a394b996 100644 --- a/ui/src/components/MarkdownEditor.test.tsx +++ b/ui/src/components/MarkdownEditor.test.tsx @@ -295,6 +295,10 @@ describe("MarkdownEditor", () => { await flush(); + await vi.waitFor(() => { + expect(container.querySelector("textarea")).not.toBeNull(); + }); + const textarea = container.querySelector("textarea"); expect(textarea).not.toBeNull(); expect(textarea?.value).toBe("Affected versions: <= v0.3.1");