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

Workaround for grouping many events into 'Other##' button

- When many events are present on same day, a button ("Other##") is created,
  in order to show other events and not break main calendar layout
parent d5231e7f
......@@ -852,6 +852,11 @@ class TestUNGCalendar(UNGTestMixin):
#click Today button
self.selenium.click("//span[@class='showtoday']")
self.selenium.wait_for_condition("selenium.browserbot.findElementOrNull('loadingpannel').style.display == 'none'", "10000");
#in cases when there are many events on same day, the 'month' view
# group them, only showing them after clicking on 'Others##'
if self.selenium.is_element_present("//td[@abbr='%s'][@ch='more']" % current_date):
self.selenium.click("//td[@abbr='%s'][@ch='more']" % current_date)
self.selenium.wait_for_condition("selenium.isTextPresent('%s')" % event_name, 30000)
self.assertTrue(self.selenium.is_text_present(event_name))
#check button for week view
......
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