Ver Fonte

try to fix flaky test

Falko Schindler há 1 ano atrás
pai
commit
d06585905a
1 ficheiros alterados com 1 adições e 0 exclusões
  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'