From ede26d08290f29d4685ce2afbbf6d1fceb8086ed Mon Sep 17 00:00:00 2001
From: Xiaowu Zhang <xiaowu.zhang@tiolive.com>
Date: Tue, 2 Jun 2015 04:34:20 +0000
Subject: [PATCH] erp5_web_renderjs_ui_test: update test for relationfield

---
 .../testRelationFieldCreate.xml               | 34 ++++++++++++++++++
 .../testSimpleRelationFieldWithAccent.xml     | 36 ++++++++++++++++++-
 2 files changed, 69 insertions(+), 1 deletion(-)

diff --git a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_zuite/relationfield_zuite/testRelationFieldCreate.xml b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_zuite/relationfield_zuite/testRelationFieldCreate.xml
index 971ade1da5..915e3c16c7 100644
--- a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_zuite/relationfield_zuite/testRelationFieldCreate.xml
+++ b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_zuite/relationfield_zuite/testRelationFieldCreate.xml
@@ -206,11 +206,43 @@
   <td></td>\n
 </tr>\n
 \n
+<tr>\n
+  <td>pause</td>\n
+  <td>3000</td>\n
+  <td></td>\n
+</tr>\n
+\n
+<tr>\n
+  <td>click</td>\n
+  <td>//a[@data-i18n="Tabs"]</td>\n
+  <td></td>\n
+</tr>\n
+\n
+\n
+<tr>\n
+  <td>waitForElementPresent</td>\n
+  <td>//a[@data-i18n=\'Relation Fields\']</td>\n
+  <td></td>\n
+</tr>\n
+\n
+<tr>\n
+  <td>click</td>\n
+  <td>//a[@data-i18n=\'Relation Fields\']</td>\n
+  <td></td>\n
+</tr>\n
+\n
+<tr>\n
+  <td>waitForElementPresent</td>\n
+  <td>//input[@name=\'field_my_successor_title\']</td>\n
+  <td></td>\n
+</tr>\n
+<!--\n
 <tr>\n
   <td>waitForElementPresent</td>\n
   <td>//div[@data-gadget-scope=\'field_my_successor_title\']/a[@class=\'ui-btn ui-corner-all ui-btn-icon-notext ui-icon-plane ui-shadow-inset ui-btn-inline\']</td>\n
   <td></td>\n
 </tr>\n
+-->\n
 \n
 <tr>\n
   <td>verifyValue</td>\n
@@ -224,6 +256,7 @@
   <td>a1</td>\n
 </tr>\n
 \n
+<!--\n
 <tr>\n
   <td>click</td>\n
   <td>//div[@data-gadget-scope=\'field_my_successor_title\']/a</td>\n
@@ -241,6 +274,7 @@
   <td>//input[@name=\'field_my_title\']</td>\n
   <td>A new foo</td>\n
 </tr>\n
+-->\n
 </tbody></table>\n
 </body>\n
 </html>
diff --git a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_zuite/relationfield_zuite/testSimpleRelationFieldWithAccent.xml b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_zuite/relationfield_zuite/testSimpleRelationFieldWithAccent.xml
index 211670c291..e2ce52d666 100644
--- a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_zuite/relationfield_zuite/testSimpleRelationFieldWithAccent.xml
+++ b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_zuite/relationfield_zuite/testSimpleRelationFieldWithAccent.xml
@@ -206,12 +206,44 @@
   <td></td>\n
 </tr>\n
 \n
+<tr>\n
+  <td>pause</td>\n
+  <td>3000</td>\n
+  <td></td>\n
+</tr>\n
+\n
+<tr>\n
+  <td>click</td>\n
+  <td>//a[@data-i18n="Tabs"]</td>\n
+  <td></td>\n
+</tr>\n
+\n
+\n
 <tr>\n
   <td>waitForElementPresent</td>\n
-  <td>//div[@data-gadget-scope=\'field_my_successor_title\']/a[@class=\'ui-btn ui-corner-all ui-btn-icon-notext ui-icon-plane ui-shadow-inset ui-btn-inline\']</td>\n
+  <td>//a[@data-i18n=\'Relation Fields\']</td>\n
   <td></td>\n
 </tr>\n
 \n
+<tr>\n
+  <td>click</td>\n
+  <td>//a[@data-i18n=\'Relation Fields\']</td>\n
+  <td></td>\n
+</tr>\n
+\n
+<tr>\n
+  <td>waitForElementPresent</td>\n
+  <td>//input[@name=\'field_my_successor_title\']</td>\n
+  <td></td>\n
+</tr>\n
+\n
+<!--\n
+<tr>\n
+  <td>waitForElementPresent</td>\n
+  <td>//div[@data-gadget-scope=\'field_my_successor_title\']/a[@class=\'ui-btn ui-corner-all ui-btn-icon-notext ui-icon-plane ui-shadow-inset ui-btn-inline\']</td>\n
+  <td></td>\n
+</tr>\n
+-->\n
 <tr>\n
   <td>verifyValue</td>\n
   <td>//input[@name=\'field_my_successor_title\']</td>\n
@@ -224,6 +256,7 @@
   <td>a1</td>\n
 </tr>\n
 \n
+<!--\n
 <tr>\n
   <td>click</td>\n
   <td>//div[@data-gadget-scope=\'field_my_successor_title\']/a</td>\n
@@ -241,6 +274,7 @@
   <td>//input[@name=\'field_my_title\']</td>\n
   <td>azértï</td>\n
 </tr>\n
+-->\n
 </tbody></table>\n
 </body>\n
 </html>
-- 
2.30.9