Browse Source

explanation of sleep

Rodja Trappe 2 năm trước cách đây
mục cha
commit
2b40c04859
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tests/test_pages.py

+ 1 - 1
tests/test_pages.py

@@ -76,7 +76,7 @@ def test_automatic_loading_of_keyboard_dependency(user: User):
 
     user.open('/')
     assert any(('keyboard.js' in s) for s in user.get_attributes('script', 'src'))
-    user.sleep(2)
+    user.sleep(2)  # NOTE we need to sleep to wait for the js error to be printed (start pytest with -s to see it)
 
 
 def test_shared_and_individual_pages(user: User):