From e68b4c674ddaf2f577db656a56a56449eea783e3 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Mon, 6 Jul 2020 10:37:56 +1000 Subject: [PATCH] Add tests to make sure URL, QR Code, description etc are hidden when server stops --- tests/gui_base_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/gui_base_test.py b/tests/gui_base_test.py index fa503faa..ab5df8a1 100644 --- a/tests/gui_base_test.py +++ b/tests/gui_base_test.py @@ -358,6 +358,11 @@ class GuiBaseTest(unittest.TestCase): ): tab.get_mode().server_status.server_button.click() 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): """Test that the web server also stopped"""