瀏覽代碼

try to fix flaky test

Falko Schindler 1 年之前
父節點
當前提交
d06585905a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tests/test_markdown.py

+ 1 - 0
tests/test_markdown.py

@@ -28,6 +28,7 @@ def test_markdown_with_mermaid(screen: Screen):
     ''', extras=['mermaid', 'fenced-code-blocks'])
 
     screen.open('/')
+    screen.wait(0.5)  # wait for Mermaid to render
     screen.should_contain('Mermaid')
     assert screen.find_by_tag('svg').get_attribute('id').startswith('mermaid-')
     assert screen.find('Node_A').get_attribute('class') == 'nodeLabel'