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

Reuse wait_ung_calendar_to_load method

parent 95383000
...@@ -230,7 +230,7 @@ class UNGTestMixin(unittest.TestCase): ...@@ -230,7 +230,7 @@ class UNGTestMixin(unittest.TestCase):
#refresh interface 10 times #refresh interface 10 times
for _try in range(10): for _try in range(10):
self.selenium.click("//div/span[@title='Refresh view']") self.selenium.click("//div/span[@title='Refresh view']")
self.selenium.wait_for_condition("selenium.browserbot.findElementOrNull('loadingpannel').style.display == 'none'", "10000"); self.wait_ung_calendar_to_load()
if self.selenium.is_text_present(name): if self.selenium.is_text_present(name):
break break
else: else:
......
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