commit 10d2f1f8e63e0e3a738ecc6a671bb2658b96c308 Author: Matthew Finkel sysrqb@torproject.org Date: Fri Aug 13 21:16:20 2021 +0000
Bug 40030: Fix onion_client_auth --- marionette/tor_browser_tests/test_onion_client_auth.py | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/marionette/tor_browser_tests/test_onion_client_auth.py b/marionette/tor_browser_tests/test_onion_client_auth.py index 1686fa7..bc3b3f9 100644 --- a/marionette/tor_browser_tests/test_onion_client_auth.py +++ b/marionette/tor_browser_tests/test_onion_client_auth.py @@ -180,6 +180,8 @@ class Test(WindowManagerMixin, MarionetteTestCase): m.find_element( 'css selector', '#tor-clientauth-notification .popup-notification-primary-button').click() with m.using_context('content'): + # Wait until the page loads. There is a 2 second delay built-in, plus the associated circuit latency. + Wait(m, timeout=m.timeout.page_load).until(lambda _: m.find_element('id', 'enumeration')) m.find_element('id', 'enumeration') keys = self.get_keys() self.assertEqual(len(keys), 1)
tbb-commits@lists.torproject.org