Commit 244e6dcc authored by Jérome Perrin's avatar Jérome Perrin

test sorting of lines in accounting transaction

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34496 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b162a3ec
<?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>_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>Test for Accounting Transaction</title></head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="4">\n
Test Simple view of an Accounting Transaction\n
</td></tr>\n
<!-- XXX we do not need init method here ! -->\n
</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0">\n
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
\n
<!-- Setup {{{ -->\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}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Accounting</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Add an accounting transaction with 9 lines -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_action</td>\n
<td>Add Accounting Transaction</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_action</td>\n
<td>Add Accounting Transaction Lines</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>field_your_line_count</td>\n
<td>7</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>dialog_submit_button</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Accounting Transaction Lines added.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>9 records</td>\n
</tr>\n
\n
<!-- store the index of each line -->\n
<tr>\n
<td>type</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[4]/input</td>\n
<td>2</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[4]/input</td>\n
<td>3</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@id=\'listbox_data_line_3\']/td[4]/input</td>\n
<td>4</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@id=\'listbox_data_line_4\']/td[4]/input</td>\n
<td>5</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@id=\'listbox_data_line_5\']/td[4]/input</td>\n
<td>6</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@id=\'listbox_data_line_6\']/td[4]/input</td>\n
<td>7</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@id=\'listbox_data_line_7\']/td[4]/input</td>\n
<td>8</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@id=\'listbox_data_line_8\']/td[4]/input</td>\n
<td>9</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@name=\'Base_edit:method\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Data updated.</td>\n
<td></td>\n
</tr>\n
\n
<!-- now we will add one more line, and it will not be inserted between the\n
other lines\n
-->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_action</td>\n
<td>Add Accounting Transaction Lines</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>dialog_submit_button</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Accounting Transaction Lines added.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>10 records</td>\n
</tr>\n
\n
<tr>\n
<td>assertFloatValue</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>assertFloatValue</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[4]/input</td>\n
<td>2</td>\n
</tr>\n
<tr>\n
<td>assertFloatValue</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[4]/input</td>\n
<td>3</td>\n
</tr>\n
<tr>\n
<td>assertFloatValue</td>\n
<td>//tr[@id=\'listbox_data_line_3\']/td[4]/input</td>\n
<td>4</td>\n
</tr>\n
<tr>\n
<td>assertFloatValue</td>\n
<td>//tr[@id=\'listbox_data_line_4\']/td[4]/input</td>\n
<td>5</td>\n
</tr>\n
<tr>\n
<td>assertFloatValue</td>\n
<td>//tr[@id=\'listbox_data_line_5\']/td[4]/input</td>\n
<td>6</td>\n
</tr>\n
<tr>\n
<td>assertFloatValue</td>\n
<td>//tr[@id=\'listbox_data_line_6\']/td[4]/input</td>\n
<td>7</td>\n
</tr>\n
<tr>\n
<td>assertFloatValue</td>\n
<td>//tr[@id=\'listbox_data_line_7\']/td[4]/input</td>\n
<td>8</td>\n
</tr>\n
<tr>\n
<td>assertFloatValue</td>\n
<td>//tr[@id=\'listbox_data_line_8\']/td[4]/input</td>\n
<td>9</td>\n
</tr>\n
<!-- our new lines, at the end -->\n
<tr>\n
<td>assertFloatValue</td>\n
<td>//tr[@id=\'listbox_data_line_9\']/td[4]/input</td>\n
<td>0</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_accounting_transaction_lines_sort.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
150
\ No newline at end of file
151
\ 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