Bug 1270040 - Fix test_unknown_issuer.py for cert domain changes. r=Cykesiopka draft
authorHenrik Skupin <mail@hskupin.info>
Wed, 04 May 2016 12:30:44 +0200
changeset 363455 7b7ae19de6740e8022f1acb2db54cc733546acda
parent 363054 13c042a06d5cea64580ddfd32d0e2abbb36115f9
child 363456 300c612aa94201e72bf37bee201879329b23f1c9
push id17207
push userbmo:hskupin@gmail.com
push dateWed, 04 May 2016 19:13:29 +0000
reviewersCykesiopka
bugs1270040
milestone49.0a1
Bug 1270040 - Fix test_unknown_issuer.py for cert domain changes. r=Cykesiopka MozReview-Commit-ID: JcEe9bo2jEC
testing/firefox-ui/tests/functional/security/test_unknown_issuer.py
--- a/testing/firefox-ui/tests/functional/security/test_unknown_issuer.py
+++ b/testing/firefox-ui/tests/functional/security/test_unknown_issuer.py
@@ -20,20 +20,16 @@ class TestUnknownIssuer(FirefoxTestCase)
     def test_unknown_issuer(self):
         with self.marionette.using_context('content'):
             # Go to a site that has a cert with an unknown issuer
             self.assertRaises(MarionetteException, self.marionette.navigate, self.url)
 
             # Wait for the DOM to receive events
             time.sleep(1)
 
-            # Check the link in cert_domain_link
-            link = self.marionette.find_element(By.ID, 'cert_domain_link')
-            self.assertEquals(link.get_attribute('textContent'),
-                              'ssl-selfsigned-unknownissuer.mozqa.com')
+            # Check for the correct error code
+            error = self.marionette.find_element(By.ID, 'errorCode')
+            self.assertEquals(error.get_attribute('textContent'),
+                              'SEC_ERROR_UNKNOWN_ISSUER')
 
             # Verify the "Go Back" and "Advanced" buttons appear
             self.assertIsNotNone(self.marionette.find_element(By.ID, 'returnButton'))
             self.assertIsNotNone(self.marionette.find_element(By.ID, 'advancedButton'))
-
-            # Verify the error code is correct
-            text = self.marionette.find_element(By.ID, 'technicalContentText')
-            self.assertIn('SEC_ERROR_UNKNOWN_ISSUER', text.get_attribute('textContent'))