Skip to content

Commit

Permalink
Add (failing) test to ensure menu-item updates with state change
Browse files Browse the repository at this point in the history
  • Loading branch information
roomrys committed Sep 10, 2024
1 parent 6639ce5 commit 2b12c93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/gui/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,12 @@ def toggle_and_verify_visibility(expected_visibility: bool = True):
window.showNormal()
vp = window.player

# Change state and ensure menu-item check updates
assert window.state["color predicted"] == True
assert window._menu_actions["color predicted"].isChecked() == True
window.state["color predicted"] = False
assert window._menu_actions["color predicted"].isChecked() == False

# Enable distinct colors
window.state["color predicted"] = True

Expand Down

0 comments on commit 2b12c93

Please sign in to comment.