Fix flaky test (#932)

This commit is contained in:
Jesús Espino 2021-08-11 18:56:20 +02:00 committed by GitHub
parent 362b0c601a
commit a60f770832
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,6 +137,8 @@ describe('components/cardDetail/cardDetailContents', () => {
textarea!.dispatchEvent(onBlurEvent) textarea!.dispatchEvent(onBlurEvent)
}) })
// TODO: Remove this hack if we get rid of codemirror/simpleMDE.
await new Promise((r) => setTimeout(r, 100))
expect(container).toMatchSnapshot() expect(container).toMatchSnapshot()
}) })