mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-06 08:25:15 -04:00
GUI tests for v3 Client Auth (albeit only in local mode, so kind of stubbed
This commit is contained in:
parent
cde46b676e
commit
50d5cf5740
2 changed files with 25 additions and 1 deletions
|
@ -371,7 +371,7 @@ class GuiBaseTest(unittest.TestCase):
|
|||
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()
|
||||
tab.get_mode().server_status.copy_client_auth_v3_button.isVisible()
|
||||
)
|
||||
|
||||
def web_server_is_stopped(self, tab):
|
||||
|
@ -452,6 +452,14 @@ class GuiBaseTest(unittest.TestCase):
|
|||
# We should have timed out now
|
||||
self.assertEqual(tab.get_mode().server_status.status, 0)
|
||||
|
||||
def clientauth_is_visible(self, tab):
|
||||
self.assertTrue(
|
||||
tab.get_mode().server_status.copy_client_auth_v3_button.isVisible()
|
||||
)
|
||||
tab.get_mode().server_status.copy_client_auth_v3_button.click()
|
||||
clipboard = tab.common.gui.qtapp.clipboard()
|
||||
self.assertEqual(clipboard.text(), "E2GOT5LTUTP3OAMRCRXO4GSH6VKJEUOXZQUC336SRKAHTTT5OVSA")
|
||||
|
||||
# Grouped tests follow from here
|
||||
|
||||
def run_all_common_setup_tests(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue