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

Update test for new columns in grouping dialog for new columns, and test sort features

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20012 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 73ad48d0
<?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>Sorting in Grouping Dialog</title></head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="4">\n
Sorting in Grouping Dialog\n
</td></tr>\n
</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0&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>Accounts</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Select Receivable account and use grouping fast input -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Receivable</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
<tr>\n
<td>verifyText</td>\n
<td>//span[@id=\'listbox_record_number\']</td>\n
<td>4 record(s)</td>\n
</tr>\n
\n
<!-- Sort by date asc {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'listbox_label_line\']/td[3]/button</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]/a</td>\n
<td>Client 1 Sale Invoice</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[4]/a</td>\n
<td>Client 1 Payment</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[4]/a</td>\n
<td>Client 2 Sale Invoice</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_3\']/td[4]/a</td>\n
<td>Client 2 Payment</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Sort by date desc {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'listbox_label_line\']/td[3]/button</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_3\']/td[4]/a</td>\n
<td>Client 1 Sale Invoice</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[4]/a</td>\n
<td>Client 1 Payment</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[4]/a</td>\n
<td>Client 2 Sale Invoice</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]/a</td>\n
<td>Client 2 Payment</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Sort by title asc {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'listbox_label_line\']/td[4]/button</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]/a</td>\n
<td>Client 1 Payment</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[4]/a</td>\n
<td>Client 1 Sale Invoice</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[4]/a</td>\n
<td>Client 2 Payment</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_3\']/td[4]/a</td>\n
<td>Client 2 Sale Invoice</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Sort by title desc {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'listbox_label_line\']/td[4]/button</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_3\']/td[4]/a</td>\n
<td>Client 1 Payment</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[4]/a</td>\n
<td>Client 1 Sale Invoice</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[4]/a</td>\n
<td>Client 2 Payment</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]/a</td>\n
<td>Client 2 Sale Invoice</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Sort by Account Name asc {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'listbox_label_line\']/td[6]/button</td>\n
<td></td>\n
</tr>\n
<!-- all lines have the same account here. -->\n
<!-- }}} -->\n
\n
<!-- Sort by third party title asc {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'listbox_label_line\']/td[7]/button</td>\n
<td></td>\n
</tr>\n
<!-- this is not really sorting by title, but by uid just to make sure lines\n
for the same party are grouped together.\n
-->\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_dialog_sorting.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -261,12 +261,12 @@ Grouping from account transaction view\n
</tr>\n
<tr>\n
<td>assertElementPresent</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[6]/a/text()</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[8]/a/text()</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertElementPresent</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[6]/a/text()</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[8]/a/text()</td>\n
<td></td>\n
</tr>\n
\n
......@@ -368,22 +368,22 @@ Grouping from account transaction view\n
</tr>\n
<tr>\n
<td>assertElementNotPresent</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[6]/a/text()</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[8]/a/text()</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertElementNotPresent</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[6]/a/text()</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[8]/a/text()</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertElementNotPresent</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[6]/a/text()</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[8]/a/text()</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertElementNotPresent</td>\n
<td>//tr[@id=\'listbox_data_line_3\']/td[6]/a/text()</td>\n
<td>//tr[@id=\'listbox_data_line_3\']/td[8]/a/text()</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -67,6 +67,17 @@ Grouping from entity transaction view\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
......@@ -233,12 +244,12 @@ Grouping from entity transaction view\n
</tr>\n
<tr>\n
<td>assertElementPresent</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[6]/a/text()</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[8]/a/text()</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertElementPresent</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[6]/a/text()</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[8]/a/text()</td>\n
<td></td>\n
</tr>\n
\n
......@@ -340,12 +351,12 @@ Grouping from entity transaction view\n
</tr>\n
<tr>\n
<td>assertElementNotPresent</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[6]/a/text()</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[8]/a/text()</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertElementNotPresent</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[6]/a/text()</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[8]/a/text()</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
......
......@@ -105,6 +105,7 @@ for form in context.getPortalObject().portal_skins\\\n
stool.setSelectionFor(\'person_selection\', None)\n
stool.setSelectionFor(\'organisation_selection\', None)\n
stool.setSelectionFor(\'grouping_reference_fast_input_selection\', None)\n
stool.setSelectionFor(\'accounting_transaction_module_grouping_reference_fast_input\', None)\n
\n
# delete the "dummy account" we create in test_account_gap_parallel_list_field\n
dummy_account_list = portal.account_module.searchFolder(\n
......
84
\ No newline at end of file
85
\ 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