Bug 1237735 - Mirror latest changes of firefox-ui-tests from github. r=maja_zf DONTBUILD

This commit is contained in:
Henrik Skupin 2016-01-15 11:30:35 +01:00
parent 83b5e0ba34
commit 992ef10b64
6 changed files with 11 additions and 4 deletions

View File

@ -19,6 +19,7 @@ class TestStarInAutocomplete(FirefoxTestCase):
def setUp(self):
FirefoxTestCase.setUp(self)
self.bookmark_panel = None
self.test_urls = [self.marionette.absolute_url('layout/mozilla_grants.html')]
# Disable search suggestions to only get results for history and bookmarks
@ -32,6 +33,11 @@ class TestStarInAutocomplete(FirefoxTestCase):
def tearDown(self):
# Close the autocomplete results
try:
if self.bookmark_panel:
self.marionette.execute_script("""
arguments[0].hidePopup();
""", script_args=[self.bookmark_panel])
self.browser.navbar.locationbar.autocomplete_results.close()
self.places.restore_default_bookmarks()
finally:
@ -55,8 +61,11 @@ class TestStarInAutocomplete(FirefoxTestCase):
'menu_bookmarkThisPage')
# TODO: Replace hard-coded selector with library method when one is available
self.bookmark_panel = self.marionette.find_element(By.ID, 'editBookmarkPanel')
done_button = self.marionette.find_element(By.ID, 'editBookmarkPanelDoneButton')
Wait(self.marionette).until(lambda mn: done_button.is_displayed)
Wait(self.marionette).until(
lambda mn: self.bookmark_panel.get_attribute('panelopen') == 'true')
done_button.click()
# We must open the blank page so the autocomplete result isn't "Switch to tab"

View File

@ -14,7 +14,6 @@ tags = local
[test_security_notification.py]
[test_ssl_disabled_error_page.py]
[test_ssl_status_after_restart.py]
skip-if = os == "win" # Bug 1167179: Fails to open popups after restart
[test_submit_unencrypted_info_warning.py]
[test_unknown_issuer.py]
[test_untrusted_connection_error_page.py]

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -154,8 +154,7 @@ class UpdateTestCase(FirefoxTestCase):
# No further updates should be offered now with the same update type
if update_available:
about_window.download(wait_for_finish=False)
self.download_update(about_window, wait_for_finish=False)
self.assertNotEqual(self.software_update.active_update.type,
self.updates[self.current_update_index].type)