From 7a0206049f3ffad7e6614fd75d0e53a6c55122bc Mon Sep 17 00:00:00 2001 From: zacc Date: Wed, 9 Jan 2013 23:33:30 +0000 Subject: [PATCH] Add explicit wait for browser to have loaded Enable test_cell_data --- gaiatest/tests/manifest.ini | 1 - gaiatest/tests/test_browser_cell_data.py | 2 ++ gaiatest/tests/test_browser_lan.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gaiatest/tests/manifest.ini b/gaiatest/tests/manifest.ini index 49472d44..4f0c64bf 100644 --- a/gaiatest/tests/manifest.ini +++ b/gaiatest/tests/manifest.ini @@ -34,7 +34,6 @@ xfail = false [test_browser_cell_data.py] carrier = true -disabled = No SIM/data plan on CI [test_browser_lan.py] lan = true [test_calculator.py] diff --git a/gaiatest/tests/test_browser_cell_data.py b/gaiatest/tests/test_browser_cell_data.py index 7a572062..3b0647ee 100644 --- a/gaiatest/tests/test_browser_cell_data.py +++ b/gaiatest/tests/test_browser_cell_data.py @@ -22,6 +22,8 @@ def setUp(self): # launch the app self.app = self.apps.launch('Browser') + self.wait_for_condition(lambda m: m.execute_script("return window.wrappedJSObject.Browser.hasLoaded;") == True) + def test_browser_cell_data(self): # https://moztrap.mozilla.org/manage/case/1328/ diff --git a/gaiatest/tests/test_browser_lan.py b/gaiatest/tests/test_browser_lan.py index 0e768a51..1bf27860 100644 --- a/gaiatest/tests/test_browser_lan.py +++ b/gaiatest/tests/test_browser_lan.py @@ -24,6 +24,8 @@ def setUp(self): # launch the app self.app = self.apps.launch('Browser') + self.wait_for_condition(lambda m: m.execute_script("return window.wrappedJSObject.Browser.hasLoaded;") == True) + def test_browser_lan(self): # https://moztrap.mozilla.org/manage/case/1327/