Commit 89b10c27 authored by Jérome Perrin's avatar Jérome Perrin

Also reset sort order on "show all"

parent 1e8bd712
......@@ -86,11 +86,6 @@ Test display of Account Module, with at_date parameter\n
<!-- }}} -->\n
\n
<!-- 10 accounts -> 10 records in the list {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@title=\'Show All\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
......@@ -260,8 +255,7 @@ Test display of Account Module, with at_date parameter\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
-->
]]></unicode> </value>
</item>
......
......@@ -55,11 +55,6 @@ Test default display of Account Module\n
<!-- }}} -->\n
\n
<!-- 10 accounts -> 10 records in the list {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@title=\'Show All\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
......@@ -535,8 +530,7 @@ for line_idx, line in enumerate(list(csv.reader(f))[1:]):\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
-->
]]></unicode> </value>
</item>
......
......@@ -56,11 +56,6 @@ Test default display of Account Module With Employees.\n
<!-- }}} -->\n
\n
<!-- 10 accounts -> 10 records in the list {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@title=\'Show All\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
......@@ -518,8 +513,7 @@ Test default display of Account Module With Employees.\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
-->
]]></unicode> </value>
</item>
......
......@@ -47,20 +47,13 @@ Test filter in Account Module\n
</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionList">\n
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
\n
<!-- Setup {{{ -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Accounts</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- 10 accounts -> 10 records in the list {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
......@@ -177,6 +170,11 @@ Test filter in Account Module\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@value=\'listbox.preferred_gap_id:asc\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
......@@ -339,6 +337,11 @@ Test filter in Account Module\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@value=\'listbox.preferred_gap_id:asc\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
......@@ -349,8 +352,7 @@ Test filter in Account Module\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
-->
]]></unicode> </value>
</item>
......
......@@ -86,11 +86,6 @@ Test display of Account Module, with from_date parameter (which has no impact)\n
<!-- }}} -->\n
\n
<!-- 10 accounts -> 10 records in the list {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@title=\'Show All\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
......@@ -548,8 +543,7 @@ Test display of Account Module, with from_date parameter (which has no impact)\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
-->
]]></unicode> </value>
</item>
......
......@@ -71,11 +71,6 @@ Test Accounting module listbox supports deleting\n
<!-- }}} -->\n
\n
<!-- 4 records in the list {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
......
......@@ -56,11 +56,6 @@ Test Accounting module listbox supports filtering\n
<!-- }}} -->\n
\n
<!-- 4 records in the list {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
......
......@@ -56,11 +56,6 @@ Test Accounting module listbox multi pages\n
<!-- }}} -->\n
\n
<!-- 4*12 records in the list {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
......@@ -186,6 +181,11 @@ Test Accounting module listbox multi pages\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[ @value=\'listbox.operation_date:asc\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
......
......@@ -57,11 +57,6 @@ Accounting Transaction Module Search Columns\n
<!-- }}} -->\n
\n
<!-- filter on title {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@class=\'listbox-search-line\']/th[2]/input</td>\n
......@@ -124,6 +119,11 @@ as title is a search key -->\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@value=\'listbox.operation_date:asc\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@class=\'listbox-search-line\']/th[2]/input</td>\n
......@@ -192,6 +192,11 @@ as title is a search key -->\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@value=\'listbox.operation_date:asc\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@class=\'listbox-search-line\']/th[3]/input</td>\n
......@@ -499,8 +504,7 @@ XXX shall we really test i18n issues here?\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
-->
]]></unicode> </value>
</item>
......
......@@ -54,10 +54,6 @@ Test sort for Accounting module main listbox\n
<td>Accounting</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- check content of known lines {{{ -->\n
......
......@@ -53,11 +53,6 @@ Test sort for Accounting module main listbox, without section\n
<td>select_module</td>\n
<td>Accounting</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<!-- we unselect section -->\n
<tr>\n
<td>clickAndWait</td>\n
......
198
\ No newline at end of file
199
\ No newline at end of file
......@@ -310,42 +310,6 @@
<td>//*[@class="listbox-data-line-2 DataA"]//input[@type="checkbox"]</td>\n
<td>off</td>\n
</tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n
<td>verifyText</td>\n
<td>//*[@class="listbox-data-line-0 DataA"]//a[not(@title)]</td>\n
<td>9</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//*[@class="listbox-data-line-1 DataB"]//a[not(@title)]</td>\n
<td>8</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//*[@class="listbox-data-line-2 DataA"]//a[not(@title)]</td>\n
<td>7</td>\n
</tr>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<!-- The elements are not descending sorted -->\n
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_0"]//a[not(@title)]</td>\n
<td>0</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_1"]//a[not(@title)]</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//*[@id="listbox_data_line_2"]//a[not(@title)]</td>\n
<td>2</td>\n
</tr>\n
</tal:block>\n
\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>//*[@class="listbox-data-line-3 DataB"]</td>\n
......
712
\ No newline at end of file
713
\ No newline at end of file
......@@ -57,6 +57,7 @@ if selection_name is None:\n
\n
ps = context.portal_selections\n
ps.setSelectionToAll(selection_name, REQUEST=request, reset_domain_tree=True, reset_report_tree=True)\n
ps.setSelectionSortOrder(selection_name, [])\n
url = ps.getSelectionListUrlFor(selection_name, REQUEST=request)\n
request.RESPONSE.redirect(url)\n
</string> </value>
......
41106
\ No newline at end of file
41107
\ 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