diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testNotExistingSelection.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testNotExistingSelection.xml index f3c6a30a76f6381c080f048b173285f96682f562..d2a5f342290c006bef10dfc660e248256531b7f0 100644 --- a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testNotExistingSelection.xml +++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testNotExistingSelection.xml @@ -52,8 +52,6 @@ </thead><tbody>\n <tal:block metal:use-macro="here/ListBoxZuite_CommonTemplate/macros/init" />\n \n -<!-- XXX TODO: selection foo_line_selection has to be deleted at the beginning of this test.\n -For now, selection too does not allow such deletion, so, this test is only valid once on a new site...-->\n <tr>\n <td>open</td>\n <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>\n @@ -74,6 +72,16 @@ For now, selection too does not allow such deletion, so, this test is only valid <td>Done.</td>\n <td></td>\n </tr>\n +<tr>\n + <td>open</td>\n + <td>${base_url}/Base_checkSelectionExists?selection_name=foo_line_selection</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>assertTextPresent</td>\n + <td></td>\n + <td>False</td>\n +</tr>\n <tr>\n <td>open</td>\n <td>${base_url}/foo_module/0/view</td>\n diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Base_checkSelectionExists.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Base_checkSelectionExists.xml new file mode 100644 index 0000000000000000000000000000000000000000..b16632521948f792d69958e2af7027ffae333c7c --- /dev/null +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Base_checkSelectionExists.xml @@ -0,0 +1,125 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </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_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <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>_body</string> </key> + <value> <string>return str(context.getPortalObject().portal_selections.getSelectionFor(selection_name) is not None)\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>selection_name</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>selection_name</string> + <string>str</string> + <string>_getattr_</string> + <string>context</string> + <string>None</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Base_checkSelectionExists</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision index 473995f402cba2afa276f045ef848fcbddef3b47..5f5c3898347d06e1786840245df578e6f9408c55 100644 --- a/bt5/erp5_ui_test/bt/revision +++ b/bt5/erp5_ui_test/bt/revision @@ -1 +1 @@ -494 \ No newline at end of file +496 \ No newline at end of file