From a60f7708326bcd0b348dee32da38c3835b04cdc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Wed, 11 Aug 2021 18:56:20 +0200 Subject: [PATCH] Fix flaky test (#932) --- webapp/src/components/cardDetail/cardDetailContents.test.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/src/components/cardDetail/cardDetailContents.test.tsx b/webapp/src/components/cardDetail/cardDetailContents.test.tsx index 0de7fa276..cb361d433 100644 --- a/webapp/src/components/cardDetail/cardDetailContents.test.tsx +++ b/webapp/src/components/cardDetail/cardDetailContents.test.tsx @@ -137,6 +137,8 @@ describe('components/cardDetail/cardDetailContents', () => { textarea!.dispatchEvent(onBlurEvent) }) + // TODO: Remove this hack if we get rid of codemirror/simpleMDE. + await new Promise((r) => setTimeout(r, 100)) expect(container).toMatchSnapshot() })