зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1275311 - Get property when in content in security notification UI test; r=whimboo
MozReview-Commit-ID: 1mIed8b8uXY --HG-- extra : rebase_source : e21b4565c5b146faa4468d4569dabe34e182ae8f
This commit is contained in:
Родитель
e33c9179cd
Коммит
01d029f0e7
|
@ -36,14 +36,14 @@ class TestSecurityNotification(FirefoxTestCase):
|
|||
|
||||
# Verify the text in Technical Content contains the page with invalid cert
|
||||
text = self.marionette.find_element(By.ID, 'badCertTechnicalInfo')
|
||||
self.assertIn(self.urls[0][8:], text.get_attribute('textContent'))
|
||||
self.assertIn(self.urls[0][8:], text.get_property('textContent'))
|
||||
|
||||
# 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
|
||||
self.assertIn('SEC_ERROR_EXPIRED_CERTIFICATE', text.get_attribute('textContent'))
|
||||
self.assertIn('SEC_ERROR_EXPIRED_CERTIFICATE', text.get_property('textContent'))
|
||||
|
||||
def test_secure_website(self):
|
||||
with self.marionette.using_context('content'):
|
||||
|
|
Загрузка…
Ссылка в новой задаче