From 91f361245205f585adb71f2d26d63eefa0c85421 Mon Sep 17 00:00:00 2001
From: Mohamadou Mbengue <mmbengue@gmail.com>
Date: Mon, 24 Aug 2009 13:08:10 +0000
Subject: [PATCH] 2009-08-20 Mohamadou * Update
 testMultiRelationFieldProxyListBox and  testRelationFieldColumns to support 
 mobile ui tests.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28594 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../testMultiRelationFieldProxyListBox.xml    |  2 +-
 .../testRelationFieldColumns.xml              | 85 ++++++++++++++++++-
 bt5/erp5_ui_test/bt/revision                  |  2 +-
 3 files changed, 85 insertions(+), 4 deletions(-)

diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testMultiRelationFieldProxyListBox.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testMultiRelationFieldProxyListBox.xml
index e69790f0ce..1075076016 100644
--- a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testMultiRelationFieldProxyListBox.xml
+++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testMultiRelationFieldProxyListBox.xml
@@ -98,7 +98,7 @@
 </tr>\n
 <tr>\n
   <td>clickAndWait</td>\n
-  <td>link=Title 0</td>\n
+  <td>link=0</td>\n
   <td></td>\n
 </tr>\n
 <tr>\n
diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testRelationFieldColumns.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testRelationFieldColumns.xml
index c673c52895..a8eee06a15 100644
--- a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testRelationFieldColumns.xml
+++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testRelationFieldColumns.xml
@@ -78,7 +78,7 @@
 </tr>\n
 <tr>\n
   <td>clickAndWait</td>\n
-  <td>link=Title 0</td>\n
+  <td>link=0</td>\n
   <td></td>\n
 </tr>\n
 <tr>\n
@@ -93,6 +93,7 @@
 </tr>\n
 \n
 <!-- this field is configured to show title, int_index and relative url -->\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
 <tr>\n
   <td>assertText</td>\n
   <td>//tr[@id=\'listbox_label_line\']/td[2]</td>\n
@@ -160,10 +161,90 @@
   <td>//tr[@id=\'listbox_label_line\']/td[4]</td>\n
   <td>Relative URL</td>\n
 </tr>\n
+</tal:block>\n
+<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
+<!--<tr>\n
+  <td>assertText</td>\n
+  <td>//*[@id="listbox_data_line_0"]/div[2]//span[1]</td>\n
+  <td>Title</td>\n
+</tr>\n
+-->\n
+<tr>\n
+  <td>assertText</td>\n
+  <td>//*[@id="listbox_data_line_0"]/div[2]//span[1]</td>\n
+  <td>Sort Index</td>\n
+</tr>\n
+<tr>\n
+  <td>assertText</td>\n
+  <td>//*[@id="listbox_data_line_0"]/div[3]//span[1]</td>\n
+  <td>Relative URL</td>\n
+</tr>\n
+\n
+<tr>\n
+  <td>clickAndWait</td>\n
+  <td>//input[@id="listbox_next_page"]</td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+  <tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
+  <td>assertValue</td>\n
+  <td>//input[@id="listbox_set_page"]</td>\n
+  <td>2</td>\n
+  </tal:block>\n
+  <tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
+  <td>assertValue</td>\n
+  <td>id=listbox_page_selection</td>\n
+  <td>10</td>\n
+  </tal:block>\n
+</tr>\n
+<!--<tr>\n
+  <td>assertText</td>\n
+  <td>//*[@id="listbox_data_line_0"]/div[2]//span[1]</td>\n
+  <td>Title</td>\n
+</tr>-->\n
+<tr>\n
+  <td>assertText</td>\n
+  <td>//*[@id="listbox_data_line_0"]/div[2]//span[1]</td>\n
+  <td>Sort Index</td>\n
+</tr>\n
+<tr>\n
+  <td>assertText</td>\n
+  <td>//*[@id="listbox_data_line_0"]/div[3]//span[1]</td>\n
+  <td>Relative URL</td>\n
+</tr>\n
+\n
+<tr>\n
+  <td>type</td>\n
+  <td>title</td>\n
+  <td>%c%</td>\n
+</tr>\n
+<tr>\n
+  <td>clickAndWait</td>\n
+  <td>dialog_update_button</td>\n
+  <td></td>\n
+</tr>\n
+<!--\n
+<tr>\n
+  <td>assertText</td>\n
+  <td>//*[@id="listbox_data_line_0"]/div[2]//span[1]</td>\n
+  <td>Title</td>\n
+</tr>\n
+-->\n
+<tr>\n
+  <td>assertText</td>\n
+  <td>//*[@id="listbox_data_line_0"]/div[2]//span[1]</td>\n
+  <td>Sort Index</td>\n
+</tr>\n
+<tr>\n
+  <td>assertText</td>\n
+  <td>//*[@id="listbox_data_line_0"]/div[3]//span[1]</td>\n
+  <td>Relative URL</td>\n
+</tr>\n
+</tal:block>\n
 \n
 <tr>\n
   <td>click</td>\n
-  <td>//tr[@id="listbox_data_line_0"]/td[1]/input</td>\n
+  <td>//*[@id=\'listbox_data_line_0\']//input[@type="checkbox"]</td>\n
   <td></td>\n
 </tr>\n
 <tr>\n
diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision
index 8cb9d84396..d7b14a6c47 100644
--- a/bt5/erp5_ui_test/bt/revision
+++ b/bt5/erp5_ui_test/bt/revision
@@ -1 +1 @@
-475
\ No newline at end of file
+476
\ No newline at end of file
-- 
2.30.9