зеркало из https://github.com/mozilla/eideticker.git
Bug 1005594 - Temporarily resort to a 30 second timeout to say marketplace is done loading;r=me
This commit is contained in:
Родитель
ba2b66436a
Коммит
19cb08f4be
|
@ -9,7 +9,7 @@ from marionette.errors import ElementNotVisibleException
|
|||
from marionette.wait import Wait
|
||||
from marionette.by import By
|
||||
from gaiatest.gaia_test import GaiaApps
|
||||
|
||||
import time
|
||||
|
||||
class B2GContactsTestMixin(object):
|
||||
|
||||
|
@ -62,9 +62,12 @@ class B2GMarketplaceTestMixin(object):
|
|||
expected.element_present(
|
||||
By.CSS_SELECTOR, 'iframe[src*="marketplace"]'))
|
||||
self.device.marionette.switch_to_frame(iframe)
|
||||
Wait(self.device.marionette).until(
|
||||
lambda m: 'loaded' in m.find_element(
|
||||
By.TAG_NAME, 'body').get_attribute('class').split())
|
||||
# FIXME: The below *should* work, but doesn't... just doing an
|
||||
# arbitrary
|
||||
#Wait(self.device.marionette).until(
|
||||
# lambda m: 'loaded' in m.find_element(
|
||||
# By.TAG_NAME, 'body').get_attribute('class').split()
|
||||
time.sleep(30)
|
||||
|
||||
def prepare_app(self):
|
||||
self.launch_app()
|
||||
|
|
Загрузка…
Ссылка в новой задаче