Commit 72cad0f3 authored by Gabriel L. Oliveira's avatar Gabriel L. Oliveira

Upgrade open_ung_default_page behaviour of UNGTestMixin

Should wait for calendar to be present before continuing, when
opening the 'calendar' page.
parent 6131f1ec
......@@ -75,6 +75,8 @@ class UNGTestMixin(unittest.TestCase):
self.wait_for_activities()
self.selenium.open(page)
self.selenium.wait_for_page_to_load("30000")
if page == "calendar":
self.selenium.wait_for_condition("selenium.browserbot.findElementOrNull('loadingpannel').style.display == 'none'", "10000");
def get_file_path(self, filename):
"""returns the absolute path to a test file given a 'filename'"""
......
......@@ -411,7 +411,6 @@ class TestUNGCalendar(UNGTestMixin):
test_time = int(unittest.time.time())
#create an event
self.open_ung_default_page("calendar")
self.selenium.wait_for_condition("selenium.browserbot.findElementOrNull('loadingpannel').style.display == 'none'", "10000");
#create event of type 'Visit'
event_name = 'Functional UNG Test %d - My Event' % test_time
self.create_calendar_event('Note', name=event_name)
......
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