GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit eae32026 authored by Alex Catarineu's avatar Alex Catarineu

Fix pinning test

parent 6891edfe
from marionette_driver import By, Actions
from marionette_driver.errors import MarionetteException, JavascriptException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
import testsuite import testsuite
import json
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
...@@ -31,8 +28,8 @@ class Test(MarionetteTestCase): ...@@ -31,8 +28,8 @@ class Test(MarionetteTestCase):
self.assertTrue(res, msg="Page could be loaded") self.assertTrue(res, msg="Page could be loaded")
if res: if res:
errorCode = m.find_element('id', 'errorCode') errorCode = m.find_element('id', 'errorShortDescText2')
self.assertEqual(errorCode.get_attribute('title'), self.assertEqual(json.loads(errorCode.get_attribute('data-l10n-args'))["error"],
'MOZILLA_PKIX_ERROR_KEY_PINNING_FAILURE', 'MOZILLA_PKIX_ERROR_KEY_PINNING_FAILURE',
msg='Wrong error code') msg='Wrong error code')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment