From 6879eb443a10ab6e4217b1cf58452e8276b7ae6c Mon Sep 17 00:00:00 2001 From: Ivan Tyagov <ivan@nexedi.com> Date: Tue, 7 Sep 2010 14:24:49 +0000 Subject: [PATCH] Listbox uses no longer Ids but CSS classes. Adjust tests accordingly after r38122. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38175 20353a03-c40f-0410-a6d1-a30d3c3de9de --- ...nting_transaction_create_reversal.html.xml | 33 ++++++------ ...create_reversal_with_cancellation.html.xml | 33 ++++++------ ...test_accounting_transaction_input.html.xml | 51 +++++++++---------- ...action_input_invalidated_accounts.html.xml | 15 +++--- ...accounting_transaction_lines_sort.html.xml | 51 +++++++++---------- ...ion_module_create_related_payment.html.xml | 15 +++--- ...ransaction_module_create_reversal.html.xml | 13 ++--- ...ansaction_input_multiple_partners.html.xml | 27 +++++----- ...voice_transaction_create_reversal.html.xml | 43 ++++++++-------- ...voice_transaction_create_reversal.html.xml | 43 ++++++++-------- bt5/erp5_accounting_ui_test/bt/revision | 2 +- 11 files changed, 148 insertions(+), 178 deletions(-) diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_create_reversal.html.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_create_reversal.html.xml index 6884e6c397..be12c49d9f 100644 --- a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_create_reversal.html.xml +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_create_reversal.html.xml @@ -2,10 +2,7 @@ <ZopeData> <record id="1" aka="AAAAAAAAAAE="> <pickle> - <tuple> - <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> - <tuple/> - </tuple> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> </pickle> <pickle> <dictionary> @@ -117,27 +114,27 @@ Test for Creating Reversal Transaction for an Accounting Transaction\n </tr>\n <tr>\n <td>assertText</td>\n - <td>//span[@id=\'listbox_record_number\']</td>\n - <td>2 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>2</td>\n </tr>\n <tr>\n <td>select</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/select</td>\n <td>label=2 - Fixed Assets</td>\n </tr>\n <tr>\n <td>select</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[3]/select</td>\n <td>label=3 - Stocks</td>\n </tr>\n <tr>\n <td>type</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/input</td>\n <td>20.0</td>\n </tr>\n <tr>\n <td>type</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[5]/input</td>\n <td>20.0</td>\n </tr>\n <tr>\n @@ -252,37 +249,37 @@ delivered.\n </tr>\n <tr>\n <td>assertText</td>\n - <td>//span[@id=\'listbox_record_number\']</td>\n - <td>2 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>2</td>\n </tr>\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/select</td>\n <td>account_module/stocks</td>\n </tr>\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[3]/select</td>\n <td>account_module/fixed_assets</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/input</td>\n <td>20.0</td> \n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[5]/input</td>\n <td>0.0</td> \n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[4]/input</td>\n <td>0.0</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[5]/input</td>\n <td>20.0</td>\n </tr>\n <!-- }}} -->\n diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_create_reversal_with_cancellation.html.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_create_reversal_with_cancellation.html.xml index 2b7442f2e2..610a1c6828 100644 --- a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_create_reversal_with_cancellation.html.xml +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_create_reversal_with_cancellation.html.xml @@ -2,10 +2,7 @@ <ZopeData> <record id="1" aka="AAAAAAAAAAE="> <pickle> - <tuple> - <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> - <tuple/> - </tuple> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> </pickle> <pickle> <dictionary> @@ -117,27 +114,27 @@ Test for Creating Reversal Transaction for an Accounting Transaction\n </tr>\n <tr>\n <td>assertText</td>\n - <td>//span[@id=\'listbox_record_number\']</td>\n - <td>2 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>2</td>\n </tr>\n <tr>\n <td>select</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/select</td>\n <td>label=2 - Fixed Assets</td>\n </tr>\n <tr>\n <td>select</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[3]/select</td>\n <td>label=3 - Stocks</td>\n </tr>\n <tr>\n <td>type</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/input</td>\n <td>20.0</td>\n </tr>\n <tr>\n <td>type</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[5]/input</td>\n <td>20.0</td>\n </tr>\n <tr>\n @@ -257,37 +254,37 @@ delivered.\n </tr>\n <tr>\n <td>assertText</td>\n - <td>//span[@id=\'listbox_record_number\']</td>\n - <td>2 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>2</td>\n </tr>\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/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[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[3]/select</td>\n <td>account_module/stocks</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/input</td>\n <td>-20.0</td> \n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[5]/input</td>\n <td>0.0</td> \n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[4]/input</td>\n <td>0.0</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[5]/input</td>\n <td>-20.0</td>\n </tr>\n <!-- }}} -->\n diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_input.html.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_input.html.xml index 400bbb7ba3..888a2db3db 100644 --- a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_input.html.xml +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_input.html.xml @@ -2,10 +2,7 @@ <ZopeData> <record id="1" aka="AAAAAAAAAAE="> <pickle> - <tuple> - <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> - <tuple/> - </tuple> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> </pickle> <pickle> <dictionary> @@ -97,27 +94,27 @@ Test Simple view of an Accounting Transaction\n </tr>\n <tr>\n <td>assertText</td>\n - <td>//span[@id=\'listbox_record_number\']</td>\n - <td>2 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>2</td>\n </tr>\n <tr>\n <td>select</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/select</td>\n <td>label=2 - Fixed Assets</td>\n </tr>\n <tr>\n <td>select</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[3]/select</td>\n <td>label=3 - Stocks</td>\n </tr>\n <tr>\n <td>type</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/input</td>\n <td>10.0</td>\n </tr>\n <tr>\n <td>type</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[5]/input</td>\n <td>20.0</td>\n </tr>\n <tr>\n @@ -150,33 +147,33 @@ Test Simple view of an Accounting Transaction\n </tr>\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/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[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[3]/select</td>\n <td>account_module/stocks</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/input</td>\n <td>10.0</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[5]/input</td>\n <td>20.0</td>\n </tr>\n <!-- stat is updated -->\n <tr>\n <td>assertFloat</td>\n - <td>//tr[@id=\'listbox_stat_line\']/td[4]</td>\n + <td>//tr[@class=\'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>//tr[@class=\'listbox_stat_line\']/td[5]</td>\n <td>20</td>\n </tr>\n <!-- }}} -->\n @@ -200,22 +197,22 @@ Test Simple view of an Accounting Transaction\n </tr>\n <tr>\n <td>verifyText</td>\n - <td>listbox_record_number</td>\n - <td>3 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>3</td>\n </tr>\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[3]/select</td>\n <td></td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[4]/input</td>\n <td>0.0</td>\n </tr> \n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[5]/input</td>\n <td>0.0</td>\n </tr> \n <!-- }}} -->\n @@ -238,33 +235,33 @@ Test Simple view of an Accounting Transaction\n </tr>\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/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[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[3]/select</td>\n <td>account_module/stocks</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/input</td>\n <td>10.0</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/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>//tr[@class=\'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>//tr[@class=\'listbox_stat_line\']/td[5]</td>\n <td>20</td>\n </tr>\n <!-- }}} -->\n diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_input_invalidated_accounts.html.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_input_invalidated_accounts.html.xml index d8262fcb03..25835686f2 100644 --- a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_input_invalidated_accounts.html.xml +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_input_invalidated_accounts.html.xml @@ -2,10 +2,7 @@ <ZopeData> <record id="1" aka="AAAAAAAAAAE="> <pickle> - <tuple> - <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> - <tuple/> - </tuple> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> </pickle> <pickle> <dictionary> @@ -120,12 +117,12 @@ be selected {{{ -->\n </tr>\n <tr>\n <td>assertText</td>\n - <td>//span[@id=\'listbox_record_number\']</td>\n - <td>2 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>2</td>\n </tr>\n <tr>\n <td>assertElementNotPresent</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select/option[contains(text(), \'41 - Receivable\')]</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/select/option[contains(text(), \'41 - Receivable\')]</td>\n <td></td>\n </tr>\n <!-- }}} -->\n @@ -149,12 +146,12 @@ be selected {{{ -->\n </tr>\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/select</td>\n <td>account_module/receivable</td>\n </tr>\n <tr>\n <td>assertElementPresent</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select/option[contains(text(), \'41 - Receivable\')]</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/select/option[contains(text(), \'41 - Receivable\')]</td>\n <td></td>\n </tr>\n <!-- }}} -->\n diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_lines_sort.html.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_lines_sort.html.xml index c205eb64f8..7a46fa3bc7 100644 --- a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_lines_sort.html.xml +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_lines_sort.html.xml @@ -2,10 +2,7 @@ <ZopeData> <record id="1" aka="AAAAAAAAAAE="> <pickle> - <tuple> - <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> - <tuple/> - </tuple> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> </pickle> <pickle> <dictionary> @@ -102,54 +99,54 @@ Test Simple view of an Accounting Transaction\n </tr>\n <tr>\n <td>verifyText</td>\n - <td>listbox_record_number</td>\n - <td>9 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>9</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>//tr[@class=\'listbox-data-line-0 DataA\']/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>//tr[@class=\'listbox-data-line-1 DataB\']/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>//tr[@class=\'listbox-data-line-2 DataA\']/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>//tr[@class=\'listbox-data-line-3 DataB\']/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>//tr[@class=\'listbox-data-line-4 DataA\']/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>//tr[@class=\'listbox-data-line-5 DataB\']/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>//tr[@class=\'listbox-data-line-6 DataA\']/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>//tr[@class=\'listbox-data-line-7 DataB\']/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>//tr[@class=\'listbox-data-line-8 DataA\']/td[4]/input</td>\n <td>9</td>\n </tr>\n <tr>\n @@ -183,59 +180,59 @@ other lines\n </tr>\n <tr>\n <td>verifyText</td>\n - <td>listbox_record_number</td>\n - <td>10 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>10</td>\n </tr>\n \n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/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>//tr[@class=\'listbox-data-line-1 DataB\']/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>//tr[@class=\'listbox-data-line-2 DataA\']/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>//tr[@class=\'listbox-data-line-3 DataB\']/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>//tr[@class=\'listbox-data-line-4 DataA\']/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>//tr[@class=\'listbox-data-line-5 DataB\']/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>//tr[@class=\'listbox-data-line-6 DataA\']/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>//tr[@class=\'listbox-data-line-7 DataB\']/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>//tr[@class=\'listbox-data-line-8 DataA\']/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>//tr[@class=\'listbox-data-line-9 DataB\']/td[4]/input</td>\n <td>0</td>\n </tr>\n \n diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_related_payment.html.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_related_payment.html.xml index 8fd8bd4303..a582b13597 100644 --- a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_related_payment.html.xml +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_related_payment.html.xml @@ -2,10 +2,7 @@ <ZopeData> <record id="1" aka="AAAAAAAAAAE="> <pickle> - <tuple> - <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> - <tuple/> - </tuple> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> </pickle> <pickle> <dictionary> @@ -82,7 +79,7 @@ Test for Creating Payment Transactions related to some Invoices\n </tr>\n <tr>\n <td>type</td>\n - <td>//tr[@id=\'listbox_search_line\']/td[4]/span/input</td>\n + <td>//tr[@class=\'listbox-search-line\']/th[4]/input</td>\n <td>Sale Invoice Transaction</td>\n </tr>\n <tr>\n @@ -92,8 +89,8 @@ Test for Creating Payment Transactions related to some Invoices\n </tr>\n <tr>\n <td>verifyText</td>\n - <td>listbox_record_number</td>\n - <td>2 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>2</td>\n </tr>\n <!-- }}} -->\n \n @@ -181,8 +178,8 @@ Test for Creating Payment Transactions related to some Invoices\n </tr>\n <tr>\n <td>verifyText</td>\n - <td>listbox_record_number</td>\n - <td>6 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>6</td>\n </tr>\n <!-- }}} -->\n \n diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_reversal.html.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_reversal.html.xml index d30835925f..ec3accb139 100644 --- a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_reversal.html.xml +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_reversal.html.xml @@ -2,10 +2,7 @@ <ZopeData> <record id="1" aka="AAAAAAAAAAE="> <pickle> - <tuple> - <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> - <tuple/> - </tuple> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> </pickle> <pickle> <dictionary> @@ -81,8 +78,8 @@ Test for Creating reversal of multiple transactions\n </tr>\n <tr>\n <td>verifyText</td>\n - <td>listbox_record_number</td>\n - <td>4 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>4</td>\n </tr>\n <!-- }}} -->\n \n @@ -127,8 +124,8 @@ Test for Creating reversal of multiple transactions\n </tr>\n <tr>\n <td>verifyText</td>\n - <td>listbox_record_number</td>\n - <td>8 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>8</td>\n </tr>\n <!-- }}} -->\n \n diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_payment_transaction_input_multiple_partners.html.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_payment_transaction_input_multiple_partners.html.xml index 9f85106f2a..d39673e9aa 100644 --- a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_payment_transaction_input_multiple_partners.html.xml +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_payment_transaction_input_multiple_partners.html.xml @@ -2,10 +2,7 @@ <ZopeData> <record id="1" aka="AAAAAAAAAAE="> <pickle> - <tuple> - <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> - <tuple/> - </tuple> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> </pickle> <pickle> <dictionary> @@ -97,22 +94,22 @@ Test Simple view of an Accounting Transaction with Multiple partners\n </tr>\n <tr>\n <td>assertText</td>\n - <td>//span[@id=\'listbox_record_number\']</td>\n - <td>3 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>3</td>\n </tr>\n <tr>\n <td>select</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/select</td>\n <td>label=5 - Bank</td>\n </tr>\n <tr>\n <td>select</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[3]/select</td>\n <td>label=41 - Receivable</td>\n </tr>\n <tr>\n <td>select</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[3]/select</td>\n <td>label=40 - Payable</td>\n </tr>\n <tr>\n @@ -150,17 +147,17 @@ Test Simple view of an Accounting Transaction with Multiple partners\n </tr>\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/select</td>\n <td>account_module/bank</td>\n </tr>\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[3]/select</td>\n <td>account_module/receivable</td>\n </tr>\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[3]/select</td>\n <td>account_module/payable</td>\n </tr>\n <!-- }}} -->\n @@ -196,17 +193,17 @@ Test Simple view of an Accounting Transaction with Multiple partners\n <!-- Check new column is here {{{ -->\n <tr>\n <td>assertText</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[4]</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]</td>\n <td>Client 1</td>\n </tr>\n <tr>\n <td>assertText</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[4]</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[4]</td>\n <td>Client 1</td>\n </tr>\n <tr>\n <td>assertText</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[4]</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[4]</td>\n <td>Supplier</td>\n </tr>\n <!-- }}} -->\n diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_purchase_invoice_transaction_create_reversal.html.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_purchase_invoice_transaction_create_reversal.html.xml index 171380d0ca..b5c40767e7 100644 --- a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_purchase_invoice_transaction_create_reversal.html.xml +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_purchase_invoice_transaction_create_reversal.html.xml @@ -2,10 +2,7 @@ <ZopeData> <record id="1" aka="AAAAAAAAAAE="> <pickle> - <tuple> - <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> - <tuple/> - </tuple> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> </pickle> <pickle> <dictionary> @@ -127,38 +124,38 @@ Test for Creating Reversal Transaction for a Purchase Invoice Transaction\n </tr>\n <tr>\n <td>assertText</td>\n - <td>//span[@id=\'listbox_record_number\']</td>\n - <td>3 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>3</td>\n </tr>\n \n <tr>\n <td>select</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/select</td>\n <td>label=6 - Goods Purchase</td>\n </tr>\n <tr>\n <td>select</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[3]/select</td>\n <td>label=4456 - Refundable VAT 10%</td>\n </tr>\n <tr>\n <td>select</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[3]/select</td>\n <td>label=40 - Payable</td>\n </tr>\n <tr>\n <td>type</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/input</td>\n <td>11.0</td>\n </tr>\n <tr>\n <td>type</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[5]/input</td>\n <td>1.0</td>\n </tr>\n <tr>\n <td>type</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[5]/input</td>\n <td>10.0</td>\n </tr>\n <tr>\n @@ -283,53 +280,53 @@ delivered.\n </tr>\n <tr>\n <td>assertText</td>\n - <td>//span[@id=\'listbox_record_number\']</td>\n - <td>3 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>3</td>\n </tr>\n <!-- Same as above, bad ordering ... -->\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/select</td>\n <td>account_module/payable</td>\n </tr>\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[3]/select</td>\n <td>account_module/refundable_vat</td>\n </tr>\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[3]/select</td>\n <td>account_module/goods_purchase</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/input</td>\n <td>10.0</td> \n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[5]/input</td>\n <td>0.0</td> \n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[4]/input</td>\n <td>1.0</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[5]/input</td>\n <td>0.0</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[4]/input</td>\n <td>0.0</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[5]/input</td>\n <td>11.0</td>\n </tr>\n <!-- }}} -->\n diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_sale_invoice_transaction_create_reversal.html.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_sale_invoice_transaction_create_reversal.html.xml index fca9abd1d0..6d7de7403e 100644 --- a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_sale_invoice_transaction_create_reversal.html.xml +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_sale_invoice_transaction_create_reversal.html.xml @@ -2,10 +2,7 @@ <ZopeData> <record id="1" aka="AAAAAAAAAAE="> <pickle> - <tuple> - <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> - <tuple/> - </tuple> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> </pickle> <pickle> <dictionary> @@ -127,38 +124,38 @@ Test for Creating Reversal Transaction for a Sale Invoice Transaction\n </tr>\n <tr>\n <td>assertText</td>\n - <td>//span[@id=\'listbox_record_number\']</td>\n - <td>3 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>3</td>\n </tr>\n \n <tr>\n <td>select</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/select</td>\n <td>label=41 - Receivable</td>\n </tr>\n <tr>\n <td>select</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[3]/select</td>\n <td>label=4457 - Collected VAT 10%</td>\n </tr>\n <tr>\n <td>select</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[3]/select</td>\n <td>label=7 - Goods Sales</td>\n </tr>\n <tr>\n <td>type</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/input</td>\n <td>10.0</td>\n </tr>\n <tr>\n <td>type</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[4]/input</td>\n <td>1.0</td>\n </tr>\n <tr>\n <td>type</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[5]/input</td>\n <td>11.0</td>\n </tr>\n <tr>\n @@ -283,52 +280,52 @@ delivered.\n </tr>\n <tr>\n <td>assertText</td>\n - <td>//span[@id=\'listbox_record_number\']</td>\n - <td>3 records</td>\n + <td>//span[@class="listbox-current-page-total-number"]</td>\n + <td>3</td>\n </tr>\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/select</td>\n <td>account_module/goods_sales</td>\n </tr>\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[3]/select</td>\n <td>account_module/collected_vat</td>\n </tr>\n <tr>\n <td>assertValue</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[3]/select</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[3]/select</td>\n <td>account_module/receivable</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/input</td>\n <td>11.0</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_0\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[5]/input</td>\n <td>0.0</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[4]/input</td>\n <td>0.0</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_1\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-1 DataB\']/td[5]/input</td>\n <td>1.0</td>\n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[4]/input</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[4]/input</td>\n <td>0.0</td> \n </tr>\n <tr>\n <td>assertFloatValue</td>\n - <td>//tr[@id=\'listbox_data_line_2\']/td[5]/input</td>\n + <td>//tr[@class=\'listbox-data-line-2 DataA\']/td[5]/input</td>\n <td>10.0</td> \n </tr>\n <!-- }}} -->\n diff --git a/bt5/erp5_accounting_ui_test/bt/revision b/bt5/erp5_accounting_ui_test/bt/revision index 9a1371776c..3968aef87f 100644 --- a/bt5/erp5_accounting_ui_test/bt/revision +++ b/bt5/erp5_accounting_ui_test/bt/revision @@ -1 +1 @@ -169 \ No newline at end of file +170 \ No newline at end of file -- 2.30.9