Ver Fonte

fix pytest

Falko Schindler há 1 ano atrás
pai
commit
103ab6a84e
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      tests/test_scene.py

+ 1 - 1
tests/test_scene.py

@@ -129,4 +129,4 @@ def test_object_creation_via_attribute(screen: Screen):
 
     screen.open('/')
     screen.wait(0.5)
-    assert screen.selenium.execute_script(f'return scene_c{scene.id}.children[4].type') == 'box'
+    assert screen.selenium.execute_script(f'return scene_c{scene.id}.children[4].name') == 'box'