Commit e8abf43a authored by Mame Coumba Sall's avatar Mame Coumba Sall

2009-04-01 mame

*add new test to test previous, next selection in website

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26232 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a727a100
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</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 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 Login Form</title>\n
</head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">Test Login Form</td></tr>\n
</thead><tbody>\n
<tal:block metal:use-macro="here/Zuite_erp5_web_common/macros/init" />\n
<tr>\n
<td>open</td>\n
<td>${base_url}/web_site_module/WebSiteModule_createTestSite/?id=test_web_site&amp;title=Test Web Site</td>\n
<td></td>\n
<td>Create a new site</td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Created Successfully.</td>\n
<td></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/web_site_module/Zuite_waitForActivities</td>\n
<td></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/web_site_module/view?ignore_layout=1</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]/a</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>field_my_available_language_set</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@name=\'Base_edit:method\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
\n
<td>${base_url}/web_site_module/WebSiteModule_createTestSite/?id=test_web_site_2\n
&amp;title=Test Web Site II</td>\n
<td></td>\n
<td>Create a second site</td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Created Successfully.</td>\n
<td></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/web_site_module/Zuite_waitForActivities</td>\n
<td></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/web_site_module/view?ignore_layout=1</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]/a</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>field_my_available_language_set</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@name=\'Base_edit:method\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//div[@id=\'context_bar\']/span[4]/span[1]/a[2]/span[1]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTitle</td>\n
<td>Web Site - test_web_site | ERP5</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/web_site_module/view?ignore_layout=1</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[3]/a</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//div[@id=\'context_bar\']/span[4]/span[1]/a[4]/span[1]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTitle</td>\n
<td>Web Site - test_web_site_2 | ERP5</td>\n
<td></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>testPreviousNextSelectionInWebsite</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>context.newContent(id=\'test_web_site\', title=\'Test Web Site\', portal_type=\'Web Site\')\n <value> <string>context.newContent(id=id, title=id, portal_type=\'Web Site\')\n
return "Created Successfully."\n return "Created Successfully."\n
</string> </value> </string> </value>
</item> </item>
...@@ -65,7 +65,7 @@ return "Created Successfully."\n ...@@ -65,7 +65,7 @@ return "Created Successfully."\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string>id=None, title=None</string> </value>
</item> </item>
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
...@@ -93,12 +93,14 @@ return "Created Successfully."\n ...@@ -93,12 +93,14 @@ return "Created Successfully."\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>2</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>id</string>
<string>title</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
</tuple> </tuple>
...@@ -112,7 +114,10 @@ return "Created Successfully."\n ...@@ -112,7 +114,10 @@ return "Created Successfully."\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<tuple>
<none/>
<none/> <none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -59,6 +59,9 @@ ...@@ -59,6 +59,9 @@
if context.has_key(\'test_web_site\'):\n if context.has_key(\'test_web_site\'):\n
context.manage_delObjects(\'test_web_site\')\n context.manage_delObjects(\'test_web_site\')\n
\n \n
if context.has_key(\'test_web_site_2\'):\n
context.manage_delObjects(\'test_web_site_2\')\n
\n
# Create new users\n # Create new users\n
if not context.person_module.has_key(\'test_webmaster\'):\n if not context.person_module.has_key(\'test_webmaster\'):\n
context.person_module.newContent(id=\'test_webmaster\', portal_type=\'Person\')\n context.person_module.newContent(id=\'test_webmaster\', portal_type=\'Person\')\n
......
7 8
\ No newline at end of file \ 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