Commit 6879eb44 authored by Ivan Tyagov's avatar Ivan Tyagov

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
parent 2df1b004
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
169
\ No newline at end of file
170
\ 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