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

#125 setter nå overskirft på auth og sub -koder

Gjort fordi auth sin overskrift inneholder tilfeldig genert data
parent 91be9d1d
No related branches found
No related tags found
1 merge request!70#125 løsning til oppløsningstrøbbel ved å bruke px ikke pt i font
Pipeline #82958 failed
...@@ -74,18 +74,26 @@ class TestModulesAcrossResolutions(unittest.TestCase): ...@@ -74,18 +74,26 @@ class TestModulesAcrossResolutions(unittest.TestCase):
the results. We should get the same result across different the results. We should get the same result across different
resolutions. resolutions.
NOTE: This test needs to be updated when a new module is added, or when Modules added to SOI must be the same every time the program is ran.
one is deleted. It will fail until it is updated.
NOTE: This test needs to be updated when a new module is added,
deleted, or changed. It will fail until it is updated.
""" """
expected_result = [ expected_result = [
{"x": 0, "y": 0, "page": 1, "name": "AuthenticationBoardModule"}, {"x": 0, "y": 0, "page": 1, "name": "AuthenticationBoardModule"},
{"x": 407.5, "y": 0, "page": 1, "name": "SubtractorcodesModule"}, {"x": 407.5, "y": 0, "page": 1, "name": "SubtractorcodesModule"},
{"x": 633.0, "y": 0, "page": 1, "name": "FreeTextModule"}, {"x": 602.0, "y": 0, "page": 1, "name": "FreeTextModule"},
{"x": 733.0, "y": 0, "page": 1, "name": "TableModule"}, {"x": 702.0, "y": 0, "page": 1, "name": "TableModule"},
] ]
def press_enter(): def press_enter():
active_widget = app.activeModalWidget() active_widget = app.activeModalWidget()
# triple click to select existing text for overwrite
QTest.mouseDClick(active_widget.edit_headline, Qt.LeftButton)
QTest.mouseClick(active_widget.edit_headline, Qt.LeftButton)
# need to overwrite text because title otherwise contains
# unpredictable text
QTest.keyClicks(active_widget.edit_headline, "TestTitle")
QTest.keyClick(active_widget, Qt.Key_Enter) QTest.keyClick(active_widget, Qt.Key_Enter)
soi = SOI() soi = SOI()
......
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