Commit 6ad45b3c authored by Gabriel L. Oliveira's avatar Gabriel L. Oliveira

Reuse mixin method

parent 496b1101
...@@ -9,14 +9,10 @@ class TestUNGDocsSharing(UNGTestMixin): ...@@ -9,14 +9,10 @@ class TestUNGDocsSharing(UNGTestMixin):
"""test that web_page is correctly shared with another user""" """test that web_page is correctly shared with another user"""
self.selenium.open("ERP5Site_createNewWebDocument?template=web_page_template") self.selenium.open("ERP5Site_createNewWebDocument?template=web_page_template")
self.selenium.wait_for_page_to_load("30000") self.selenium.wait_for_page_to_load("30000")
self.selenium.click("//a[@name=\"document_title\"]") self.rename_document(name='Document Shared',
self.selenium.type("//input[@id=\"name\"]", "Document Shared") version='002',
self.selenium.click("//p[@id=\"more_properties\"]") language='pt-br',
self.selenium.type("//input[@id=\"version\"]", "002") keywords="My Subject")
self.selenium.type("//input[@id=\"language\"]", "pt-br")
self.selenium.type("//textarea[@id=\"keyword_list\"]", "My Subject")
self.selenium.click("//div[@class=\"ui-dialog-buttonset\"]/button[1]")
self.selenium.wait_for_page_to_load("30000")
self.selenium.click("//a[@name=\"document_title\"]") self.selenium.click("//a[@name=\"document_title\"]")
self.selenium.click("//p[@id=\"more_properties\"]") self.selenium.click("//p[@id=\"more_properties\"]")
self.assertEqual("002", self.selenium.get_value("//input[@id=\"version\"]")) self.assertEqual("002", self.selenium.get_value("//input[@id=\"version\"]"))
......
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