Bug 1270040 - Fix test_unknown_issuer.py for cert domain changes. r=Cykesiopka
MozReview-Commit-ID: JcEe9bo2jEC
--- 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'))