Commit f84b9777 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@38172 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 104616a8
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -108,7 +105,7 @@ ...@@ -108,7 +105,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td>id=listbox_domain_tree_mode</td>\n <td>//input[@class="listbox-tree-domain-tree-mode"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
</tal:block>\n </tal:block>\n
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -53,8 +50,8 @@ ...@@ -53,8 +50,8 @@
<!-- Check inventory -->\n <!-- Check inventory -->\n
<tr>\n <tr>\n
<td>verifyText</td>\n <td>verifyText</td>\n
<td>id=listbox_record_number</td>\n <td>//span[@class="listbox-current-page-total-number"]</td>\n
<td tal:content="python: \'%s records\' % movement_count">number of record(s)</td>\n <td tal:content="python: \'%s\' % movement_count">number of record(s)</td>\n
</tr>\n </tr>\n
<tal:block tal:condition="python: movement_count != 0">\n <tal:block tal:condition="python: movement_count != 0">\n
\n \n
...@@ -65,30 +62,30 @@ ...@@ -65,30 +62,30 @@
]">\n ]">\n
<tr>\n <tr>\n
<td>verifyText</td>\n <td>verifyText</td>\n
<td tal:content="python: \'//tr[@id=\\\'listbox_data_line_0\\\']/td[%s]\' % inventory_tuple[1]">inventory value</td>\n <td tal:content="python: \'//tr[@class=\\\'listbox-data-line-0 DataA\\\']/td[%s]\' % inventory_tuple[1]">inventory value</td>\n
<td tal:content="python: inventory_tuple[0]">current inventory</td>\n <td tal:content="python: inventory_tuple[0]">current inventory</td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>verifyText</td>\n <td>verifyText</td>\n
<td tal:content="python: \'//tr[@id=\\\'listbox_stat_line\\\']/td[%s]\' % inventory_tuple[1]">inventory value</td>\n <td tal:content="python: \'//tr[@class=\\\'listbox_stat_line\\\']/td[%s]\' % inventory_tuple[1]">inventory value</td>\n
<td tal:content="python: inventory_tuple[0]">current inventory</td>\n <td tal:content="python: inventory_tuple[0]">current inventory</td>\n
</tr>\n </tr>\n
\n \n
<!-- Check movement history list -->\n <!-- Check movement history list -->\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td tal:content="python: \'//tr[@id=\\\'listbox_data_line_0\\\']/td[%s]/a[1]\' % inventory_tuple[1]">link</td>\n <td tal:content="python: \'//tr[@class=\\\'listbox-data-line-0 DataA\\\']/td[%s]/a[1]\' % inventory_tuple[1]">link</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>verifyText</td>\n <td>verifyText</td>\n
<td>id=listbox_record_number</td>\n <td>//span[@class="listbox-current-page-total-number"]</td>\n
<td tal:content="python: \'%s records\' % int(abs(inventory_tuple[0]))">number of movement(s)</td>\n <td tal:content="python: \'%s\' % int(abs(inventory_tuple[0]))">number of movement(s)</td>\n
</tr>\n </tr>\n
<!-- Go back to inventory view -->\n <!-- Go back to inventory view -->\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td>//a[@id="listbox_title"]</td>\n <td>//a[@class="listbox_title"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
</tal:block>\n </tal:block>\n
......
25 26
\ No newline at end of file \ No newline at end of file
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -56,17 +53,17 @@ Test quick search on the project module.\n ...@@ -56,17 +53,17 @@ Test quick search on the project module.\n
\n \n
<tr>\n <tr>\n
<td>verifyEditable</td>\n <td>verifyEditable</td>\n
<td>//tr[@id="listbox_search_line"]/td[6]//input</td>\n <td>//tr[@class="listbox-search-line"]/th[6]//input</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>verifyValue</td>\n <td>verifyValue</td>\n
<td>//tr[@id="listbox_search_line"]/td[6]//input</td>\n <td>//tr[@class="listbox-search-line"]/th[6]//input</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>type</td>\n <td>type</td>\n
<td>//tr[@id="listbox_search_line"]/td[6]//input</td>\n <td>//tr[@class="listbox-search-line"]/th[6]//input</td>\n
<td>&gt;=2010/03/01</td>\n <td>&gt;=2010/03/01</td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -76,22 +73,22 @@ Test quick search on the project module.\n ...@@ -76,22 +73,22 @@ Test quick search on the project module.\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>verifyEditable</td>\n <td>verifyEditable</td>\n
<td>//tr[@id="listbox_search_line"]/td[6]//input</td>\n <td>//tr[@class="listbox-search-line"]/th[6]//input</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>verifyValue</td>\n <td>verifyValue</td>\n
<td>//tr[@id="listbox_search_line"]/td[6]//input</td>\n <td>//tr[@class="listbox-search-line"]/th[6]//input</td>\n
<td>&gt;=2010/03/01</td>\n <td>&gt;=2010/03/01</td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>verifyText</td>\n <td>verifyText</td>\n
<td>//tr[@id="listbox_data_line_0"]/td[6]</td>\n <td>//tr[@class=\'listbox-data-line-0 DataA\']/td[6]</td>\n
<td>2010/03/01</td>\n <td>2010/03/01</td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>verifyElementNotPresent</td>\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 <td></td>\n
</tr>\n </tr>\n
\n \n
......
4 5
\ No newline at end of file \ 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