Commit a294e18e authored by Lu Xu's avatar Lu Xu 👀 Committed by Xiaowu Zhang

erp5_officejs_ui_test: update officejs_ui_smartassistant_zuite

parent a7ad81cb
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test OfficeJS UI</title> <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> </head>
<body> <body>
<table cellpadding="1" cellspacing="1" border="1"> <table cellpadding="1" cellspacing="1" border="1">
...@@ -13,19 +11,12 @@ ...@@ -13,19 +11,12 @@
</thead><tbody> </thead><tbody>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" /> <tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<!-- Clean Up --> <!-- Clean Up -->
<!-- Initialize -->
<tr> <tr>
<td>open</td> <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> <td></td>
</tr> </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> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Storages']</td> <td>//a[@data-i18n='Storages']</td>
...@@ -131,4 +122,44 @@ ...@@ -131,4 +122,44 @@
</tr> </tr>
<tal:block tal:define="text_content python: '<p>This is a test too simple</p>'"> <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 metal:use-macro="container/Zuite_CommonTemplateForRenderjsUi/macros/verify_ckeditor_text_content"/>
</tal:block> </tal:block>
\ No newline at end of file <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 @@ ...@@ -3,8 +3,6 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test OfficeJS UI</title> <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> </head>
<body> <body>
<table cellpadding="1" cellspacing="1" border="1"> <table cellpadding="1" cellspacing="1" border="1">
...@@ -13,19 +11,12 @@ ...@@ -13,19 +11,12 @@
</thead><tbody> </thead><tbody>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" /> <tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<!-- Clean Up --> <!-- Clean Up -->
<!-- Initialize -->
<tr> <tr>
<td>open</td> <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> <td></td>
</tr> </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> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Storages']</td> <td>//a[@data-i18n='Storages']</td>
...@@ -294,6 +285,7 @@ ...@@ -294,6 +285,7 @@
<td>//pre[contains(text(), "This is a test too simple")]</td> <td>//pre[contains(text(), "This is a test too simple")]</td>
<td></td> <td></td>
</tr> </tr>
<!-- Check in ERP5: Query -->
<tal:block tal:define="click_configuration python: {'text': 'Actions'}"> <tal:block tal:define="click_configuration python: {'text': 'Actions'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_header_link" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_header_link" />
</tal:block> </tal:block>
...@@ -323,6 +315,87 @@ ...@@ -323,6 +315,87 @@
<td>//label[@for='field_my_title']</td> <td>//label[@for='field_my_title']</td>
<td></td> <td></td>
</tr> </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>
<!-- Check in ERP5: New Expense -->
<tr>
<td>waitForElementPresent</td>
<td>//a[text() = 'New Expense']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[text() = 'New Expense']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@name='action_confirm' and @value='Create Expense']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[@name='action_confirm' and @value='Create Expense']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[text()="Action succeeded."]</td>
<td></td>
</tr>
<!-- Check in ERP5: New Event-->
<tr>
<td>waitForElementPresent</td>
<td>//a[text() = 'New Event']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[text() = 'New Event']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@name='action_confirm' and @value='Create Event']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[@name='action_confirm' and @value='Create Event']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[text()="Action succeeded."]</td>
<td></td>
</tr>
<tr> <tr>
<td>open</td> <td>open</td>
<td>${base_url}/Zuite_waitForActivities</td> <td>${base_url}/Zuite_waitForActivities</td>
......
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