From 1d645d1300c6a24bbab7ad284e9c32a0a735884a Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Fri, 24 Sep 2010 11:51:42 +0000
Subject: [PATCH] Always start with reseted selection.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38621 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../testListboxToolBarAddNewContent.xml       | 12 +----
 .../testListboxToolBarCopyPaste.xml           | 13 +----
 .../testListboxToolBarDelete.xml              | 12 +----
 .../testListboxToolBarResetSelection.xml      | 52 +++++++------------
 bt5/erp5_km_ui_test/bt/revision               |  2 +-
 5 files changed, 23 insertions(+), 68 deletions(-)

diff --git a/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarAddNewContent.xml b/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarAddNewContent.xml
index 2afda110b0..999f7e7b96 100644
--- a/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarAddNewContent.xml
+++ b/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarAddNewContent.xml
@@ -55,17 +55,7 @@
 \n
 <tr>\n
   <td>openAndWait</td>\n
-  <td>${base_url}/web_site_module/km_test_web_site</td>\n
-  <td></td>\n
-</tr>\n
-<tr>\n
-  <td>click</td>\n
-  <td>//li[@id=\'select-module-toolbox\']/h3</td>\n
-  <td></td>\n
-</tr>\n
-<tr>\n
-  <td>clickAndWait</td>\n
-  <td>Base_doModule:method</td>\n
+  <td>${base_url}/web_site_module/km_test_web_site/document_module/view?reset:int=1</td>\n
   <td></td>\n
 </tr>\n
 <tr>\n
diff --git a/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarCopyPaste.xml b/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarCopyPaste.xml
index 7445734ec2..220fac89fd 100644
--- a/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarCopyPaste.xml
+++ b/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarCopyPaste.xml
@@ -55,18 +55,7 @@
 \n
 <tr>\n
   <td>openAndWait</td>\n
-  <td>${base_url}/web_site_module/km_test_web_site</td>\n
-  <td></td>\n
-</tr>\n
-\n
-<tr>\n
-  <td>click</td>\n
-  <td>//li[@id=\'select-module-toolbox\']/h3</td>\n
-  <td></td>\n
-</tr>\n
-<tr>\n
-  <td>clickAndWait</td>\n
-  <td>Base_doModule:method</td>\n
+  <td>${base_url}/web_site_module/km_test_web_site/document_module/view?reset:int=1</td>\n
   <td></td>\n
 </tr>\n
 <tr>\n
diff --git a/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarDelete.xml b/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarDelete.xml
index 4eded75164..e1ea4939c6 100644
--- a/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarDelete.xml
+++ b/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarDelete.xml
@@ -55,17 +55,7 @@
 \n
 <tr>\n
   <td>openAndWait</td>\n
-  <td>${base_url}/web_site_module/km_test_web_site</td>\n
-  <td></td>\n
-</tr>\n
-<tr>\n
-  <td>click</td>\n
-  <td>//li[@id=\'select-module-toolbox\']/h3</td>\n
-  <td></td>\n
-</tr>\n
-<tr>\n
-  <td>clickAndWait</td>\n
-  <td>Base_doModule:method</td>\n
+  <td>${base_url}/web_site_module/km_test_web_site/document_module/view?reset:int=1</td>\n
   <td></td>\n
 </tr>\n
 <tr>\n
diff --git a/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarResetSelection.xml b/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarResetSelection.xml
index abdf7980e8..e2295de8ef 100644
--- a/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarResetSelection.xml
+++ b/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/listbox_toolbar/testListboxToolBarResetSelection.xml
@@ -55,54 +55,40 @@
 \n
 <tr>\n
   <td>openAndWait</td>\n
-  <td>${base_url}/web_site_module/km_test_web_site</td>\n
+  <td>${base_url}/web_site_module/km_test_web_site/document_module/view?reset:int=1</td>\n
   <td></td>\n
 </tr>\n
-\n
-<tr>\n
-\t<td>click</td>\n
-\t<td>//li[@id=\'select-module-toolbox\']/h3</td>\n
-\t<td></td>\n
-</tr>\n
 <tr>\n
-\t<td>clickAndWait</td>\n
-\t<td>Base_doModule:method</td>\n
-\t<td></td>\n
+  <td>type</td>\n
+  <td>title</td>\n
+  <td>%NO_SUCH_DOC_TITLE_EXISTS%</td>\n
 </tr>\n
-\n
 <tr>\n
-\t<td>type</td>\n
-\t<td>title</td>\n
-\t<td>%NO_SUCH_DOC_TITLE_EXISTS%</td>\n
+  <td>clickAndWait</td>\n
+  <td>hidden_button</td>\n
+  <td></td>\n
 </tr>\n
 <tr>\n
-\t<td>clickAndWait</td>\n
-\t<td>hidden_button</td>\n
-\t<td></td>\n
-</tr>\n
-\n
-<tr>\n
-\t<td>verifyTextPresent</td>\n
-\t<td>No result.</td>\n
-\t<td></td>\n
+  <td>verifyTextPresent</td>\n
+  <td>No result.</td>\n
+  <td></td>\n
 </tr>\n
 <tr>\n
-\t<td>clickAndWait</td>\n
-\t<td>Folder_show:method</td>\n
-\t<td></td>\n
+  <td>clickAndWait</td>\n
+  <td>Folder_show:method</td>\n
+  <td></td>\n
 </tr>\n
 <tr>\n
-\t<td>verifyValue</td>\n
-\t<td>title</td>\n
-\t<td></td>\n
+  <td>verifyValue</td>\n
+  <td>title</td>\n
+  <td></td>\n
 </tr>\n
 <tr>\n
-\t<td>verifyTextNotPresent</td>\n
-\t<td>No result.</td>\n
-\t<td></td>\n
+  <td>verifyTextNotPresent</td>\n
+  <td>No result.</td>\n
+  <td></td>\n
 </tr>\n
 \n
-\n
 <tal:block metal:use-macro="here/KMZuite_CommonTemplate/macros/deleteKMWebSite" />\n
 \n
 </tbody></table>\n
diff --git a/bt5/erp5_km_ui_test/bt/revision b/bt5/erp5_km_ui_test/bt/revision
index dec4c59e4a..3fbd193e4a 100644
--- a/bt5/erp5_km_ui_test/bt/revision
+++ b/bt5/erp5_km_ui_test/bt/revision
@@ -1 +1 @@
-104
\ No newline at end of file
+106
\ No newline at end of file
-- 
2.30.9