Commit 5e6439ad 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@38151 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a0821381
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -115,8 +112,8 @@ workflow history. -->\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>x0_listbox_record_number</td>\n
<td>1 records</td>\n
<td>//span[@class="listbox-current-page-total-number x1_listbox-current-page-total-number"]</td>\n
<td>1</td>\n
</tr>\n
\n
</tbody></table>\n
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -161,12 +158,12 @@ another object of the same type. -->\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>x0_listbox_record_number</td>\n
<td>2 records</td> <!-- Creation + paste notification -->\n
<td>//span[@class="listbox-current-page-total-number x0_listbox-current-page-total-number"]</td>\n
<td>2</td> <!-- Creation + paste notification -->\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>x0_listbox_data_line_1</td>\n
<td>//tr[@class="x0_listbox-data-line-1 DataB"]/td[5]</td>\n
<td tal:content="string:regexp:Object copied from /.*/foo_module/2$$"/>\n
</tr>\n
</body>\n
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -125,15 +122,15 @@
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>x0_listbox_record_number</td>\n
<td>4 records</td> <!-- Creation + edited 3 times -->\n
<td>//span[@class="listbox-current-page-total-number x0_listbox-current-page-total-number"]</td>\n
<td>4</td> <!-- Creation + edited 3 times -->\n
</tr>\n
\n
<!-- First modification -->\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'x0_listbox_data_line_1\']/td[4]/a</td>\n
<td>//tr[@class=\'x0_listbox-data-line-1 DataB\']/td[4]/a</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -161,28 +158,28 @@
</tal:block>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>1 records</td> <!-- Only one property changed. -->\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>1</td> <!-- Only one property changed. -->\n
</tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[1]</td>\n
<td>title</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[2]</td>\n
<td>Title 0</td> <!-- before -->\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]</td>\n
<td>Version 1</td> <!-- after -->\n
</tr>\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>Version 3</td> <!-- now -->\n
</tr>\n
</tal:block>\n
......@@ -198,7 +195,7 @@
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'x0_listbox_data_line_2\']/td[4]/a</td>\n
<td>//tr[@class=\'x0_listbox-data-line-2 DataA\']/td[4]/a</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
......@@ -221,28 +218,28 @@
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>1 records</td> <!-- Only one property changed. -->\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>1</td> <!-- Only one property changed. -->\n
</tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[1]</td>\n
<td>title</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[2]</td>\n
<td>Version 1</td> <!-- before -->\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]</td>\n
<td>Version 2</td> <!-- after -->\n
</tr>\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>Version 3</td> <!-- now -->\n
</tr>\n
</tal:block>\n
......@@ -276,7 +273,7 @@
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'x0_listbox_data_line_3\']/td[4]/a</td>\n
<td>//tr[@class=\'x0_listbox-data-line-3 DataB\']/td[4]/a</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
......@@ -299,28 +296,28 @@
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>1 records</td> <!-- Only one property changed. -->\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>1</td> <!-- Only one property changed. -->\n
</tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[1]</td>\n
<td>title</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[2]</td>\n
<td>Version 2</td> <!-- before -->\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]</td>\n
<td>Version 3</td> <!-- after -->\n
</tr>\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>Version 3</td> <!-- now -->\n
</tr>\n
</tal:block>\n
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -104,12 +101,12 @@
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n
<td>verifyValue</td>\n
<td>//tr[@id="listbox_search_line"]/td[2]//input</td>\n
<td>//tr[@class="listbox-search-line"]/th[2]//input</td>\n
<td>id_value</td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//tr[@id="listbox_search_line"]/td[3]//input</td>\n
<td>//tr[@class="listbox-search-line"]/th[3]//input</td>\n
<td>title_value</td>\n
</tr>\n
</tal:block>\n
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -136,8 +133,8 @@
</tr>\n
<tr>\n
<td>assertText</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
</tbody></table>\n
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -123,12 +120,12 @@
</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
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_0"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-0 DataA"]//a[not(@title)][1]</td>\n
<td>1</td>\n
</tr>\n
\n
......@@ -143,12 +140,12 @@
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>1 records</td> \n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>1</td> \n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_0"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-0 DataA"]//a[not(@title)][1]</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>
</pickle>
<pickle>
<dictionary>
......@@ -64,7 +61,7 @@
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@title=\'Title\']</td>\n
<td>//button[@value=\'listbox.title\']</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
......@@ -96,7 +93,7 @@
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@title=\'Title\']</td>\n
<td>//button[@value=\'listbox.title\']</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -126,13 +123,13 @@
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>id=listbox_record_number</td>\n
<td>1 records</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>1</td>\n
</tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n
<td>verifyText</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>Foo Line</td>\n
</tr>\n
</tal:block>\n
......@@ -197,8 +194,8 @@
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>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
\n
<!-- Matrix box editable fields can use the cell coordinates as "cell_index" in their TALES-->\n
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -126,13 +123,13 @@
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>id=listbox_record_number</td>\n
<td>1 records</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>1</td>\n
</tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n
<td>verifyText</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>Foo Line</td>\n
</tr>\n
</tal:block>\n
......@@ -197,8 +194,8 @@
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>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
\n
<!-- Matrix box editable fields can use the cell coordinates as "cell_index" in their TALES-->\n
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -134,28 +131,28 @@
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>id=listbox_title</td>\n
<td>//a[@class="listbox_title"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>id=listbox_data_line_0</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']</td>\n
<td></td>\n
</tr>\n
<tr> \n
<td>verifyElementPresent</td> \n
<td>id=listbox_data_line_1</td> \n
<td>//tr[@class=\'listbox-data-line-1 DataB\']</td> \n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>id=listbox_data_line_2</td>\n
<td>//tr[@class=\'listbox-data-line-2 DataA\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>id=listbox_record_number</td>\n
<td>101 records</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>101</td>\n
</tr>\n
\n
<tr>\n
......@@ -175,32 +172,32 @@
\n
<tr>\n
<td>verifyText</td>\n
<td>id=listbox_record_number</td>\n
<td>101 records</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>101</td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>id=listbox_data_line_0</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']</td>\n
<td></td>\n
</tr>\n
<tr> \n
<td>verifyElementPresent</td> \n
<td>id=listbox_data_line_1</td> \n
<td>//tr[@class=\'listbox-data-line-1 DataB\']</td> \n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>id=listbox_data_line_2</td>\n
<td>//tr[@class=\'listbox-data-line-2 DataA\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_data_line_0"]/td[1]</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[1]</td>\n
<td>Object created successfully - Type: Foo</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_data_line_1"]/td[1]</td>\n
<td>//tr[@class=\'listbox-data-line-1 DataB\']/td[1]</td>\n
<td>Object created successfully - Type: Foo</td>\n
</tr>\n
</tbody></table>\n
......
594
\ No newline at end of file
598
\ 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