Commit a0821381 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@38144 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d45ae870
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -74,7 +71,7 @@
</tr>\n
<tr>\n
<td>click</td>\n
<td>//tr[@id=\'listbox_data_line_1\']//input[@type=\'checkbox\']</td>\n
<td>//tr[@class=\'listbox-data-line-1 DataB\']//input[@type=\'checkbox\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -114,7 +111,7 @@
</tr>\n
<tr>\n
<td>click</td>\n
<td>//tr[@id=\'listbox_data_line_2\']//input[@type=\'checkbox\']</td>\n
<td>//tr[@class=\'listbox-data-line-2 DataA\']//input[@type=\'checkbox\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -134,7 +131,7 @@
</tr>\n
<tr>\n
<td>click</td>\n
<td>//tr[@id=\'listbox_data_line_3\']//input[@type=\'checkbox\']</td>\n
<td>//tr[@class=\'listbox-data-line-3 DataB\']//input[@type=\'checkbox\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -159,7 +156,7 @@
</tr>\n
<tr>\n
<td>click</td>\n
<td>//tr[@id=\'listbox_data_line_6\']//input[@type=\'checkbox\']</td>\n
<td>//tr[@class=\'listbox-data-line-6 DataA\']//input[@type=\'checkbox\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -174,7 +171,7 @@
</tr>\n
<tr>\n
<td>click</td>\n
<td>//tr[@id=\'listbox_data_line_7\']//input[@type=\'checkbox\']</td>\n
<td>//tr[@class=\'listbox-data-line-7 DataB\']//input[@type=\'checkbox\']</td>\n
<td></td>\n
</tr>\n
<tr>\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>
......@@ -76,7 +73,7 @@
</tr>\n
<tr>\n
<td>click</td>\n
<td>//tr[@id=\'listbox_data_line_4\']//input[@type=\'checkbox\']</td>\n
<td>//tr[@class=\'listbox-data-line-4 DataA\']//input[@type=\'checkbox\']</td>\n
<td></td>\n
</tr>\n
<tr>\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>
......@@ -54,32 +51,32 @@
\n
<tr>\n
<td>verifyText</td>\n
<td>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>verifyText</td>\n
<td>id=listbox_item_number</td>\n
<td> - 0 items selected</td>\n
<td>//span[@class="listbox-current-item-number"]</td>\n
<td>0</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
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_1"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-1 DataB"]//a[not(@title)][1]</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_2"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-2 DataA"]//a[not(@title)][1]</td>\n
<td>2</td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>id=listbox_data_line_3</td>\n
<td>//tr[@class="listbox-data-line-3 DataB"]</td>\n
<td></td>\n
</tr>\n
\n
......@@ -91,17 +88,17 @@
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//*[@id="listbox_data_line_0"]//input[@type="checkbox"]</td>\n
<td>//*[@class="listbox-data-line-0 DataA"]//input[@type="checkbox"]</td>\n
<td>on</td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//*[@id="listbox_data_line_1"]//input[@type="checkbox"]</td>\n
<td>//*[@class="listbox-data-line-1 DataB"]//input[@type="checkbox"]</td>\n
<td>on</td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//*[@id=\'listbox_data_line_2\']//input[@type="checkbox"]</td>\n
<td>//*[@class="listbox-data-line-2 DataA"]//input[@type="checkbox"]</td>\n
<td>on</td>\n
</tr>\n
<!-- Uncheck all -->\n
......@@ -112,17 +109,17 @@
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//*[@id="listbox_data_line_0"]//input[@type="checkbox"]</td>\n
<td>//*[@class="listbox-data-line-0 DataA"]//input[@type="checkbox"]</td>\n
<td>off</td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//*[@id="listbox_data_line_1"]//input[@type="checkbox"]</td>\n
<td>//*[@class="listbox-data-line-1 DataB"]//input[@type="checkbox"]</td>\n
<td>off</td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//*[@id=\'listbox_data_line_2\']//input[@type="checkbox"]</td>\n
<td>//*[@class="listbox-data-line-2 DataA"]//input[@type="checkbox"]</td>\n
<td>off</td>\n
</tr>\n
\n
......
......@@ -51,47 +51,47 @@
\n
<tr>\n
<td>verifyText</td>\n
<td>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>verifyText</td>\n
<td>id=listbox_item_number</td>\n
<td> - 0 items selected</td>\n
<td>//span[@class="listbox-current-item-number"]</td>\n
<td>0</td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>id=listbox_set_page</td>\n
<td>//button[@class="listbox_set_page"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>id=listbox_next_page</td>\n
<td>//button[@class="listbox_next_page"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>id=listbox_previous_page</td>\n
<td>//button[@class="listbox_previous_page"]</td>\n
<td></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
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_1"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-1 DataB"]//a[not(@title)][1]</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_2"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-2 DataA"]//a[not(@title)][1]</td>\n
<td>2</td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>id=listbox_data_line_3</td>\n
<td>//tr[@class="listbox-data-line-3 DataB"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -120,13 +120,13 @@
\n
<tr>\n
<td>verifyText</td>\n
<td>id=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
<tr>\n
<td>verifyText</td>\n
<td>id=listbox_item_number</td>\n
<td> - 0 items selected</td>\n
<td>//span[@class="listbox-current-item-number"]</td>\n
<td>0</td>\n
</tr>\n
<tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
......@@ -152,22 +152,22 @@
</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
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_1"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-1 DataB"]//a[not(@title)][1]</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_2"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-2 DataA"]//a[not(@title)][1]</td>\n
<td>2</td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>id=listbox_data_line_3</td>\n
<td>//*[@class="listbox-data-line-3 DataB"]</td>\n
<td></td>\n
</tr>\n
\n
......@@ -192,8 +192,8 @@
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>id=listbox_item_number</td>\n
<td> - 1 items selected</td>\n
<td>//span[@class="listbox-current-item-number"]</td>\n
<td>1</td>\n
</tr>\n
<!--tal:block metal:use-macro="here/ListBoxDialogModeZuite_CommonTemplate/macros/verify_dialog" /-->\n
\n
......@@ -221,22 +221,22 @@
</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>3</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_1"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-1 DataB"]//a[not(@title)][1]</td>\n
<td>4</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_2"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-2 DataA"]//a[not(@title)][1]</td>\n
<td>5</td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>id=listbox_data_line_3</td>\n
<td>//tr[@class="listbox-data-line-3 DataB"]</td>\n
<td></td>\n
</tr>\n
\n
......@@ -272,22 +272,22 @@
</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
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_1"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-1 DataB"]//a[not(@title)][1]</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_2"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-2 DataA"]//a[not(@title)][1]</td>\n
<td>2</td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>id=listbox_data_line_3</td>\n
<td>//tr[@class="listbox-data-line-3 DataB"]</td>\n
<td></td>\n
</tr>\n
\n
......@@ -327,8 +327,8 @@
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>id=listbox_item_number</td>\n
<td> - 1 items selected</td>\n
<td>//span[@class="listbox-current-item-number"]</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
......@@ -354,12 +354,12 @@
</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>9</td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</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
\n
......@@ -371,13 +371,13 @@
<tal:block metal:use-macro="here/ListBoxDialogModeZuite_CommonTemplate/macros/goto_dialog" />\n
<tr>\n
<td>verifyText</td>\n
<td>id=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_item_number</td>\n
<td> - 0 items selected</td>\n
<td>//span[@class="listbox-current-item-number"]</td>\n
<td>0</td>\n
</tr>\n
<tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
......@@ -403,22 +403,22 @@
</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
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_1"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-1 DataB"]//a[not(@title)][1]</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_2"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-2 DataA"]//a[not(@title)][1]</td>\n
<td>2</td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>id=listbox_data_line_3</td>\n
<td>//tr[@class="listbox-data-line-3 DataB"]</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>
</pickle>
<pickle>
<dictionary>
......@@ -55,7 +52,7 @@
<tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>type</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>1</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
......@@ -88,7 +85,7 @@
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//*[@id=\'listbox_data_line_0\']//input[@type="checkbox"]</td>\n
<td>//*[@class="listbox-data-line-0 DataA"]//input[@type="checkbox"]</td>\n
<td>on</td>\n
</tr>\n
<!--\n
......@@ -101,7 +98,7 @@
<tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\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>1</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
......@@ -113,7 +110,7 @@
\n
<tr>\n
<td>verifyElementNotPresent</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
\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>
......@@ -73,32 +70,32 @@
</tr>\n
<tr>\n
<td>assertElementPresent</td>\n
<td>//tr[@id="listbox_label_line"]/td[2]/img[@alt="Ascending Display"]</td>\n
<td>//tr[@class="listbox-label-line"]/th[2]/button[@title="Ascending Display"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertElementNotPresent</td>\n
<td>//tr[@id="listbox_label_line"]/td[2]/img[@alt="Descending Display"]</td>\n
<td>//tr[@class="listbox-label-line"]/th[2]/button[@title="Descending Display"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</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>0</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_data_line_1"]/td[2]</td>\n
<td>//tr[@class="listbox-data-line-1 DataB"]/td[2]</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_data_line_2"]/td[2]</td>\n
<td>//tr[@class="listbox-data-line-2 DataA"]/td[2]</td>\n
<td>2</td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>id=listbox_data_line_3</td>\n
<td>//tr[@class="listbox-data-line-3 DataB"]</td>\n
<td></td>\n
</tr>\n
<!-- click the ID again -->\n
......@@ -115,32 +112,32 @@
</tr>\n
<tr>\n
<td>assertElementNotPresent</td>\n
<td>//tr[@id="listbox_label_line"]/td[2]/img[@alt="Ascending Display"]</td>\n
<td>//tr[@class="listbox-label-line"]/th[2]/button[@title="Ascending Display"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertElementPresent</td>\n
<td>//tr[@id="listbox_label_line"]/td[2]/img[@alt="Descending Display"]</td>\n
<td>//tr[@class="listbox-label-line"]/th[2]/button[@title="Descending Display"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</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>2</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_data_line_1"]/td[2]</td>\n
<td>//tr[@class="listbox-data-line-1 DataB"]/td[2]</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_data_line_2"]/td[2]</td>\n
<td>//tr[@class="listbox-data-line-2 DataA"]/td[2]</td>\n
<td>0</td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>id=listbox_data_line_3</td>\n
<td>//tr[@class="listbox-data-line-3 DataB"]</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>
......@@ -116,22 +113,22 @@
<tal:block metal:use-macro="here/ListBoxDialogModeZuite_CommonTemplate/macros/goto_dialog" />\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
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_1"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-1 DataB"]//a[not(@title)][1]</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_2"]//a[not(@title)][1]</td>\n
<td>//*[@class="listbox-data-line-2 DataA"]//a[not(@title)][1]</td>\n
<td>2</td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>id=listbox_data_line_3</td>\n
<td>//*[@class="listbox-data-line-3 DataB"]</td>\n
<td></td>\n
</tr>\n
\n
......@@ -169,7 +166,7 @@
\n
<tr>\n
<td>click</td>\n
<td>//*[@id=\'listbox_data_line_1\']//input[@type="checkbox"]</td>\n
<td>//*[@class=\'listbox-data-line-1 DataB\']//input[@type="checkbox"]</td>\n
<td></td>\n
</tr>\n
<tal:block metal:use-macro="here/ListBoxDialogModeZuite_CommonTemplate/macros/verify_dialog" />\n
......@@ -191,7 +188,7 @@
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//*[@id="listbox_data_line_1"]//input[@type="checkbox"]</td>\n
<td>//*[@class="listbox-data-line-1 DataB"]//input[@type="checkbox"]</td>\n
<td>on</td>\n
</tr>\n
\n
......
592
\ No newline at end of file
594
\ 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