diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/check_box_field_zuite.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/check_box_field_zuite.xml new file mode 100644 index 0000000000000000000000000000000000000000..1b0682864eaa1c93a7ee1ac624ba3e991dae82b9 --- /dev/null +++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/check_box_field_zuite.xml @@ -0,0 +1,38 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.Zelenium.zuite</string> + <string>Zuite</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>check_box_field_zuite</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Testing CheckBoxField</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/check_box_field_zuite/testSimpleCheckBoxField.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/check_box_field_zuite/testSimpleCheckBoxField.xml new file mode 100644 index 0000000000000000000000000000000000000000..73783edc72b31fa20051772ea7b6f72391401c7e --- /dev/null +++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/check_box_field_zuite/testSimpleCheckBoxField.xml @@ -0,0 +1,170 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PageTemplates.ZopePageTemplate</string> + <string>ZopePageTemplate</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <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 xmlns:tal="http://xml.zope.org/namespaces/tal"\n + xmlns:metal="http://xml.zope.org/namespaces/metal">\n +<head>\n +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n +<title>Test Simple CheckBoxField</title>\n +</head>\n +<body>\n +<table cellpadding="1" cellspacing="1" border="1">\n +<thead>\n +<tr><td rowspan="1" colspan="3">Test Simple CheckBoxField</td></tr>\n +</thead><tbody>\n +<tal:block metal:use-macro="here/ListBoxZuite_CommonTemplate/macros/init" />\n +<tr>\n +\t<td>open</td>\n +\t<td>/erp5/foo_module/FooModule_createObjects?num:int=1</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>assertTextPresent</td>\n +\t<td>Created Successfully.</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>open</td>\n +\t<td>/erp5/foo_module/ListBoxZuite_waitForActivities</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>assertTextPresent</td>\n +\t<td>Done.</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>open</td>\n +\t<td>/erp5/foo_module/view</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>clickAndWait</td>\n +\t<td>link=Title 0</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>assertTitle</td>\n +\t<td>Foo</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>assertElementNotPresent</td>\n +\t<td>//input[@name="field_my_frozen" and @checked]</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>click</td>\n +\t<td>field_my_frozen</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>clickAndWait</td>\n +\t<td>Base_edit:method</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>verifyTitle</td>\n +\t<td>Foo</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>assertElementPresent</td>\n +\t<td>//input[@name="field_my_frozen" and @checked]</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>click</td>\n +\t<td>field_my_frozen</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>clickAndWait</td>\n +\t<td>Base_edit:method</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>verifyTitle</td>\n +\t<td>Foo</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>assertElementNotPresent</td>\n +\t<td>//input[@name="field_my_frozen" and @checked]</td>\n +\t<td></td>\n +</tr>\n +\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>testSimpleCheckBoxField</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooModule_viewFooList/listbox.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooModule_viewFooList/listbox.xml index 2cdf0c342b929ce8e07c3d45c7fac7f58daaf3c3..7af946aa6abd8e70cd828c17a85e31aa2219924b 100644 --- a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooModule_viewFooList/listbox.xml +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooModule_viewFooList/listbox.xml @@ -431,12 +431,7 @@ <item> <key> <string>meta_types</string> </key> <value> - <list> - <tuple> - <string>ERP5 Delivery</string> - <string>ERP5 Delivery</string> - </tuple> - </list> + <list/> </value> </item> <item> @@ -446,7 +441,12 @@ <item> <key> <string>portal_types</string> </key> <value> - <list/> + <list> + <tuple> + <string>Foo</string> + <string>Foo</string> + </tuple> + </list> </value> </item> <item> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view.xml index 79e0ad476f851d3cc8fece492b5b091860660ac1..34b0618d08b6d7a0180c4dfdb62b96b17e63d631 100644 --- a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view.xml +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view.xml @@ -99,6 +99,7 @@ <list> <string>listbox_title</string> <string>listbox_id</string> + <string>listbox_quantity</string> </list> </value> </item> @@ -117,6 +118,7 @@ <value> <list> <string>my_quantity</string> + <string>my_frozen</string> </list> </value> </item> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/listbox.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/listbox.xml index 13a18fe33aec9c31e70a8c977446c2180435985e..01b9e9ab6e03b8aaa22a038ead52048acb79fc5f 100644 --- a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/listbox.xml +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/listbox.xml @@ -345,6 +345,10 @@ <string>title</string> <string>Title</string> </tuple> + <tuple> + <string>quantity</string> + <string>Quantity</string> + </tuple> </list> </value> </item> @@ -396,6 +400,10 @@ <string>title</string> <string>Title</string> </tuple> + <tuple> + <string>quantity</string> + <string>quantity</string> + </tuple> </list> </value> </item> @@ -437,6 +445,10 @@ <list/> </value> </item> + <item> + <key> <string>page_template</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>portal_types</string> </key> <value> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/listbox_quantity.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/listbox_quantity.xml new file mode 100644 index 0000000000000000000000000000000000000000..f9393141993569decf4708178c92c77dcc32e906 --- /dev/null +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/listbox_quantity.xml @@ -0,0 +1,254 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.StandardFields</string> + <string>FloatField</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>listbox_quantity</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>not_float</string> </key> + <value> <string>You did not enter a floating point number.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>input_style</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>precision</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>input_style</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>precision</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>input_style</string> </key> + <value> <string>-1234.5</string> </value> + </item> + <item> + <key> <string>precision</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Quantity</string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/my_frozen.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/my_frozen.xml new file mode 100644 index 0000000000000000000000000000000000000000..64569ca9448c52d3e4447aea9180502845133ae6 --- /dev/null +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/my_frozen.xml @@ -0,0 +1,174 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.StandardFields</string> + <string>CheckBoxField</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_frozen</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Frozen</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/bt/change_log b/bt5/erp5_ui_test/bt/change_log index 88988898ba08de9dc7c06b4914f1baae858193b5..60320bea0f245ddb8cfc0640072a3e56fb70d086 100644 --- a/bt5/erp5_ui_test/bt/change_log +++ b/bt5/erp5_ui_test/bt/change_log @@ -1,3 +1,7 @@ +2006-07-27 yo +* Add a new suite "check_box_field_zuite". +* Add my_frozen to Foo_view. + 2006-07-26 Kevin * Test form_dialog Action List Rendering. * Extract PortalType_addAction delete part to new PortalType_deleteAction script. diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision index dc7b54ad014355b948b93c4c6c5891da053d5fdd..3e932fe8f188bb6dbcb02afe1306fa6e0b90357b 100644 --- a/bt5/erp5_ui_test/bt/revision +++ b/bt5/erp5_ui_test/bt/revision @@ -1 +1 @@ -33 \ No newline at end of file +34 \ No newline at end of file diff --git a/bt5/erp5_ui_test/bt/template_path_list b/bt5/erp5_ui_test/bt/template_path_list index 714a691a545b62c691c2f1b2c8c85bf6cb341137..3c5535e9b258956fb8eaf94fc310f930337f0e0e 100644 --- a/bt5/erp5_ui_test/bt/template_path_list +++ b/bt5/erp5_ui_test/bt/template_path_list @@ -1,5 +1,7 @@ portal_categories/foo_category/** portal_domains/foo_domain +portal_tests/check_box_field_zuite +portal_tests/check_box_field_zuite/** portal_tests/document_zuite portal_tests/document_zuite/** portal_tests/listbox_zuite