Commit b10fe101 authored by Gabriel L. Oliveira's avatar Gabriel L. Oliveira

Add method to hang up until UNG Gadget's dialog is fully loaded

Because now this dialog is only rendered when user clicks to load it
parent e19e5579
...@@ -69,6 +69,13 @@ class UNGTestMixin(unittest.TestCase): ...@@ -69,6 +69,13 @@ class UNGTestMixin(unittest.TestCase):
waiting_time) waiting_time)
def wait_add_gadgets_dialog_to_load(self, waiting_time="30000"): def wait_add_gadgets_dialog_to_load(self, waiting_time="30000"):
"""wait until UNG gadgets dialog is fully loaded"""
self.selenium.wait_for_condition("selenium.browserbot"
".getCurrentWindow().$('div.gadget-listbox table#gadget-table')"
".children().length > 0",
waiting_time)
def clear_user_gadgets(self, user=None, password=None):
def clear_cache(self): def clear_cache(self):
"""call method 'Base_clearCache' of bt5 erp5_ui_test, that orders """call method 'Base_clearCache' of bt5 erp5_ui_test, that orders
portal_catalog to clear all allocated cache""" portal_catalog to clear all allocated cache"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment