Commit b08b153b authored by Boxiang Sun's avatar Boxiang Sun

erp5_user_tutorial: Update tutorial's selenium tests for the renderjs UI

parent 94cf3d82
...@@ -25,59 +25,81 @@ ...@@ -25,59 +25,81 @@
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>openAndWait</td> <td>open</td>
<td>${base_url}/view</td> <td>${base_url}/</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>verifyTextPresent</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded&quot;&gt;&lt;/tal:block&gt;</td>
<td>Mes favoris</td>
<td></td>
</tr> </tr>
<tr> <tr>
<td>openAndWait</td> <td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Modules&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link&quot; /&gt; &lt;/tal:block&gt;</td>
<td>${base_url}/view</td>
<td></td>
</tr> </tr>
<tr> <tr>
<td>selectAndWait</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
<td>//select[@name="select_module"]</td>
<td>Personnes</td>
</tr> </tr>
<tr> <tr>
<td>clickAndWait</td> <td>waitForElementPresent</td>
<td>Folder_show:method</td> <td>//a[contains(text(), &quot;Language&quot;)]</td>
<td></td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>click</td>
<td>listbox_translated_validation_state_title</td> <td>//a[contains(text(), &quot;Language&quot;)]</td>
<td>Valid%</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td>clickAndWait</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
<td>//input[@class='listbox-select-action']</td>
<td></td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>waitForElementPresent</td>
<td>listbox_translated_validation_state_title</td> <td>//select[@id="field_language"]</td>
<td>Brouillon</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td>clickAndWait</td> <td>select</td>
<td>//input[@class='listbox-select-action']</td> <td>//select[@name=&quot;field_language&quot;]</td>
<td></td> <td>value=fr</td>
</tr> </tr>
<tr> <tr>
<td>verifyTextNotPresent</td> <td>click</td>
<td>Valid</td> <td>//input[@value="Update"]</td>
<td></td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td>openAndWait</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded&quot;&gt; &lt;/tal:block&gt;</td>
<td>${base_url}/view</td> </tr>
<td></td> <tr>
<td>storeLocation</td>
<td>language</td>
<td>&nbsp;</td>
</tr>
<tr style="opacity: 1;">
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/wait_for_activities&quot;&gt; Wait for activities &lt;/span&gt;</td>
</tr>
<tr>
<td>echo</td>
<td>${language}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>open</td>
<td>${language}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded&quot;&gt; &lt;/tal:block&gt;</td>
</tr>
<tr>
<td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Modules&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link&quot;&gt; &lt;/tal:block&gt; &lt;/tal:block&gt;</td>
</tr>
<tr>
<td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[contains(text(), &quot;Personnes&quot;)]</td>
<td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td>deleteCookie</td> <td>deleteCookie</td>
...@@ -90,9 +112,40 @@ ...@@ -90,9 +112,40 @@
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>openAndWait</td> <td>waitForElementPresent</td>
<td>${base_url}/view</td> <td>//a[contains(text(), &quot;Language&quot;)]</td>
<td></td> <td>&nbsp;</td>
</tr>
<tr>
<td>click</td>
<td>//a[contains(text(), &quot;Language&quot;)]</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//select[@id="field_language"]</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>select</td>
<td>//select[@name=&quot;field_language&quot;]</td>
<td>English</td>
</tr>
<tr>
<td>click</td>
<td>//input[@value="Update"]</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded&quot;&gt; &lt;/tal:block&gt;</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//label[contains(text(), &quot;User&quot;)]</td>
<td>&nbsp;</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
......
...@@ -28,85 +28,66 @@ ...@@ -28,85 +28,66 @@
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/login_as_functional_test_user&quot;&gt;Login As Functional Test User&lt;/span&gt;</td> <td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/login_as_functional_test_user&quot;&gt;Login As Functional Test User&lt;/span&gt;</td>
</tr> <!-- Search with empty string --> </tr> <!-- Search with empty string -->
<tr> <tr>
<td>type</td> <td>click</td>
<td>field_your_search_text</td> <td>//button[contains(@class, "search_button")]</td>
<td><br /></td> <td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>ERP5Site_viewQuickSearchResultList:method</td>
<td><br /></td>
</tr> </tr>
<tr>
<td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
</tr>
<tr> <tr>
<td>verifyTextNotPresent</td> <td>waitForElementPresent</td>
<td>Search Results</td> <td>//input[@id="search"]</td>
<td><br /></td> <td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>id=transition_message</td>
<td><br /></td>
</tr> <!-- Search persons by full name -->
<tr>
<td>openAndWait</td>
<td>${base_url}/view</td>
<td><br /></td>
</tr> </tr>
<!-- Search persons by full name -->
<tr> <tr>
<td>type</td> <td>type</td>
<td>field_your_search_text</td> <td>//input[@id="search"]</td>
<td>ZUITE_TEST_FULL_TEXT_PERSON_TITLE_001</td> <td>ZUITE_TEST_FULL_TEXT_PERSON_TITLE_001</td>
</tr> </tr>
<tr> <tr>
<td>clickAndWait</td> <td>click</td>
<td>ERP5Site_viewQuickSearchResultList:method</td> <td>//input[@id="search"]/../following-sibling::button</td>
<td><br /></td> <td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Search Results</td>
<td><br /></td>
</tr> </tr>
<tr>
<td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded&quot; /&gt;</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[contains(text(), &quot;ZUITE_TEST_FULL_TEXT_PERSON_TITLE_001&quot;)]</td>
<td>&nbsp;</td>
</tr>
<tr> <tr>
<td>verifyTextPresent</td> <tr>
<td>ZUITE_TEST_FULL_TEXT_PERSON_TITLE_001</td> <td>waitForElementPresent</td>
<td><br /></td> <td>//a[contains(text(), &quot;Person&quot;)]</td>
</tr> <td></td>
<tr>
<td>verifyTextPresent</td>
<td>ZUITE_TEST_FULL_TEXT_PERSON_REFERENCE_001</td>
<td><br /></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Person</td>
<td><br /></td>
</tr> <!-- Search Organisation --> </tr> <!-- Search Organisation -->
<tr> <tr>
<td>type</td> <td>type</td>
<td>field_your_search_text</td> <td>//input[@id="search"]</td>
<td>ZUITE_TEST_FULL_TEXT_ORGANISATION_TITLE_001</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>ERP5Site_viewQuickSearchResultList:method</td>
<td><br /></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Search Results</td>
<td><br /></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>ZUITE_TEST_FULL_TEXT_ORGANISATION_TITLE_001</td> <td>ZUITE_TEST_FULL_TEXT_ORGANISATION_TITLE_001</td>
<td><br /></td>
</tr> </tr>
<tr> <tr>
<td>verifyTextPresent</td> <td>click</td>
<td>Organisation</td> <td>//input[@id="search"]/../following-sibling::button</td>
<td><br /></td> <td><br /></td>
</tr> </tr>
<tr>
<td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded&quot; /&gt;</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[contains(text(), &quot;ZUITE_TEST_FULL_TEXT_ORGANISATION_TITLE_001&quot;)]</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[contains(text(), &quot;Organisation&quot;)]</td>
<td></td>
</tr>
<tr style="opacity: 1;"> <tr style="opacity: 1;">
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/login_as_manager&quot;&gt;Login As Manager&lt;/span&gt;</td> <td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/login_as_manager&quot;&gt;Login As Manager&lt;/span&gt;</td>
</tr> </tr>
......
...@@ -104,104 +104,108 @@ ...@@ -104,104 +104,108 @@
</record> </record>
<record id="6" aka="AAAAAAAAAAY="> <record id="6" aka="AAAAAAAAAAY=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle> </pickle>
<pickle> <pickle>
<tuple> <dictionary>
<none/> <item>
<list> <key> <string>_log</string> </key>
<dictionary> <value>
<item> <list>
<key> <string>action</string> </key> <dictionary>
<value> <string>edit</string> </value> <item>
</item> <key> <string>action</string> </key>
<item> <value> <string>edit</string> </value>
<key> <string>actor</string> </key> </item>
<value> <string>jingjing</string> </value> <item>
</item> <key> <string>actor</string> </key>
<item> <value> <string>jingjing</string> </value>
<key> <string>comment</string> </key> </item>
<value> <string></string> </value> <item>
</item> <key> <string>comment</string> </key>
<item> <value> <string></string> </value>
<key> <string>error_message</string> </key> </item>
<value> <string></string> </value> <item>
</item> <key> <string>error_message</string> </key>
<item> <value> <string></string> </value>
<key> <string>serial</string> </key> </item>
<value> <string>0.0.0.0</string> </value> <item>
</item> <key> <string>serial</string> </key>
<item> <value> <string>0.0.0.0</string> </value>
<key> <string>state</string> </key> </item>
<value> <string>current</string> </value> <item>
</item> <key> <string>state</string> </key>
<item> <value> <string>current</string> </value>
<key> <string>time</string> </key> </item>
<value> <item>
<object> <key> <string>time</string> </key>
<klass> <value>
<global id="6.1" name="DateTime" module="DateTime.DateTime"/> <object>
</klass> <klass>
<tuple> <global id="6.1" name="DateTime" module="DateTime.DateTime"/>
<none/> </klass>
</tuple> <tuple>
<state> <none/>
<tuple> </tuple>
<float>1352796576.01</float> <state>
<string>GMT</string> <tuple>
</tuple> <float>1352796576.01</float>
</state> <string>GMT</string>
</object> </tuple>
</value> </state>
</item> </object>
</dictionary> </value>
<dictionary> </item>
<item> </dictionary>
<key> <string>action</string> </key> <dictionary>
<value> <string>edit</string> </value> <item>
</item> <key> <string>action</string> </key>
<item> <value> <string>edit</string> </value>
<key> <string>actor</string> </key> </item>
<value> <string>jingjing</string> </value> <item>
</item> <key> <string>actor</string> </key>
<item> <value> <string>jingjing</string> </value>
<key> <string>comment</string> </key> </item>
<value> <item>
<persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent> <key> <string>comment</string> </key>
</value> <value>
</item> <persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
<item> </value>
<key> <string>error_message</string> </key> </item>
<value> <string></string> </value> <item>
</item> <key> <string>error_message</string> </key>
<item> <value> <string></string> </value>
<key> <string>serial</string> </key> </item>
<value> <string>0.0.0.0</string> </value> <item>
</item> <key> <string>serial</string> </key>
<item> <value> <string>0.0.0.0</string> </value>
<key> <string>state</string> </key> </item>
<value> <string>current</string> </value> <item>
</item> <key> <string>state</string> </key>
<item> <value> <string>current</string> </value>
<key> <string>time</string> </key> </item>
<value> <item>
<object> <key> <string>time</string> </key>
<klass> <reference id="6.1"/> </klass> <value>
<tuple> <object>
<none/> <klass> <reference id="6.1"/> </klass>
</tuple> <tuple>
<state> <none/>
<tuple> </tuple>
<float>1352796576.01</float> <state>
<string>GMT</string> <tuple>
</tuple> <float>1352796576.01</float>
</state> <string>GMT</string>
</object> </tuple>
</value> </state>
</item> </object>
</dictionary> </value>
</list> </item>
</tuple> </dictionary>
</list>
</value>
</item>
</dictionary>
</pickle> </pickle>
</record> </record>
<record id="7" aka="AAAAAAAAAAc="> <record id="7" aka="AAAAAAAAAAc=">
......
...@@ -97,104 +97,108 @@ ...@@ -97,104 +97,108 @@
</record> </record>
<record id="6" aka="AAAAAAAAAAY="> <record id="6" aka="AAAAAAAAAAY=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle> </pickle>
<pickle> <pickle>
<tuple> <dictionary>
<none/> <item>
<list> <key> <string>_log</string> </key>
<dictionary> <value>
<item> <list>
<key> <string>action</string> </key> <dictionary>
<value> <string>edit</string> </value> <item>
</item> <key> <string>action</string> </key>
<item> <value> <string>edit</string> </value>
<key> <string>actor</string> </key> </item>
<value> <string>jingjing</string> </value> <item>
</item> <key> <string>actor</string> </key>
<item> <value> <string>jingjing</string> </value>
<key> <string>comment</string> </key> </item>
<value> <string></string> </value> <item>
</item> <key> <string>comment</string> </key>
<item> <value> <string></string> </value>
<key> <string>error_message</string> </key> </item>
<value> <string></string> </value> <item>
</item> <key> <string>error_message</string> </key>
<item> <value> <string></string> </value>
<key> <string>serial</string> </key> </item>
<value> <string>0.0.0.0</string> </value> <item>
</item> <key> <string>serial</string> </key>
<item> <value> <string>0.0.0.0</string> </value>
<key> <string>state</string> </key> </item>
<value> <string>current</string> </value> <item>
</item> <key> <string>state</string> </key>
<item> <value> <string>current</string> </value>
<key> <string>time</string> </key> </item>
<value> <item>
<object> <key> <string>time</string> </key>
<klass> <value>
<global id="6.1" name="DateTime" module="DateTime.DateTime"/> <object>
</klass> <klass>
<tuple> <global id="6.1" name="DateTime" module="DateTime.DateTime"/>
<none/> </klass>
</tuple> <tuple>
<state> <none/>
<tuple> </tuple>
<float>1352796576.02</float> <state>
<string>GMT</string> <tuple>
</tuple> <float>1352796576.02</float>
</state> <string>GMT</string>
</object> </tuple>
</value> </state>
</item> </object>
</dictionary> </value>
<dictionary> </item>
<item> </dictionary>
<key> <string>action</string> </key> <dictionary>
<value> <string>edit</string> </value> <item>
</item> <key> <string>action</string> </key>
<item> <value> <string>edit</string> </value>
<key> <string>actor</string> </key> </item>
<value> <string>jingjing</string> </value> <item>
</item> <key> <string>actor</string> </key>
<item> <value> <string>jingjing</string> </value>
<key> <string>comment</string> </key> </item>
<value> <item>
<persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent> <key> <string>comment</string> </key>
</value> <value>
</item> <persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent>
<item> </value>
<key> <string>error_message</string> </key> </item>
<value> <string></string> </value> <item>
</item> <key> <string>error_message</string> </key>
<item> <value> <string></string> </value>
<key> <string>serial</string> </key> </item>
<value> <string>0.0.0.0</string> </value> <item>
</item> <key> <string>serial</string> </key>
<item> <value> <string>0.0.0.0</string> </value>
<key> <string>state</string> </key> </item>
<value> <string>current</string> </value> <item>
</item> <key> <string>state</string> </key>
<item> <value> <string>current</string> </value>
<key> <string>time</string> </key> </item>
<value> <item>
<object> <key> <string>time</string> </key>
<klass> <reference id="6.1"/> </klass> <value>
<tuple> <object>
<none/> <klass> <reference id="6.1"/> </klass>
</tuple> <tuple>
<state> <none/>
<tuple> </tuple>
<float>1352796576.03</float> <state>
<string>GMT</string> <tuple>
</tuple> <float>1352796576.03</float>
</state> <string>GMT</string>
</object> </tuple>
</value> </state>
</item> </object>
</dictionary> </value>
</list> </item>
</tuple> </dictionary>
</list>
</value>
</item>
</dictionary>
</pickle> </pickle>
</record> </record>
<record id="7" aka="AAAAAAAAAAc="> <record id="7" aka="AAAAAAAAAAc=">
......
...@@ -20,6 +20,10 @@ test_page_module/user-Howto.Manage.Invoices ...@@ -20,6 +20,10 @@ test_page_module/user-Howto.Manage.Invoices
test_page_module/user-Howto.Manage.Invoices/** test_page_module/user-Howto.Manage.Invoices/**
test_page_module/user-Howto.Manage.Packing.Lists test_page_module/user-Howto.Manage.Packing.Lists
test_page_module/user-Howto.Manage.Packing.Lists/** test_page_module/user-Howto.Manage.Packing.Lists/**
test_page_module/user-Howto.Manage.Support.Request.007.en test_page_module/user-Howto.Post.Outgoing.Events
test_page_module/user-Howto.Manage.Support.Request.007.en/** test_page_module/user-Howto.Manage.Support.Request.NewUI
test_page_module/user-Howto.Post.Outgoing.Events test_page_module/user-Howto.Manage.Support.Request.NewUI/**
\ No newline at end of file test_page_module/user-Howto.Manage.Document.Versionning.Test
test_page_module/user-Howto.Manage.Document.Versionning.Test/**
test_page_module/user-Howto.Create.Purchase.Transactions
test_page_module/user-Howto.Create.Purchase.Transactions/**
...@@ -9,17 +9,20 @@ test_page_module/user-Howto.Create.Outgoing.Events ...@@ -9,17 +9,20 @@ test_page_module/user-Howto.Create.Outgoing.Events
test_page_module/user-Howto.Create.Outgoing.Events/** test_page_module/user-Howto.Create.Outgoing.Events/**
test_page_module/user-Howto.Create.Persons test_page_module/user-Howto.Create.Persons
test_page_module/user-Howto.Create.Persons/** test_page_module/user-Howto.Create.Persons/**
test_page_module/user-Howto.Create.Purchase.Transactions
test_page_module/user-Howto.Create.Purchase.Transactions/**
test_page_module/user-Howto.Create.Sale.Orders.005.en test_page_module/user-Howto.Create.Sale.Orders.005.en
test_page_module/user-Howto.Create.Trade.Conditions.008.en test_page_module/user-Howto.Create.Trade.Conditions.008.en
test_page_module/user-Howto.Create.Trade.Conditions.008.en/** test_page_module/user-Howto.Create.Trade.Conditions.008.en/**
test_page_module/user-Howto.Create.and.Manage.Products test_page_module/user-Howto.Create.and.Manage.Products
test_page_module/user-Howto.Create.and.Manage.Products
test_page_module/user-Howto.Generate.Report test_page_module/user-Howto.Generate.Report
test_page_module/user-Howto.Link.Persons.and.Organisations test_page_module/user-Howto.Link.Persons.and.Organisations
test_page_module/user-Howto.Manage.Document.Versionning.Test
test_page_module/user-Howto.Manage.Document.Versionning.Test/**
test_page_module/user-Howto.Manage.Invoices test_page_module/user-Howto.Manage.Invoices
test_page_module/user-Howto.Manage.Invoices/** test_page_module/user-Howto.Manage.Invoices/**
test_page_module/user-Howto.Manage.Packing.Lists test_page_module/user-Howto.Manage.Packing.Lists
test_page_module/user-Howto.Manage.Packing.Lists/** test_page_module/user-Howto.Manage.Packing.Lists/**
test_page_module/user-Howto.Manage.Support.Request.007.en test_page_module/user-Howto.Post.Outgoing.Events
test_page_module/user-Howto.Manage.Support.Request.007.en/** test_page_module/user-Howto.Manage.Support.Request.NewUI
test_page_module/user-Howto.Post.Outgoing.Events test_page_module/user-Howto.Manage.Support.Request.NewUI/**
\ No newline at end of file
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