diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/test_entities/test_organisation_transaction_list_at_date.html.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/test_entities/test_organisation_transaction_list_at_date.html.xml index 6fe085d3c29c8969afc25ecd4c10fa74ac972e60..e21e0097754f420c192ce9c6ad3ac16fdd43e03e 100644 --- a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/test_entities/test_organisation_transaction_list_at_date.html.xml +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/test_entities/test_organisation_transaction_list_at_date.html.xml @@ -146,24 +146,24 @@ Test Transactions related to an Organisation, with stop date\n <tr>\n <td>verifyFloat</td>\n <td>//tr[@id=\'listbox_stat_line\']/td[9]</td>\n - <td>145200.00</td>\n + <td>72600.00</td>\n </tr>\n <tr>\n <td>verifyFloat</td>\n <td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n - <td>2200.00</td>\n + <td>1100.00</td>\n </tr>\n <tr>\n <td>verifyFloat</td>\n <td>//tr[@id=\'listbox_stat_line\']/td[12]</td>\n - <td>143000.0</td>\n + <td>71500.0</td>\n </tr>\n <!-- the last line of running total column shows the same value that the total\n balance. -->\n <tr>\n <td>verifyFloat</td>\n <td>//tr[@id=\'listbox_data_line_11\']/td[13]</td>\n - <td>143000.0</td>\n + <td>71500.0</td>\n </tr>\n <!-- }}} -->\n \n diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/test_entities/test_organisation_transaction_list_from_date.html.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/test_entities/test_organisation_transaction_list_from_date.html.xml index 1395a9663cbb6e033c00e30dcb5d5289ba576ed5..bfa0f6b9f39c2ff7ecf702a69801600f086feb25 100644 --- a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/test_entities/test_organisation_transaction_list_from_date.html.xml +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/test_entities/test_organisation_transaction_list_from_date.html.xml @@ -61,7 +61,6 @@ <thead>\n <tr><td rowspan="1" colspan="4">\n Test Transactions related to an Organisation, with start date\n -TODO: this test is not implemented yet !\n </td></tr>\n </thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionListSalesAndPayments">\n \n @@ -90,7 +89,7 @@ TODO: this test is not implemented yet !\n <tr>\n <td>type</td>\n <td>subfield_field_my_preferred_accounting_transaction_from_date_day</td>\n - <td>10</td>\n + <td>11</td>\n </tr>\n <tr>\n <td>clickAndWait</td>\n @@ -139,37 +138,169 @@ TODO: this test is not implemented yet !\n <td></td>\n </tr>\n <tr>\n - <td>verifyTextPresent</td>\n - <td>TODO: this test is not implemented yet</td>\n - <td></td>\n + <td>verifyText</td>\n + <td>//div[preceding-sibling::label[contains(text(),\'From Date\')]]</td>\n + <td>2005/01/11</td>\n </tr>\n -\n -<!--\n +<!-- The summary line is counted here. -->\n <tr>\n <td>verifyText</td>\n <td>listbox_record_number</td>\n - <td>10 record(s)</td>\n + <td>47 record(s)</td>\n +</tr>\n +<!-- }}} -->\n +\n +<!-- The first line is a \'summary\' line. {{{ -->\n +<tr>\n + <td>verifyText</td>\n + <td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n + <td>Previous Balance</td>\n +</tr>\n +<tr>\n + <td>verifyText</td>\n + <td>//tr[@id=\'listbox_data_line_0\']/td[3]</td>\n + <td>2005/01/11</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_data_line_0\']/td[9]</td>\n + <td>72600.00</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_data_line_0\']/td[10]</td>\n + <td>1100.00</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_data_line_0\']/td[12]</td>\n + <td>71500.00</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_data_line_0\']/td[13]</td>\n + <td>71500.00</td>\n +</tr>\n +<!-- }}} -->\n +\n +<!-- Lisbox body, especially the second line {{{ -->\n +<tr>\n + <td>verifyText</td>\n + <td>//tr[@id=\'listbox_data_line_1\']/td[1]</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[3]</td>\n + <td>2005/01/11</td>\n +</tr>\n +<tr>\n + <td>verifyText</td>\n + <td>//tr[@id=\'listbox_data_line_1\']/td[8]</td>\n + <td>Validated</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_data_line_1\']/td[9]</td>\n + <td>12100.00</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_data_line_1\']/td[10]</td>\n + <td>0.00</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_data_line_1\']/td[12]</td>\n + <td>12100.00</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_data_line_1\']/td[13]</td>\n + <td>83600.00</td>\n </tr>\n +<!-- }}} -->\n \n +<!-- Stat line {{{ -->\n <tr>\n <td>verifyFloat</td>\n <td>//tr[@id=\'listbox_stat_line\']/td[9]</td>\n - <td>60500.00</td>\n + <td>446600.0</td>\n </tr>\n <tr>\n <td>verifyFloat</td>\n <td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n - <td>0.00</td>\n + <td>446600.0</td>\n </tr>\n <tr>\n <td>verifyFloat</td>\n <td>//tr[@id=\'listbox_stat_line\']/td[12]</td>\n - <td>60500.0</td>\n + <td>0</td>\n +</tr>\n +<!-- }}} -->\n +\n +<!-- Second page {{{ -->\n +<tr>\n + <td>selectAndWait</td>\n + <td>listbox_page_selection</td>\n + <td>label=2 of 3</td>\n +</tr>\n +<tr>\n + <td>verifyText</td>\n + <td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n + <td>Client 1 Sale Invoice</td>\n +</tr>\n +<tr>\n + <td>verifyText</td>\n + <td>//tr[@id=\'listbox_data_line_0\']/td[3]</td>\n + <td>2005/01/20</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_data_line_0\']/td[9]</td>\n + <td>22000</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_data_line_0\']/td[10]</td>\n + <td>0</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_data_line_0\']/td[12]</td>\n + <td>22000</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_data_line_0\']/td[13]</td>\n + <td>181500</td>\n +</tr>\n +<!-- }}} -->\n +\n +<!-- Stat line again {{{ -->\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_stat_line\']/td[9]</td>\n + <td>446600.0</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n + <td>446600.0</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_stat_line\']/td[12]</td>\n + <td>0</td>\n </tr>\n --->\n <!-- }}} -->\n \n <!-- {{{ Tear down -->\n +<tr>\n + <td>selectAndWait</td>\n + <td>listbox_page_selection</td>\n + <td>label=1 of 3</td>\n +</tr>\n <tr>\n <td>open</td>\n <td>/erp5/</td>\n diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/test_entities/test_organisation_transaction_list_node_independance.html.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/test_entities/test_organisation_transaction_list_node_independance.html.xml new file mode 100644 index 0000000000000000000000000000000000000000..c0798f160da648357b178cb2bd0872a66b0beebd --- /dev/null +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/test_entities/test_organisation_transaction_list_node_independance.html.xml @@ -0,0 +1,224 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PageTemplates.ZopePageTemplate</string> + <string>ZopePageTemplate</string> + </tuple> + <none/> + </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>_dav_writelocks</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_text</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<html>\n +<head><title>Test for Organisation transaction lisbox</title></head>\n +<body>\n +<table cellpadding="1" cellspacing="1" border="1">\n +<thead>\n +<tr><td rowspan="1" colspan="4">\n +Test Transactions related to an Organisation shows transactions for this\n +organisation and no bogus parameters are kept in the selection.\n +</td></tr>\n +</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0">\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 +<!-- }}} -->\n +\n +<!-- {{{ Select Client 2 Organisation and check transaction list -->\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 +<tr>\n + <td>clickAndWait</td>\n + <td>link=Client 1</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>clickAndWait</td>\n + <td>link=Transactions</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>verifyText</td>\n + <td>listbox_record_number</td>\n + <td>1 record(s)</td>\n +</tr>\n +<tr>\n + <td>verifyText</td>\n + <td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n + <td>Client 1 Sale Invoice</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_stat_line\']/td[12]</td>\n + <td>2200</td>\n +</tr>\n +<!-- }}} -->\n +\n +<!-- {{{ Select Client 2 Organisation and check transaction list -->\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 2</td>\n +</tr>\n +<tr>\n + <td>clickAndWait</td>\n + <td>listbox_select</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>clickAndWait</td>\n + <td>link=Client 2</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>clickAndWait</td>\n + <td>link=Transactions</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>verifyText</td>\n + <td>listbox_record_number</td>\n + <td>1 record(s)</td>\n +</tr>\n +<tr>\n + <td>verifyText</td>\n + <td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n + <td>Client 2 Sale Invoice</td>\n +</tr>\n +<tr>\n + <td>verifyFloat</td>\n + <td>//tr[@id=\'listbox_stat_line\']/td[12]</td>\n + <td>3300</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_organisation_transaction_list_node_independance.html</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_accounting_ui_test/bt/revision b/bt5/erp5_accounting_ui_test/bt/revision index 19c7bdba7b1e9bfe80365a50420a6d538ca503c3..8e2afd342773582f9484b796cdc0b84736e8194e 100644 --- a/bt5/erp5_accounting_ui_test/bt/revision +++ b/bt5/erp5_accounting_ui_test/bt/revision @@ -1 +1 @@ -16 \ No newline at end of file +17 \ No newline at end of file