[Erp5-report] r10365 - in /erp5/trunk/bt5/erp5_ui_test: PathTemplateItem/portal_tests/listb...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Sep 27 16:22:47 CEST 2006


Author: romain
Date: Wed Sep 27 16:22:42 2006
New Revision: 10365

URL: http://svn.erp5.org?rev=10365&view=rev
Log:
Improve testDelete.
Check if the object has a delete_action transition, this transition is called.
Object has to be hidden to the user after the transition.

Added:
    erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/states/deleted.xml
    erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/delete.xml
    erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/delete_action.xml
Modified:
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testDelete.xml
    erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/states/draft.xml
    erp5/trunk/bt5/erp5_ui_test/bt/revision
    erp5/trunk/bt5/erp5_ui_test/bt/template_portal_type_base_category_list

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testDelete.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testDelete.xml?rev=10365&r1=10364&r2=10365&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testDelete.xml (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testDelete.xml Wed Sep 27 16:22:42 2006
@@ -135,7 +135,16 @@
 \t<td>id=listbox_data_line_3</td>\n
 \t<td></td>\n
 </tr>\n
-\n
+<tr>\n
+\t<td>open</td>\n
+\t<td>${base_url}/foo_module/0/getSimulationState</td>\n
+\t<td></td>\n
+</tr>\n
+<tr>\n
+\t<td>assertTextPresent</td>\n
+\t<td>deleted</td>\n
+\t<td></td>\n
+</tr>\n
 </tbody></table>\n
 </body>\n
 </html>\n

Added: erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/states/deleted.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/states/deleted.xml?rev=10365&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/states/deleted.xml (added)
+++ erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/states/deleted.xml Wed Sep 27 16:22:42 2006
@@ -1,0 +1,28 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.DCWorkflow.States</string>
+          <string>StateDefinition</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>deleted</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/states/draft.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/states/draft.xml?rev=10365&r1=10364&r2=10365&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/states/draft.xml (original)
+++ erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/states/draft.xml Wed Sep 27 16:22:42 2006
@@ -34,6 +34,8 @@
             <key> <string>transitions</string> </key>
             <value>
               <tuple>
+                <string>delete</string>
+                <string>delete_action</string>
                 <string>dummy_action</string>
                 <string>dummy_failing_action</string>
               </tuple>

Added: erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/delete.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/delete.xml?rev=10365&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/delete.xml (added)
+++ erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/delete.xml Wed Sep 27 16:22:42 2006
@@ -1,0 +1,70 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.DCWorkflow.Transitions</string>
+          <string>TransitionDefinition</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>actbox_category</string> </key>
+            <value> <string>workflow</string> </value>
+        </item>
+        <item>
+            <key> <string>actbox_name</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>actbox_url</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>after_script_name</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>guard</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>delete</string> </value>
+        </item>
+        <item>
+            <key> <string>new_state_id</string> </key>
+            <value> <string>deleted</string> </value>
+        </item>
+        <item>
+            <key> <string>script_name</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>trigger_type</string> </key>
+            <value> <int>2</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/delete_action.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/delete_action.xml?rev=10365&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/delete_action.xml (added)
+++ erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/delete_action.xml Wed Sep 27 16:22:42 2006
@@ -1,0 +1,70 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.DCWorkflow.Transitions</string>
+          <string>TransitionDefinition</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>actbox_category</string> </key>
+            <value> <string>workflow</string> </value>
+        </item>
+        <item>
+            <key> <string>actbox_name</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>actbox_url</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>after_script_name</string> </key>
+            <value> <string>delete</string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>guard</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>delete_action</string> </value>
+        </item>
+        <item>
+            <key> <string>new_state_id</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>script_name</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>trigger_type</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/bt/revision?rev=10365&r1=10364&r2=10365&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/bt/revision (original)
+++ erp5/trunk/bt5/erp5_ui_test/bt/revision Wed Sep 27 16:22:42 2006
@@ -1,1 +1,1 @@
-89
+92

Modified: erp5/trunk/bt5/erp5_ui_test/bt/template_portal_type_base_category_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/bt/template_portal_type_base_category_list?rev=10365&r1=10364&r2=10365&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/bt/template_portal_type_base_category_list (original)
+++ erp5/trunk/bt5/erp5_ui_test/bt/template_portal_type_base_category_list Wed Sep 27 16:22:42 2006
@@ -1,1 +1,2 @@
+Foo | bar_category
 Foo | foo_category




More information about the Erp5-report mailing list