Commit 043ec112 authored by Lu Xu's avatar Lu Xu 👀

erp5_officejs_ui_test: update officejs_ui_smartassistant_zuite

parent 9c7f2a4a
......@@ -3,8 +3,6 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test OfficeJS UI</title>
<script src="../../web_site_module/officejs_smart_assistant/app/rsvp.js"></script>
<script src="../../web_site_module/officejs_smart_assistant/app/jiodev.js"></script>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
......@@ -13,19 +11,12 @@
</thead><tbody>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<!-- Clean Up -->
<!-- Initialize -->
<tr>
<td>open</td>
<td>${base_url}/smart_assistant_text_module/ListBoxZuite_reset</td>
<td>${base_url}/web_site_module/officejs_smart_assistant/</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Reset Successfully.</td>
<td></td>
</tr>
<tal:block tal:define="web_site_name python: 'officejs_smart_assistant'">
<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>
......@@ -131,4 +122,44 @@
</tr>
<tal:block tal:define="text_content python: '<p>This is a test too simple</p>'">
<tal:block metal:use-macro="container/Zuite_CommonTemplateForRenderjsUi/macros/verify_ckeditor_text_content"/>
</tal:block>
\ No newline at end of file
</tal:block>
<tr>
<td>click</td>
<td>//a[@data-i18n='Home']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[contains(text(), 'Smart Assistant To Open ')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[contains(text(), 'Smart Assistant To Open ')]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@name='search' and @value='draft']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Home']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[contains(text(), 'Smart Assistant To Process ')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[contains(text(), 'Smart Assistant To Process ')]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@name='search' and @value='processing']</td>
<td></td>
</tr>
\ No newline at end of file
......@@ -3,8 +3,6 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test OfficeJS UI</title>
<script src="../../web_site_module/officejs_smart_assistant/app/rsvp.js"></script>
<script src="../../web_site_module/officejs_smart_assistant/app/jiodev.js"></script>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
......@@ -13,19 +11,12 @@
</thead><tbody>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<!-- Clean Up -->
<!-- Initialize -->
<tr>
<td>open</td>
<td>${base_url}/smart_assistant_text_module/ListBoxZuite_reset</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Reset Successfully.</td>
<td>${base_url}/web_site_module/officejs_smart_assistant/</td>
<td></td>
</tr>
<tal:block tal:define="web_site_name python: 'officejs_smart_assistant'">
<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>
......@@ -294,6 +285,7 @@
<td>//pre[contains(text(), "This is a test too simple")]</td>
<td></td>
</tr>
<!-- Check in ERP5: Query -->
<tal:block tal:define="click_configuration python: {'text': 'Actions'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_header_link" />
</tal:block>
......@@ -323,6 +315,35 @@
<td>//label[@for='field_my_title']</td>
<td></td>
</tr>
<!-- Check in ERP5: New Person -->
<tal:block tal:define="click_configuration python: {'text': 'Actions'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_header_link" />
</tal:block>
<tr>
<td>waitForElementPresent</td>
<td>//a[text() = 'New Person']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[text() = 'New Person']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@name='action_confirm' and @value='Create Person']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[@name='action_confirm' and @value='Create Person']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[text()="Action succeeded."]</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/Zuite_waitForActivities</td>
......
......@@ -100,24 +100,28 @@
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
<global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>validate</string> </value>
</item>
<item>
<key> <string>validation_state</string> </key>
<value> <string>validated</string> </value>
</item>
</dictionary>
</list>
</tuple>
<dictionary>
<item>
<key> <string>_log</string> </key>
<value>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>validate</string> </value>
</item>
<item>
<key> <string>validation_state</string> </key>
<value> <string>validated</string> </value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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