Skip to content

Commit

Permalink
Testing simple mouse click
Browse files Browse the repository at this point in the history
  • Loading branch information
fedesemeraro committed Mar 20, 2024
1 parent c0337df commit a780d4a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit a780d4a

Please sign in to comment.