Add tests to make sure URL, QR Code, description etc are hidden when server stops

This commit is contained in:
Miguel Jacq 2020-07-06 10:37:56 +10:00
parent 58a96ef787
commit e68b4c674d
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -358,6 +358,11 @@ class GuiBaseTest(unittest.TestCase):
): ):
tab.get_mode().server_status.server_button.click() tab.get_mode().server_status.server_button.click()
self.assertEqual(tab.get_mode().server_status.status, 0) self.assertEqual(tab.get_mode().server_status.status, 0)
self.assertFalse(tab.get_mode().server_status.show_url_qr_code_button.isVisible())
self.assertFalse(tab.get_mode().server_status.copy_url_button.isVisible())
self.assertFalse(tab.get_mode().server_status.url.isVisible())
self.assertFalse(tab.get_mode().server_status.url_description.isVisible())
self.assertFalse(tab.get_mode().server_status.copy_hidservauth_button.isVisible())
def web_server_is_stopped(self, tab): def web_server_is_stopped(self, tab):
"""Test that the web server also stopped""" """Test that the web server also stopped"""