From 2ce847e878426d40ee630028c0b31d030615f2bc Mon Sep 17 00:00:00 2001
From: Gabriel Monnerat <gabriel@tiolive.com>
Date: Tue, 8 May 2012 14:30:18 -0300
Subject: [PATCH] In some cases, the option is already selected and in this
 case the page in not reloaded. Then, the test was refactored to wait or not
 the page be reloaded.

---
 .../planning_box_field_zuite/testPlanningBoxEdition.xml    | 7 ++++++-
 bt5/erp5_ui_test/bt/revision                               | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/planning_box_field_zuite/testPlanningBoxEdition.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/planning_box_field_zuite/testPlanningBoxEdition.xml
index b90dbb4816..dd4cfe0a61 100644
--- a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/planning_box_field_zuite/testPlanningBoxEdition.xml
+++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/planning_box_field_zuite/testPlanningBoxEdition.xml
@@ -128,10 +128,15 @@
   <td></td>\n
 </tr>\n
 <tr>\n
-  <td>selectAndWait</td>\n
+  <td>select</td>\n
   <td>//select[@name=\'report_root_url\']</td>\n
   <td>parent</td>\n
 </tr>\n
+<tr>\n
+  <td>waitForCondition</td>\n
+  <td>selenium.isElementPresent("//*[@class=\'planning_content\']/div[@title=\'Title 0\']")</td>\n
+  <td>10000</td>\n
+</tr>\n
 <tr>\n
   <td>assertTextNotPresent</td>\n
   <td>SiteError</td>\n
diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision
index 55df208815..a3d3658d43 100644
--- a/bt5/erp5_ui_test/bt/revision
+++ b/bt5/erp5_ui_test/bt/revision
@@ -1 +1 @@
-689
\ No newline at end of file
+690
\ No newline at end of file
-- 
2.30.9