Commit 7a80fae5 authored by Gabriel L. Oliveira's avatar Gabriel L. Oliveira

Add test to check if help button is translated

parent 5bbc0970
......@@ -122,9 +122,14 @@ class TestUNGDocs(UNGTestMixin):
self.selenium.get_value("//input[@id=\"name\"]"))
def test_help_button_translation(self):
"""test that help button is translated"""
self.open_ung_default_page('ung')
self.selenium.click("//div[@id=\"select_language\"]/li/ul/li/"
"span[@id=\"fr\"]")
self.selenium.wait_for_page_to_load("30000")
self.failUnless(self.selenium.is_text_present("Aide"))
self.selenium.click("//div[@id=\"select_language\"]/li/ul/li/span[@id=\"en\"]")
self.selenium.click("//div[@id=\"select_language\"]/li/ul/li/"
"span[@id=\"en\"]")
self.selenium.wait_for_page_to_load("30000")
self.failUnless(self.selenium.is_text_present("Help"))
......
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