Skip to content
Snippets Groups Projects
Commit 0447be61 authored by Thomas Holene Løkkeborg's avatar Thomas Holene Løkkeborg
Browse files

#86 kjører processEvents etter .show i add_row og remove_row test

Dette skal fikse en feil diskutert her: !50 (comment 202722)

Fiksen ble utviklet direkte inni GitLab Runner maskinen vår, og fungerer der
parent 92a50047
No related branches found
No related tags found
1 merge request!50#86 Modul: Autentiseringstavle
Pipeline #78374 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment