Ver código fonte

try to fix pytest for ui.scene

Falko Schindler 1 ano atrás
pai
commit
3533e991ed
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      tests/test_scene.py

+ 1 - 0
tests/test_scene.py

@@ -152,4 +152,5 @@ def test_gltf(screen: Screen):
         scene.gltf('https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Assets/main/Models/Box/glTF-Binary/Box.glb')
         scene.gltf('https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Assets/main/Models/Box/glTF-Binary/Box.glb')
 
 
     screen.open('/')
     screen.open('/')
+    screen.wait(1.0)
     assert screen.selenium.execute_script(f'return scene_c{scene.id}.children.length') == 5
     assert screen.selenium.execute_script(f'return scene_c{scene.id}.children.length') == 5