Reset the ToggleHistory indicator count/label when a share starts. Add a test for this

This commit is contained in:
Miguel Jacq 2019-09-03 17:02:00 +10:00
parent f118ebcb09
commit 09f2f57298
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6
5 changed files with 10 additions and 0 deletions

View file

@ -170,6 +170,9 @@ class GuiBaseTest(object):
QtTest.QTest.mouseClick(mode.server_status.server_button, QtCore.Qt.LeftButton)
self.assertEqual(mode.server_status.status, 1)
def toggle_indicator_is_reset(self, mode):
self.assertEqual(mode.toggle_history.indicator_count, 0)
self.assertFalse(mode.toggle_history.indicator_label.isVisible())
def server_status_indicator_says_starting(self, mode):
'''Test that the Server Status indicator shows we are Starting'''