Commit 592c069a authored by Jérome Perrin's avatar Jérome Perrin

rename tests for transaction posting.

tests that adding a line keeps the transaction view.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10675 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ed43dd0c
...@@ -74,7 +74,6 @@ Test Simple view of an Accounting Transaction\n ...@@ -74,7 +74,6 @@ Test Simple view of an Accounting Transaction\n
</tr>\n </tr>\n
<!-- }}} -->\n <!-- }}} -->\n
\n \n
\n
<!-- Add an accounting transaction and check the default view {{{ -->\n <!-- Add an accounting transaction and check the default view {{{ -->\n
<tr>\n <tr>\n
<td>selectAndWait</td>\n <td>selectAndWait</td>\n
...@@ -182,6 +181,88 @@ Test Simple view of an Accounting Transaction\n ...@@ -182,6 +181,88 @@ Test Simple view of an Accounting Transaction\n
</tr>\n </tr>\n
<!-- }}} -->\n <!-- }}} -->\n
\n \n
<!-- Add a new empty line {{{ -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_action</td>\n
<td>Add Accounting Transaction Line</td>\n
</tr>\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Accounting Transaction Line added.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>3 record(s)</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[2]/select</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[4]/input</td>\n
<td>0.0</td> <!-- FIXME: precision is wrong, but assertFloat doesn\'t work for\n
values -->\n
</tr> \n
<tr>\n
<td>assertValue</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[5]/input</td>\n
<td>0.0</td>\n
</tr> \n
<!-- }}} -->\n
\n
<!-- Check values are still correct {{{ -->\n
<tr>\n
<td>assertValue</td>\n
<td>field_my_source_section</td>\n
<td>organisation_module/my_organisation</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>field_my_destination_section_title</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>field_my_resource</td>\n
<td>currency_module/euro</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]/select</td>\n
<td>account_module/fixed_assets</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[2]/select</td>\n
<td>account_module/stocks</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n
<td>10.0</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[5]/input</td>\n
<td>20.0</td>\n
</tr>\n
<!-- stat -->\n
<tr>\n
<td>assertFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[4]</td>\n
<td>10</td>\n
</tr>\n
<tr>\n
<td>assertFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[5]</td>\n
<td>20</td>\n
</tr>\n
<!-- }}} -->\n
</tbody></table>\n </tbody></table>\n
</body>\n </body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n </html> <!-- vim: syntax=html foldmethod=marker\n
...@@ -200,7 +281,7 @@ Test Simple view of an Accounting Transaction\n ...@@ -200,7 +281,7 @@ Test Simple view of an Accounting Transaction\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>test_accounting_transaction_module_default_sort.html</string> </value> <value> <string>test_accounting_transaction_input.html</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
23 25
\ No newline at end of file \ 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