Commit 1896253a authored by Gabriel L. Oliveira's avatar Gabriel L. Oliveira

Test 'Change State' button into Multiple Document (using listbox)

At UNG Docs interface, test if you are able to change states on multiple
documents.
This button is not implemented yet.
parent 2f7c13a6
......@@ -929,6 +929,23 @@ class TestUNGDocs(UNGTestMixin):
#XXX this is not implemented yet
raise NotImplementedError("Starred filter is not implemented yet")
def test_change_state_button(self):
"""test the possibility to change state of many documents
from the standard ung default interface, using 'Change State' button"""
test_time = int(unittest.time.time())
#create 2 web_page
for doc_index in range(2):
self.create_document('page', name="Functional UNG Test %d - "
"Web Page %d" % (test_time, doc_index))
self.open_ung_default_page(clear_cache=1, wait_for_activities=1)
#select the 2 documents created
self.selenium.click("//table[@class=\"listbox your_listbox your_listbox-table\"]/tbody/tr[1]/td[1]/input")
self.selenium.click("//table[@class=\"listbox your_listbox your_listbox-table\"]/tbody/tr[2]/td[1]/input")
#try to change state of both documents
self.selenium.click("//button[@class=\"change_state\"]")
self.selenium.wait_for_page_to_load("30000")
raise NotImplementedError
if __name__ == "__main__":
unittest.main()
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