Commit dfdc3dfd authored by Ivan Tyagov's avatar Ivan Tyagov

Set test footer default Web Page.

Publish small set of Web Pages that can be used in further UI tests.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36129 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fde07a08
......@@ -137,6 +137,26 @@
<value> <string>float</string> </value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>layout_max_breadcrumb_length</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>int</string> </value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>layout_footer_reference</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
......@@ -191,6 +211,16 @@
<key> <string>layout_configuration_form_id</string> </key>
<value> <string>WebSection_viewKMMinimalThemeConfiguration</string> </value>
</item>
<item>
<key> <string>layout_footer_reference</string> </key>
<value> <string>minimal_km_footer</string> </value>
</item>
<item>
<key> <string>layout_max_breadcrumb_length</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>layout_navigation_menu_opacity</string> </key>
<value> <float>1.0</float> </value>
......
......@@ -58,6 +58,8 @@
"""\n
Initialize a KM site.\n
"""\n
portal = context.getPortalObject()\n
\n
if site_id not in context.objectIds():\n
km_website = context.newContent(id = site_id, \\\n
title = title, \n
......@@ -87,6 +89,15 @@ if km_preference_id not in portal_preferences.objectIds():\n
preferred_ooodoc_server_port_number = context.Zuite_getConversionServerDict()["oood_port"])\n
km_preference.enable()\n
\n
# publish the test web page so we can use it in tests for setting default WEb Section page\n
for reference in (\'minimal_km_footer\', \'km.web.site.test.page\',):\n
km_page = portal.portal_catalog.getResultValue(portal_type = \'Web Page\',\n
reference = reference)\n
if km_page.getValidationState()==\'draft\':\n
km_page.publish()\n
# clear cache so UI is regenarated\n
portal.portal_caches.clearAllCache()\n
\n
return "Created Successfully."\n
......@@ -138,12 +149,16 @@ return "Created Successfully."\n
<string>title</string>
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
<string>km_website</string>
<string>True</string>
<string>km_preference_id</string>
<string>portal_preferences</string>
<string>_getitem_</string>
<string>km_preference</string>
<string>_getiter_</string>
<string>reference</string>
<string>km_page</string>
</tuple>
</value>
</item>
......
53
\ No newline at end of file
54
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment