Skip to content

Commit

Permalink
Add explicit wait for browser to have loaded
Browse files Browse the repository at this point in the history
Enable test_cell_data
  • Loading branch information
zacc committed Jan 9, 2013
1 parent 41dad76 commit 7a02060
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion gaiatest/tests/manifest.ini
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions gaiatest/tests/test_browser_cell_data.py
Expand Up @@ -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/

Expand Down
2 changes: 2 additions & 0 deletions gaiatest/tests/test_browser_lan.py
Expand Up @@ -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/

Expand Down

0 comments on commit 7a02060

Please sign in to comment.