From 2df1b0040ae10480df69a7560d90955c1531552a Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Tue, 7 Sep 2010 12:28:54 +0000
Subject: [PATCH] Stats column uses no longer Ids but CSS classes.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38174 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../listbox_zuite/testConfigure.xml           | 12 +++++------
 .../listbox_zuite/testStatColumns.xml         | 21 ++++++++-----------
 bt5/erp5_ui_test/bt/revision                  |  2 +-
 3 files changed, 16 insertions(+), 19 deletions(-)

diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testConfigure.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testConfigure.xml
index c35b3814e8..bfc91c1d3a 100644
--- a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testConfigure.xml
+++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testConfigure.xml
@@ -137,17 +137,17 @@
 </tr>\n
 <tr>\n
   <td>verifyText</td>\n
-  <td>//tr[@id="listbox_stat_line"]/td[2]</td>\n
+  <td>//tr[@class="listbox_stat_line"]/td[2]</td>\n
   <td></td>\n
 </tr>\n
 <tr>\n
   <td>verifyText</td>\n
-  <td>//tr[@id="listbox_stat_line"]/td[3]</td>\n
+  <td>//tr[@class="listbox_stat_line"]/td[3]</td>\n
   <td></td>\n
 </tr>\n
 <tr>\n
   <td>verifyText</td>\n
-  <td>//tr[@id="listbox_stat_line"]/td[4]</td>\n
+  <td>//tr[@class="listbox_stat_line"]/td[4]</td>\n
   <td></td>\n
 </tr>\n
 <!-- Go to the configure dialog -->\n
@@ -234,17 +234,17 @@
 </tr>\n
 <tr>\n
   <td>verifyText</td>\n
-  <td>//tr[@id="listbox_stat_line"]/td[2]</td>\n
+  <td>//tr[@class="listbox_stat_line"]/td[2]</td>\n
   <td>10</td>\n
 </tr>\n
 <tr>\n
   <td>verifyText</td>\n
-  <td>//tr[@id="listbox_stat_line"]/td[3]</td>\n
+  <td>//tr[@class="listbox_stat_line"]/td[3]</td>\n
   <td>10</td>\n
 </tr>\n
 <tr>\n
   <td>verifyElementNotPresent</td>\n
-  <td>//tr[@id="listbox_stat_line"]/td[4]</td>\n
+  <td>//tr[@class="listbox_stat_line"]/td[4]</td>\n
   <td></td>\n
 </tr>\n
 </tal:block>\n
diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testStatColumns.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testStatColumns.xml
index 7e1d5188f8..4117c798a9 100644
--- a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testStatColumns.xml
+++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testStatColumns.xml
@@ -2,10 +2,7 @@
 <ZopeData>
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
-      <tuple>
-        <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
-        <tuple/>
-      </tuple>
+      <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
     </pickle>
     <pickle>
       <dictionary>
@@ -89,29 +86,29 @@
 <tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
 <tr>\n
   <td>verifyText</td>\n
-  <td>//tr[@id="listbox_stat_line"]/td[2]</td>\n
+  <td>//tr[@class="listbox_stat_line"]/td[2]</td>\n
   <td>foo_module</td>\n
 </tr>\n
 <tr>\n
   <td>verifyText</td>\n
-  <td>//tr[@id="listbox_stat_line"]/td[3]</td>\n
+  <td>//tr[@class="listbox_stat_line"]/td[3]</td>\n
   <td>Foos</td>\n
 </tr>\n
 <tr>\n
   <td>verifyText</td>\n
-  <td>//tr[@id="listbox_stat_line"]/td[4]</td>\n
+  <td>//tr[@class="listbox_stat_line"]/td[4]</td>\n
   <td></td>\n
 </tr>\n
 </tal:block>\n
 <tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
 <tr>\n
   <td>verifyText</td>\n
-  <td>//*[@id="listbox_stat_line"]/div[2]//span[3]</td>\n
+  <td>//*[@class="listbox_stat_line"]/div[2]//span[3]</td>\n
   <td>foo_module</td>\n
 </tr>\n
 <tr>\n
   <td>verifyText</td>\n
-  <td>//*[@id="listbox_stat_line"]/div[3]//span[3]</td>\n
+  <td>//*[@class="listbox_stat_line"]/div[3]//span[3]</td>\n
   <td>Foos</td>\n
 </tr>\n
 </tal:block>\n
@@ -125,17 +122,17 @@
 <tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
 <tr>\n
   <td>verifyText</td>\n
-  <td>//tr[@id="listbox_stat_line"]/td[2]</td>\n
+  <td>//tr[@class="listbox_stat_line"]/td[2]</td>\n
   <td></td>\n
 </tr>\n
 <tr>\n
   <td>verifyText</td>\n
-  <td>//tr[@id="listbox_stat_line"]/td[4]</td>\n
+  <td>//tr[@class="listbox_stat_line"]/td[4]</td>\n
   <td></td>\n
 </tr>\n
 <tr>\n
   <td>verifyText</td>\n
-  <td>//tr[@id="listbox_stat_line"]/td[3]</td>\n
+  <td>//tr[@class="listbox_stat_line"]/td[3]</td>\n
   <td>1 234.5</td>\n
 </tr>\n
 </tal:block>\n
diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision
index e88ff725aa..fb4abc5b58 100644
--- a/bt5/erp5_ui_test/bt/revision
+++ b/bt5/erp5_ui_test/bt/revision
@@ -1 +1 @@
-602
\ No newline at end of file
+603
\ No newline at end of file
-- 
2.30.9