Commit d6394a54 authored by Jérome Perrin's avatar Jérome Perrin

New test for grouping on multiple pages

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20123 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 161478ee
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<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>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\n
<head><title>Grouping with multiple pages</title></head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="4">\n
Grouping with multiple pages\n
</td></tr>\n
</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0&month_count:int=6&add_related_payments:int=1">\n
\n
<!-- Setup {{{ -->\n
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Organisations</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<!-- title -->\n
<td>//tr[@id=\'listbox_search_line\']/td[2]/span/input</td> \n
<td>Client 1</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>listbox_select</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Select Client 1 Organisation and use grouping fast input -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Client 1</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//img[@alt=\'Grouping Reference Fast Input\']</td>\n
<td></td>\n
</tr>\n
\n
<!-- The mode should be \'grouping\' by default -->\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name=\'field_your_grouping\' and @value=\'grouping\']</td>\n
<td>on</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//label[contains(text(),"Total Selected Amount")]/../div[1]/</td>\n
<td>0.00</td>\n
</tr>\n
<tr tal:condition="is_selenium_0_8">\n
<td>verifySelectedLabel</td>\n
<td>field_your_node</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>field_your_node</td>\n
<td>label=41 - Receivable</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@id="dialog_update_button"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Updated</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>assertText</td>\n
<td>//span[@id=\'listbox_record_number\']</td>\n
<td>12 record(s)</td>\n
</tr>\n
\n
<!-- select and group -->\n
<tr>\n
<td>click</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]/input</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@id=\'listbox_next_page\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@id=\'listbox_item_number\']</td>\n
<td>- 1 item(s) selected</td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[1]/input</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@id="dialog_submit_button"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>2 Lines Grouped</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@id=\'listbox_item_number\']</td>\n
<td>- 0 item(s) selected</td>\n
</tr>\n
\n
<!-- mark the module as changed, reindex and come back to the entity -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/AccountingZuite_markChanged</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/Zuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Organisations</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Client 1</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//img[@alt=\'Grouping Reference Fast Input\']</td>\n
<td></td>\n
</tr>\n
\n
\n
<!-- Swith to \'ungrouping\' mode to see grouped lines, and ungroup them -->\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name=\'field_your_grouping\' and @value=\'grouping\']</td>\n
<td>on</td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//input[@name=\'field_your_grouping\' and @value=\'ungrouping\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@id="dialog_update_button"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Updated</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name=\'field_your_grouping\' and @value=\'grouping\']</td>\n
<td>off</td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name=\'field_your_grouping\' and @value=\'ungrouping\']</td>\n
<td>on</td>\n
</tr>\n
\n
<tr tal:condition="is_selenium_0_8">\n
<td>verifySelectedLabel</td>\n
<td>field_your_node</td>\n
<td>41 - Receivable</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@id=\'listbox_record_number\']</td>\n
<td>12 record(s)</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@id=\'listbox_item_number\']</td>\n
<td>- 0 item(s) selected</td>\n
</tr>\n
<tr>\n
<td>assertElementPresent</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]/a/text()</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertElementPresent</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[2]/a/text()</td>\n
<td></td>\n
</tr>\n
\n
<!-- now try to ungroup with only one, it will remove references on all grouped\n
lines -->\n
<tr>\n
<td>click</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[1]/input</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@id="dialog_submit_button"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>2 Lines Ungrouped</td>\n
<td></td>\n
</tr>\n
\n
<!-- Wait for indexing and go back to this fast input to check everything is OK\n
-->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/Zuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Organisations</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Client 1</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//img[@alt=\'Grouping Reference Fast Input\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name=\'field_your_grouping\' and @value=\'grouping\']</td>\n
<td>off</td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//input[@name=\'field_your_grouping\' and @value=\'grouping\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@id="dialog_update_button"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Updated</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@name=\'field_your_grouping\' and @value=\'grouping\']</td>\n
<td>on</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@id=\'listbox_record_number\']</td>\n
<td>12 record(s)</td>\n
</tr>\n
<tr>\n
<td>assertElementNotPresent</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]/a/text()</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
]]></string> </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>test_group_multi_pages.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
88
\ No newline at end of file
89
\ 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