Bug 1270040 - Fix test_unknown_issuer.py for cert domain changes. r=Cykesiopka, a=test-only
authorHenrik Skupin <mail@hskupin.info>
Wed, 04 May 2016 12:30:44 +0200
changeset 332780 ef57089630e65e82cad48daf83bae31166f41328
parent 332779 1010a952f966ffc7ff17cd1ae1f3e8bb61cd39ae
child 332781 11be3fa64aa0ddc1d94407f2075a43943b57a5ab
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersCykesiopka, test-only
bugs1270040
milestone48.0a2
Bug 1270040 - Fix test_unknown_issuer.py for cert domain changes. r=Cykesiopka, a=test-only 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'))