[tor-commits] [tor-browser-bundle-testsuite/master] Fix pinning test
gk at torproject.org
gk at torproject.org
Thu Oct 15 18:41:27 UTC 2020
commit eae3202691b96fc3d39e952eb0ca6a3d67dd28be
Author: Alex Catarineu <acat at torproject.org>
Date: Fri May 15 13:48:05 2020 +0200
Fix pinning test
---
marionette/tor_browser_tests/test_pinning.py | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/marionette/tor_browser_tests/test_pinning.py b/marionette/tor_browser_tests/test_pinning.py
index dc66236..23e029c 100644
--- a/marionette/tor_browser_tests/test_pinning.py
+++ b/marionette/tor_browser_tests/test_pinning.py
@@ -1,10 +1,7 @@
-from marionette_driver import By, Actions
-from marionette_driver.errors import MarionetteException, JavascriptException
-
from marionette_harness import MarionetteTestCase
import testsuite
-
+import json
class Test(MarionetteTestCase):
@@ -31,8 +28,8 @@ class Test(MarionetteTestCase):
self.assertTrue(res, msg="Page could be loaded")
if res:
- errorCode = m.find_element('id', 'errorCode')
- self.assertEqual(errorCode.get_attribute('title'),
+ errorCode = m.find_element('id', 'errorShortDescText2')
+ self.assertEqual(json.loads(errorCode.get_attribute('data-l10n-args'))["error"],
'MOZILLA_PKIX_ERROR_KEY_PINNING_FAILURE',
msg='Wrong error code')
More information about the tor-commits
mailing list