Skip to content

Commit

Permalink
context menu tests update
Browse files Browse the repository at this point in the history
  • Loading branch information
F-Bk committed Oct 10, 2024
1 parent f17bbb1 commit 6693d1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/asammdf/gui/widgets/plot/test_PlotWidget_ContextMenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def test_Menu_ShowHide_Action_ShowDisabledItems(self):
QtTest.QTest.keyClick(self.plot.channel_selection, QtCore.Qt.Key.Key_Space)
# Evaluate
self.assertTrue(self.plot_channel_a.isHidden())
self.context_menu(action_text="Show disabled items")
self.context_menu(action_text="Hide disabled items")
self.assertFalse(self.plot_channel_a.isHidden())

with self.subTest("DisableByClick"):
Expand All @@ -464,7 +464,7 @@ def test_Menu_ShowHide_Action_ShowDisabledItems(self):
)
# Evaluate
self.assertTrue(self.plot_channel_b.isHidden())
self.context_menu(action_text="Show disabled items")
self.context_menu(action_text="Hide disabled items")
self.assertFalse(self.plot_channel_b.isHidden())

def test_Menu_ShowHide_Action_HideMissingItems(self):
Expand Down Expand Up @@ -517,7 +517,7 @@ def test_Menu_ShowHide_Action_ShowMissingItems(self):
self.assertTrue(plot_channel.isHidden())

# Events
self.context_menu(action_text="Show missing items")
self.context_menu(action_text="Hide missing items")

# Evaluate
self.assertFalse(plot_channel.isHidden())
Expand Down Expand Up @@ -584,7 +584,7 @@ def test_Menu_ShowHide_Action_UnfilterComputedChannels(self):
iterator += 1

# Events
self.context_menu(action_text="Un-filter computed channels")
self.context_menu(action_text="Filter only computed channels")

# Evaluate
iterator = QtWidgets.QTreeWidgetItemIterator(self.plot.channel_selection)
Expand Down

0 comments on commit 6693d1c

Please sign in to comment.