Skip to content
Snippets Groups Projects
Commit eae8191f authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Add smoke test for help dialogs

parent f830824a
No related branches found
No related tags found
No related merge requests found
Pipeline #88147 passed
...@@ -739,15 +739,15 @@ class MainWindow(QMainWindow): ...@@ -739,15 +739,15 @@ class MainWindow(QMainWindow):
# Kinda buggy because of the separate window in the same thread. # Kinda buggy because of the separate window in the same thread.
self.dialog.simulate.connect(self._simulate_sfg) self.dialog.simulate.connect(self._simulate_sfg)
def display_faq_page(self): def display_faq_page(self, event=None):
self.faq_page = FaqWindow(self) self.faq_page = FaqWindow(self)
self.faq_page.scroll_area.show() self.faq_page.scroll_area.show()
def display_about_page(self): def display_about_page(self, event=None):
self.about_page = AboutWindow(self) self.about_page = AboutWindow(self)
self.about_page.show() self.about_page.show()
def display_keybinds_page(self): def display_keybinds_page(self, event=None):
self.keybinds_page = KeybindsWindow(self) self.keybinds_page = KeybindsWindow(self)
self.keybinds_page.show() self.keybinds_page.show()
......
...@@ -127,3 +127,16 @@ def test_select_operation(qtbot, datadir): ...@@ -127,3 +127,16 @@ def test_select_operation(qtbot, datadir):
assert len(widget.pressed_operations) == 1 assert len(widget.pressed_operations) == 1
widget.exit_app() widget.exit_app()
def test_help_dialogs(qtbot):
# Smoke test to open up the "help dialogs"
# Should really test doing this through the menus an/or closing them
widget = GUI.MainWindow()
qtbot.addWidget(widget)
widget.display_faq_page()
widget.display_about_page()
widget.display_keybinds_page()
widget.exit_app()
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