Commit 1079db34 authored by Gabriel L. Oliveira's avatar Gabriel L. Oliveira

Expand behaviour of open_ung_default_page of UNGTestMixin

Extend this method to open any ung default page, i.e., UNG Docs,
Calendar or Email.
parent b8e02138
...@@ -65,7 +65,7 @@ class UNGTestMixin(unittest.TestCase): ...@@ -65,7 +65,7 @@ class UNGTestMixin(unittest.TestCase):
break break
unittest.time.sleep(2) #XXX give time to selenium to recompose page when refresh unittest.time.sleep(2) #XXX give time to selenium to recompose page when refresh
def open_ung_default_page(self, clear_cache=0, wait_for_activities=0): def open_ung_default_page(self, page="", clear_cache=0, wait_for_activities=0):
"""open ung default page set under 'setUp' """open ung default page set under 'setUp'
clear_cache = if enabled, will call 'clear_cache' clear_cache = if enabled, will call 'clear_cache'
wait_for_activities = if enabled, will call 'wait_for_activities'""" wait_for_activities = if enabled, will call 'wait_for_activities'"""
...@@ -73,7 +73,7 @@ class UNGTestMixin(unittest.TestCase): ...@@ -73,7 +73,7 @@ class UNGTestMixin(unittest.TestCase):
self.clear_cache() self.clear_cache()
if wait_for_activities: if wait_for_activities:
self.wait_for_activities() self.wait_for_activities()
self.selenium.open("") self.selenium.open(page)
self.selenium.wait_for_page_to_load("30000") self.selenium.wait_for_page_to_load("30000")
def get_file_path(self, filename): def get_file_path(self, filename):
......
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