[Erp5-report] r38361 aurel - in /erp5/trunk/bt5/erp5_ui_test: PathTemplateItem/portal_tests...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Sep 14 15:36:17 CEST 2010
Author: aurel
Date: Tue Sep 14 15:36:15 2010
New Revision: 38361
URL: http://svn.erp5.org?rev=38361&view=rev
Log:
add a test for relation field with required property - see bug #1852
Added:
erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleRequiredRelationField.xml
Modified:
erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleMultiRelationField.xml
erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewRelationField/listbox.xml
erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewRelationField/my_foo_category_title.xml
erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewRelationField/my_title.xml
erp5/trunk/bt5/erp5_ui_test/bt/revision
Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleMultiRelationField.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleMultiRelationField.xml?rev=38361&r1=38360&r2=38361&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleMultiRelationField.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleMultiRelationField.xml [utf8] Tue Sep 14 15:36:15 2010
@@ -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>
@@ -85,7 +82,7 @@ to set categories</td></tr>\n
<tr>\n
<td>type</td>\n
<td>field_my_category_list</td>\n
- <td>bar_category/foo_module/0<br />bar_category/foo_module/1</td>\n
+ <td>bar_category/foo_module/0<br />bar_category/foo_module/1<br />foo_category/a/a1</td>\n
<td></td>\n
</tr>\n
<tr>\n
Added: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleRequiredRelationField.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleRequiredRelationField.xml?rev=38361&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleRequiredRelationField.xml (added)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleRequiredRelationField.xml [utf8] Tue Sep 14 15:36:15 2010
@@ -0,0 +1,212 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>_bind_names</string> </key>
+ <value>
+ <object>
+ <klass>
+ <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+ </klass>
+ <tuple/>
+ <state>
+ <dictionary>
+ <item>
+ <key> <string>_asgns</string> </key>
+ <value>
+ <dictionary>
+ <item>
+ <key> <string>name_subpath</string> </key>
+ <value> <string>traverse_subpath</string> </value>
+ </item>
+ </dictionary>
+ </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>_text</string> </key>
+ <value> <string encoding="cdata"><![CDATA[
+
+<html>\n
+<head>\n
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n
+<title>Test Simple Relation Field, using metadata tab to set categories</title>\n
+</head>\n
+<body>\n
+<table cellpadding="1" cellspacing="1" border="1">\n
+<thead>\n
+<tr><td rowspan="1" colspan="3">Test Simple Relation Field, using metadata tab\n
+to set categories</td></tr>\n
+</thead><tbody>\n
+<tal:block\n
+metal:use-macro="here/RelationFieldZuite_CommonTemplate/macros/init"\n
+/>\n
+ <tr>\n
+ <td>open</td>\n
+ <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>\n
+ <td></td>\n
+</tr>\n
+ <tr>\n
+ <td>open</td>\n
+ <td>${base_url}/foo_module/ListBoxZuite_reset</td>\n
+ <td></td>\n
+ </tr>\n
+ <tr>\n
+ <td>assertTextPresent</td>\n
+ <td>Reset Successfully.</td>\n
+ <td></td>\n
+ </tr>\n
+ <tr>\n
+ <td>open</td>\n
+ <td>${base_url}/foo_module/Zuite_waitForActivities</td>\n
+ <td></td>\n
+ </tr>\n
+ <tr>\n
+ <td>assertTextPresent</td>\n
+ <td>Done.</td>\n
+ <td></td>\n
+ </tr>\n
+ \n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>assertTextPresent</td>\n
+ <td>Created Successfully.</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/foo_module/Zuite_waitForActivities</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>assertTextPresent</td>\n
+ <td>Done.</td>\n
+ <td></td>\n
+</tr>\n
+\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/foo_module/0/Foo_viewRelationField</td>\n
+ <td></td>\n
+</tr>\n
+\n
+<tr>\n
+ <td>type</td>\n
+ <td>field_my_title</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>type</td>\n
+ <td>field_my_foo_category_title</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>//input[preceding-sibling::input[@name="field_my_foo_category_title"]][@value=\'update...\']</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyPortalStatusMessage</td>\n
+ <td>Please select one object.</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>type</td>\n
+ <td>title</td>\n
+ <td>a</td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>id=dialog_update_button</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>click</td>\n
+ <td>//*[@class=\'listbox-data-line-0 DataA\']//input[@type="checkbox"]</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>id=dialog_submit_button</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>assertElementPresent</td>\n
+ <td>//input[@name="field_my_foo_category_title"][@value!=""]</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>assertText</td>\n
+ <td>//input[@name="field_my_foo_category_title"]</td>\n
+ <td>a</td>\n
+</tr>\n
+<tr>\n
+ <td>assertTextPresent</td>\n
+ <td>Input is required but no input given.</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>type</td>\n
+ <td>field_my_title</td>\n
+ <td>Aa</td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>//button[@title=\'Save\']</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyPortalStatusMessage</td>\n
+ <td>Data updated.</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>assertTextNotPresent</td>\n
+ <td>Input is required but no input given.</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>assertText</td>\n
+ <td>//input[@name="field_my_foo_category_title"]</td>\n
+ <td>a</td>\n
+</tr>\n
+</tbody></table>\n
+</body>\n
+</html>\n
+
+
+]]></string> </value>
+ </item>
+ <item>
+ <key> <string>content_type</string> </key>
+ <value> <string>text/html</string> </value>
+ </item>
+ <item>
+ <key> <string>expand</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>testSimpleRequiredRelationField</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewRelationField/listbox.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewRelationField/listbox.xml?rev=38361&r1=38360&r2=38361&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewRelationField/listbox.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewRelationField/listbox.xml [utf8] Tue Sep 14 15:36:15 2010
@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
- <tuple>
- <global name="ListBox" module="Products.ERP5Form.ListBox"/>
- <tuple/>
- </tuple>
+ <global name="ListBox" module="Products.ERP5Form.ListBox"/>
</pickle>
<pickle>
<dictionary>
@@ -366,6 +363,10 @@
<value> <string></string> </value>
</item>
<item>
+ <key> <string>default_display_style</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
<key> <string>default_params</string> </key>
<value>
<list/>
@@ -376,6 +377,12 @@
<value> <string></string> </value>
</item>
<item>
+ <key> <string>display_style_list</string> </key>
+ <value>
+ <list/>
+ </value>
+ </item>
+ <item>
<key> <string>domain_root_list</string> </key>
<value>
<list/>
@@ -423,10 +430,18 @@
</value>
</item>
<item>
+ <key> <string>global_search_column</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
+ <key> <string>hide_rows_on_no_search_criterion</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
<key> <string>lines</string> </key>
<value> <int>3</int> </value>
</item>
@@ -447,6 +462,10 @@
</value>
</item>
<item>
+ <key> <string>page_navigation_mode</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
<key> <string>page_template</string> </key>
<value> <string></string> </value>
</item>
@@ -467,6 +486,10 @@
<value> <int>0</int> </value>
</item>
<item>
+ <key> <string>row_css_method</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
<key> <string>search</string> </key>
<value> <int>0</int> </value>
</item>
@@ -512,6 +535,12 @@
<value> <string></string> </value>
</item>
<item>
+ <key> <string>style_columns</string> </key>
+ <value>
+ <list/>
+ </value>
+ </item>
+ <item>
<key> <string>title</string> </key>
<value> <string>Foo Lines</string> </value>
</item>
@@ -535,10 +564,7 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
- <tuple>
- <global name="Method" module="Products.Formulator.MethodField"/>
- <tuple/>
- </tuple>
+ <global name="Method" module="Products.Formulator.MethodField"/>
</pickle>
<pickle>
<dictionary>
Modified: erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewRelationField/my_foo_category_title.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewRelationField/my_foo_category_title.xml?rev=38361&r1=38360&r2=38361&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewRelationField/my_foo_category_title.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewRelationField/my_foo_category_title.xml [utf8] Tue Sep 14 15:36:15 2010
@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
- <tuple>
- <global name="RelationStringField" module="Products.ERP5Form.RelationField"/>
- <tuple/>
- </tuple>
+ <global name="RelationStringField" module="Products.ERP5Form.RelationField"/>
</pickle>
<pickle>
<dictionary>
@@ -480,12 +477,22 @@
</value>
</item>
<item>
+ <key> <string>proxy_listbox_ids</string> </key>
+ <value>
+ <list/>
+ </value>
+ </item>
+ <item>
+ <key> <string>relation_form_id</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
<key> <string>relation_setter_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
- <value> <int>0</int> </value>
+ <value> <int>1</int> </value>
</item>
<item>
<key> <string>size</string> </key>
Modified: erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewRelationField/my_title.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewRelationField/my_title.xml?rev=38361&r1=38360&r2=38361&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewRelationField/my_title.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewRelationField/my_title.xml [utf8] Tue Sep 14 15:36:15 2010
@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
- <tuple>
- <global name="StringField" module="Products.Formulator.StandardFields"/>
- <tuple/>
- </tuple>
+ <global name="StringField" module="Products.Formulator.StandardFields"/>
</pickle>
<pickle>
<dictionary>
@@ -236,7 +233,7 @@
</item>
<item>
<key> <string>required</string> </key>
- <value> <int>0</int> </value>
+ <value> <int>1</int> </value>
</item>
<item>
<key> <string>title</string> </key>
Modified: erp5/trunk/bt5/erp5_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/bt/revision?rev=38361&r1=38360&r2=38361&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/bt/revision [utf8] Tue Sep 14 15:36:15 2010
@@ -1 +1 @@
-612
\ No newline at end of file
+613
\ No newline at end of file
More information about the Erp5-report
mailing list