From a780d4af84b50bfd8f1d021daf6f8337edefcd1e Mon Sep 17 00:00:00 2001 From: fsemerar Date: Wed, 20 Mar 2024 09:30:17 -0700 Subject: [PATCH] Testing simple mouse click --- tests/test_gui.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_gui.py b/tests/test_gui.py index 58d9fec..581b57c 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -96,6 +96,15 @@ def test_select_filter(app, qtbot): # qtbot.wait(3000) # assert app.ui.checkBox_display_shock.isChecked() == initial_state +def test_toggle_display_shock_checkbox(app, qtbot): + """ + Test the functionality of the 'Show Shock' checkbox. + """ + app.ui.checkBox_display_shock.setChecked(True) + qtbot.mouseClick(app.ui.checkBox_display_shock, Qt.LeftButton) + qtbot.wait(5000) + assert app.ui.checkBox_display_shock.isChecked() != True + def test_switch_tabs(app, qtbot): """