From 2b71f08aa58fad0e85f0370ce061145e1618eea7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Le=20Ninivin?= <cedric.leninivin@tiolive.com>
Date: Fri, 2 Oct 2015 18:08:18 +0000
Subject: [PATCH] erp5_officejs_ui_test: update Test to test synchronization
 with ERP5 specificaly

---
 ...ml => testOfficeJSERP5Synchronization.xml} | 33 ++++++++++++++++---
 1 file changed, 29 insertions(+), 4 deletions(-)
 rename bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/{testOfficeJSSynchronization.xml => testOfficeJSERP5Synchronization.xml} (91%)

diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSSynchronization.xml b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSERP5Synchronization.xml
similarity index 91%
rename from bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSSynchronization.xml
rename to bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSERP5Synchronization.xml
index 647a5f39d1..0eaa119d98 100644
--- a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSSynchronization.xml
+++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSERP5Synchronization.xml
@@ -40,7 +40,7 @@
       xmlns:metal="http://xml.zope.org/namespaces/metal">\n
 <head>\n
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n
-<title>Test RenderJS UI</title>\n
+<title>Test OfficeJS UI</title>\n
 </head>\n
 <body>\n
 <table cellpadding="1" cellspacing="1" border="1">\n
@@ -222,12 +222,37 @@
 </tr>\n
 <tr>\n
   <td>waitForElementPresent</td>\n
-  <td>//a[@data-i18n=\'Sync\']</td>\n
+  <td>//a[@data-i18n=\'Storage Configuration\']</td>\n
   <td></td>\n
 </tr>\n
 <tr>\n
   <td>click</td>\n
-  <td>//a[@data-i18n=\'Sync\']</td>\n
+  <td>//a[@data-i18n=\'Storage Configuration\']</td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+  <td>waitForElementPresent</td>\n
+  <td>//form[@class=\'select-erp5-form\']/button[@data-i18n=\'ERP5\']</td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+  <td>pause</td>\n
+  <td>1000</td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+  <td>clickAndWait</td>\n
+  <td>//form[@class=\'select-erp5-form\']/button[@data-i18n=\'ERP5\']</td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+  <td>waitForElementPresent</td>\n
+  <td>//a[@data-i18n=\'Synchronize\']</td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+  <td>click</td>\n
+  <td>//a[@data-i18n=\'Synchronize\']</td>\n
   <td></td>\n
 </tr>\n
 <tr>\n
@@ -386,7 +411,7 @@
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>testOfficeJSSynchronization</string> </value>
+            <value> <string>testOfficeJSERP5Synchronization</string> </value>
         </item>
         <item>
             <key> <string>output_encoding</string> </key>
-- 
2.30.9