diff --git a/test/test_module_authentication_board.py b/test/test_module_authentication_board.py
index 3178351df8e47eead23ab1784b2cded18add24cb..5b3262e48055e0290b8676076e562da3b73913c5 100644
--- a/test/test_module_authentication_board.py
+++ b/test/test_module_authentication_board.py
@@ -83,6 +83,11 @@ class TestDefaultAuthenticationBoardModule(unittest.TestCase):
         self.module.show()
         QTest.qWaitForWindowExposed(self.module)
 
+        # From experience it can happen that the widget is not fully
+        # initialized before the QTest.keyClicks below. By calling
+        # processEvents here we give Qt the opportunity to catch up with us
+        app.processEvents()
+
         old_row_count = self.module.rowCount()
 
         # Use shortcut 'Ctrl + +'
@@ -111,6 +116,11 @@ class TestDefaultAuthenticationBoardModule(unittest.TestCase):
         self.module.show()
         QTest.qWaitForWindowExposed(self.module)
 
+        # From experience it can happen that the widget is not fully
+        # initialized before the QTest.keyClicks below. By calling
+        # processEvents here we give Qt the opportunity to catch up with us
+        app.processEvents()
+
         old_row_count = self.module.rowCount()
 
         # First row is selected on startup, it contains headline