[Erp5-report] r23225 - in /erp5/trunk/bt5/erp5_ui_test: PathTemplateItem/portal_tests/docum...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 28 14:21:05 CEST 2008


Author: jerome
Date: Thu Aug 28 14:20:58 2008
New Revision: 23225

URL: http://svn.erp5.org?rev=23225&view=rev
Log:
ListBoxZuite_resetReportSelections: Don't fail if selection does not exist.

testCancelWorkflowTransitionDialog:
testHistory: in reports listbox IDs are prefixed, update test

Modified:
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testCancelWorkflowTransitionDialog.xml
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testHistory.xml
    erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_resetReportSelections.xml
    erp5/trunk/bt5/erp5_ui_test/bt/revision

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testCancelWorkflowTransitionDialog.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testCancelWorkflowTransitionDialog.xml?rev=23225&r1=23224&r2=23225&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testCancelWorkflowTransitionDialog.xml (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testCancelWorkflowTransitionDialog.xml Thu Aug 28 14:20:58 2008
@@ -127,7 +127,7 @@
 </tr>\n
 <tr>\n
   <td>assertText</td>\n
-  <td>listbox_record_number</td>\n
+  <td>x0_listbox_record_number</td>\n
   <td>1 record(s)</td>\n
 </tr>\n
 \n

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testHistory.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testHistory.xml?rev=23225&r1=23224&r2=23225&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testHistory.xml (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testHistory.xml Thu Aug 28 14:20:58 2008
@@ -137,14 +137,14 @@
 </tr>\n
 <tr>\n
   <td>verifyText</td>\n
-  <td>listbox_record_number</td>\n
+  <td>x0_listbox_record_number</td>\n
   <td>4 record(s)</td> <!-- Creation + edited 3 times -->\n
 </tr>\n
 \n
 <!-- First modification --> \n
 <tr>\n
   <td>clickAndWait</td>\n
-  <td>//tr[@id=\'listbox_data_line_1\']/td[4]/a</td>\n
+  <td>//tr[@id=\'x0_listbox_data_line_1\']/td[4]/a</td>\n
   <td></td>\n
 </tr>\n
 <tr>\n
@@ -186,7 +186,7 @@
 </tr>\n
 <tr>\n
   <td>clickAndWait</td>\n
-  <td>//tr[@id=\'listbox_data_line_2\']/td[4]/a</td>\n
+  <td>//tr[@id=\'x0_listbox_data_line_2\']/td[4]/a</td>\n
   <td></td>\n
 </tr>\n
 <tr>\n
@@ -245,7 +245,7 @@
 </tr>\n
 <tr>\n
   <td>clickAndWait</td>\n
-  <td>//tr[@id=\'listbox_data_line_3\']/td[4]/a</td>\n
+  <td>//tr[@id=\'x0_listbox_data_line_3\']/td[4]/a</td>\n
   <td></td>\n
 </tr>\n
 <tr>\n

Modified: erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_resetReportSelections.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_resetReportSelections.xml?rev=23225&r1=23224&r2=23225&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_resetReportSelections.xml (original)
+++ erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_resetReportSelections.xml Thu Aug 28 14:20:58 2008
@@ -67,7 +67,10 @@
             <key> <string>_body</string> </key>
             <value> <string>manage_deleteSelection = context.getPortalObject().portal_selections.manage_deleteSelection\n
 for index in xrange(3):\n
-  manage_deleteSelection(\'x%s_foo_dummy_listbox_selection\' % (index, ))\n
+  try:\n
+    manage_deleteSelection(\'x%s_foo_dummy_listbox_selection\' % (index, ))\n
+  except KeyError:\n
+    pass\n
 return "Done."\n
 </string> </value>
         </item>
@@ -117,6 +120,7 @@
                             <string>_getiter_</string>
                             <string>xrange</string>
                             <string>index</string>
+                            <string>KeyError</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/bt5/erp5_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/bt/revision?rev=23225&r1=23224&r2=23225&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/bt/revision (original)
+++ erp5/trunk/bt5/erp5_ui_test/bt/revision Thu Aug 28 14:20:58 2008
@@ -1,1 +1,1 @@
-380
+381




More information about the Erp5-report mailing list