1
0
Falko Schindler 2 жил өмнө
parent
commit
bfd62b47e3
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      tests/screen.py

+ 1 - 0
tests/screen.py

@@ -127,6 +127,7 @@ class Screen:
         self.selenium.get_screenshot_as_file(filename)
 
     def assert_py_logger(self, *logs: str) -> None:
+        self.wait(1.0)  # NOTE: wait for caplog
         assert len(self.caplog.records) == len(logs), \
             f'Expected {len(logs)} log message(s) but got {len(self.caplog.records)}'
         for log, record in zip(logs, self.caplog.records):