diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_discussiontool_zuite.xml b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_discussiontool_zuite.xml new file mode 100644 index 0000000000000000000000000000000000000000..40b211a43176b45362e1ea5de19da2acc029af35 --- /dev/null +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_discussiontool_zuite.xml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Zuite" module="Products.Zelenium.zuite"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>officejs_ui_discussiontool_zuite</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_discussiontool_zuite/testOfficeJSDiscussionTool.xml b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_discussiontool_zuite/testOfficeJSDiscussionTool.xml new file mode 100644 index 0000000000000000000000000000000000000000..dbbe4e20abb0ffbaba9fba75622241fd51f21bda --- /dev/null +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_discussiontool_zuite/testOfficeJSDiscussionTool.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>testOfficeJSDiscussionTool</string> </value> + </item> + <item> + <key> <string>output_encoding</string> </key> + <value> <string>utf-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <unicode></unicode> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_discussiontool_zuite/testOfficeJSDiscussionTool.zpt b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_discussiontool_zuite/testOfficeJSDiscussionTool.zpt new file mode 100644 index 0000000000000000000000000000000000000000..65809dc35dc21b11341bec158eb5f486c5c91287 --- /dev/null +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_discussiontool_zuite/testOfficeJSDiscussionTool.zpt @@ -0,0 +1,128 @@ +<html xmlns:tal="http://xml.zope.org/namespaces/tal" + xmlns:metal="http://xml.zope.org/namespaces/metal"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>Test OfficeJS UI</title> + <script src="../../web_site_module/officejs_discussion_tool/rsvp.js"></script> + <script src="../../web_site_module/officejs_discussion_tool/jiodev.js"></script> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Test OfficeJS UI</td></tr> +</thead><tbody> +<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" /> +<!-- Clean Up --> +<tr> + <td>open</td> + <td>${base_url}/bar_module/ListBoxZuite_reset</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>Reset Successfully.</td> + <td></td> +</tr> +<tal:block tal:define="web_site_name python: 'officejs_discussion_tool'"> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForOfficejsUi/macros/install_offline_and_redirect" /> +</tal:block> +<tr> + <td>waitForElementPresent</td> + <td>//a[@data-i18n='Storages']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//a[@data-i18n='Storages']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=Local is Enough</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Local is Enough</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=Add</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Add</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//button[@data-i18n='Save']</td> + <td></td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Titre %s' % DateTime()">Titre</td> + <td>title</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@title='Title']</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>//input[@title='Title']</td> + <td>${title}</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@title='Title']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Save']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[@data-gadget-scope="notification"]//button[text()='Data Updated']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//a[@data-i18n='Document']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=Add</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@title='Title']</td> + <td></td> +</tr> +<tr> + <td>verifyValue</td> + <td>//input[@title='Title']</td> + <td>${title}</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=cke_1_contents</td> + <td></td> +</tr> \ No newline at end of file diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_discussiontool_zuite/testOfficeJSDiscussionToolErp5Synchronization.xml b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_discussiontool_zuite/testOfficeJSDiscussionToolErp5Synchronization.xml new file mode 100644 index 0000000000000000000000000000000000000000..2f911e25a240cd8d3cf5532bff2376456546e40a --- /dev/null +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_discussiontool_zuite/testOfficeJSDiscussionToolErp5Synchronization.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>testOfficeJSDiscussionToolErp5Synchronization</string> </value> + </item> + <item> + <key> <string>output_encoding</string> </key> + <value> <string>utf-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <unicode></unicode> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_discussiontool_zuite/testOfficeJSDiscussionToolErp5Synchronization.zpt b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_discussiontool_zuite/testOfficeJSDiscussionToolErp5Synchronization.zpt new file mode 100644 index 0000000000000000000000000000000000000000..ca1363a6d7c64257c2539f23c890d6f949bb6ff8 --- /dev/null +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_discussiontool_zuite/testOfficeJSDiscussionToolErp5Synchronization.zpt @@ -0,0 +1,319 @@ +<html xmlns:tal="http://xml.zope.org/namespaces/tal" + xmlns:metal="http://xml.zope.org/namespaces/metal"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>Test OfficeJS UI</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Test OfficeJS UI</td></tr> +</thead><tbody> +<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" /> +<!-- Clean Up --> +<tr> + <td>open</td> + <td>${base_url}/bar_module/ListBoxZuite_reset</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>Reset Successfully.</td> + <td></td> +</tr> +<!-- Initialize --> +<tr> + <td>open</td> + <td>${base_url}/web_site_module/officejs_discussion_tool/</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=Storages</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Storages</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=Erp5</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Erp5</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>name=erp5_url</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=erp5_url</td> + <td>${base_url}/web_site_module/</td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Proceed']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=Add</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Add</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//button[@data-i18n='Save']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=title</td> + <td></td> +</tr> +<tr> + <td>store</td> + <td>Titre</td> + <td>title</td> +</tr> +<tr> + <td>type</td> + <td>name=title</td> + <td>${title}</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@title='Title']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Save']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[@data-gadget-scope="notification"]//button[text()='Data Updated']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//a[@data-i18n='Document']</td> + <td></td> +</tr> +<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded" /> +<!-- Verify Search, add another document --> +<tr> + <td>waitForElementPresent</td> + <td>//a[@data-i18n='Add']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//a[@data-i18n='Add']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//button[@data-i18n='Save']</td> + <td></td> +</tr> +<tr> + <td>store</td> + <td>search</td> + <td>search</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=title</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=title</td> + <td>${search}</td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Save']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//a[@data-i18n='Document']</td> + <td></td> +</tr> +<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded" /> +<tal:block tal:define="search_query python: 'Titre'"> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/search_in_form_list_without_header_url" /> +</tal:block> +<tr> + <td>waitForElementPresent</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +<tr> + <td>assertFailureOnNext</td> + <td>false</td> + <td></td> +</tr> +<tr> + <td>verifyElementPresent</td> + <td>link=${search}</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=title</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +<tr> + <td>verifyValue</td> + <td>title</td> + <td>${title}</td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Menu']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//a[@data-i18n='Synchronize']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>name=search</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=search</td> + <td>${title}</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//button[@data-i18n='Filter']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Filter']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//button[@data-i18n='Filter']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=title</td> + <td></td> +</tr> +<tr> + <td>verifyValue</td> + <td>title</td> + <td>${title}</td> +</tr> +<tr> + <td>open</td> + <td>${base_url}/post_module/Zuite_waitForActivities</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//pre[contains(text(), "Done.")]</td> + <td></td> +</tr> +<tr> + <!--<td>assertTextPresent</td>--> + <td>verifyTextPresent</td> + <td>Done.</td> + <td></td> +</tr> +<tr> + <td>open</td> + <td>${base_url}/post_module/</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//button[@title="Show All"]</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@title="Show All"]</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>1000</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@name="listbox_title"]</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=listbox_title</td> + <td>${title}</td> +</tr> +<tr> + <td>clickAndWait</td> + <td>Base_doSelect:method</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +</tbody></table> +</body> +</html> \ No newline at end of file