From 122a675dfa6c9182845a135ac687a53813be267c Mon Sep 17 00:00:00 2001 From: Dotta Date: Thu, 20 Aug 2026 23:02:00 +0000 Subject: [PATCH] test(ui): wait for clipboard failure state Co-Authored-By: Paperclip --- ui/src/pages/tools/McpConfigHelpDialog.test.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/pages/tools/McpConfigHelpDialog.test.tsx b/ui/src/pages/tools/McpConfigHelpDialog.test.tsx index c6149921ca9..ee061ea94c5 100644 --- a/ui/src/pages/tools/McpConfigHelpDialog.test.tsx +++ b/ui/src/pages/tools/McpConfigHelpDialog.test.tsx @@ -149,7 +149,9 @@ describe("Paste a config — MCP config help", () => { await flushReact(); await flushReact(); - expect(document.body.textContent).toContain("select the text above and copy it"); + await vi.waitFor(() => { + expect(document.body.textContent).toContain("select the text above and copy it"); + }); }); it("makes no connection or import request when opened or copied", async () => {