Commit 9f685f25 authored by Ivan Tyagov's avatar Ivan Tyagov

Initial import of gadgets UI tests.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38491 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bfbbde21
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Zuite" module="Products.Zelenium.zuite"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>gadgets_zuite</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Gadgets</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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 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>Express Access Tab</title>\n
</head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">Gadget System Integration</td></tr>\n
</thead><tbody>\n
\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/init"> init</span>\n
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/Zuite_setupGadgets</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Done</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities"> Wait for activities</span>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Hide tabs</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Add tab</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Add gadgets</td>\n
<td></td>\n
</tr>\n
<!-- check adding gadgets -->\n
<tr>\n
<td>click</td>\n
<td>add_new_tab_dialog_link</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>new_pad_title</td>\n
<td>test tab XXXXX</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//div[@id="add_new_tab_dialog"]/button[2]</td>\n
<td></td>\n
</tr>\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities"> Wait for activities</span>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Your tab is empty.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Please use link above (\'Add gadget\') to prepare it yourself.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Add gadgets</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Gadgets</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@class="listbox-check-all"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>dialog_submit_button</td>\n
<td></td>\n
</tr>\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities"> Wait for activities</span>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Google Calendar </td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>ERP5 Worklists</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Feed Reader</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Persons</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Documentation</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Clock</td>\n
<td></td>\n
</tr>\n
<!-- Renaming pad -->\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//span[@title="Settings"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>new_knowledge_pad_title</td>\n
<td>ZZZZZZZZZZ</td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//button[@id="rename_tab_dialog_rename_button"]</td>\n
<td></td>\n
</tr>\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities"> Wait for activities</span>\n
\n
<!-- Test removing pad -->\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//span[@title="Remove"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertConfirmation</td>\n
<td>Are you sure you want to remove this pad from your home?</td>\n
<td></td>\n
</tr>\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities"> Wait for activities</span>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextNotPresent</td>\n
<td>ZZZZZZZZZZ</td>\n
<td></td>\n
</tr>\n
\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities"> Wait for activities</span>\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>testBasicGadgetSystem</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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 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>Express Access Tab</title>\n
</head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">Gadget edit preferences</td></tr>\n
</thead><tbody>\n
\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/init">init</span>\n
\n
<!--<tr>\n
<td>store</td>\n
<td tal:content="python: here.portal_preferences.getPreferredWitchToolServerRoot()"></td>\n
<td>remote_nexedi_erp5_instance_id</td>\n
</tr>\n
<tr>\n
<td>store</td>\n
<td>${base_url}/portal_wizard/proxy/${remote_nexedi_erp5_instance_id}/web_site_module/yuna_kb</td>\n
<td>km_base_url</td>\n
</tr>\n
<tr>\n
<td>store</td>\n
<td>erp5_site_selected_tab=express_support_tab</td>\n
<td>base_jump</td>\n
</tr>-->\n
<!-- Set longer timeout. -->\n
<tr>\n
<td>setTimeout</td>\n
<td>180000</td>\n
<td></td>\n
</tr>\n
\n
<!--<span metal:use-macro="container/ExpressZuite_viewTestMacroLibrary/macros/login_as_express_user"> Switch to Express User</span>-->\n
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities">\n
Wait for activities</span>\n
\n
<!-- Add to pad few gadgets -->\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/Zuite_AddGadgetToActivePad?gadget_relative_url=portal_gadgets/google_calendar</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>storeText</td>\n
<td>transition_message</td>\n
<td>calendar_box_url</td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/Zuite_getGadgetIdByRelativeUrl?knowledge_box_url=${calendar_box_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>storeText</td>\n
<td>transition_message</td>\n
<td>calendar_box_id</td>\n
</tr>\n
\n
<!-- Clock -->\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/Zuite_AddGadgetToActivePad?gadget_relative_url=portal_gadgets/clock</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>storeText</td>\n
<td>transition_message</td>\n
<td>clock_box_url</td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/Zuite_getGadgetIdByRelativeUrl?knowledge_box_url=${clock_box_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>storeText</td>\n
<td>transition_message</td>\n
<td>clock_box_id</td>\n
</tr>\n
\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities">Wait for activities</span>\n
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//div[@id=\'${clock_box_id}\']/h3/span/a[2]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>gadget_preference_${clock_box_id}_field_my_preferred_header_title</td>\n
<td>Clock XXXXX</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@type=\'submit\' and @onclick=&quot;submitSynchronousGadgetPreferenceForm(\'gadget_preference_${clock_box_id}_field\',\'${clock_box_url}\')&quot;]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Preference updated.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Clock XXXXX</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//div[@id=\'${calendar_box_id}\']/h3/span/a[2]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>gadget_preference_${calendar_box_id}_field_my_preferred_header_title</td>\n
<td>Calendar YYYYY</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@type=\'submit\' and @onclick=&quot;submitSynchronousGadgetPreferenceForm(\'gadget_preference_${calendar_box_id}_field\',\'${calendar_box_url}\')&quot;]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Preference updated.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Calendar YYYYY</td>\n
<td></td>\n
</tr>\n
\n
\n
\n
<!-- Test deleting a gadget -->\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities">\n
Wait for activities</span>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//div[@id=\'${calendar_box_id}\']/h3/span/a[1]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertConfirmation</td>\n
<td>Are you sure you want to remove this gadget from your personalized page?</td>\n
<td></td>\n
</tr>\n
\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities">\n
Wait for activities</span>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/view</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>verifyTextNotPresent</td>\n
<td>Calendar YYYYY</td>\n
<td></td>\n
</tr>\n
\n
<!--<span metal:use-macro="container/ExpressZuite_viewTestMacroLibrary/macros/login_as_functional_test_user"> Switch to Functional Test User</span>\n
\n
<span metal:use-macro="container/ExpressZuite_viewTestMacroLibrary/macros/restore_test_environment">restore</span>-->\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>testGadgetEditPreferences</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5_knowledge_pad_ui_test</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</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># Publish all knowledge pad gadgets\n
for gadget in context.portal_gadgets.objectValues():\n
if gadget.getValidationState() == \'invisible\':\n
gadget.visible()\n
gadget.public()\n
\n
print "Done"\n
return printed\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</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>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_print_</string>
<string>_print</string>
<string>_getiter_</string>
<string>_getattr_</string>
<string>context</string>
<string>gadget</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>Zuite_setupGadgets</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2010-09-2o Ivan
* Initial import
\ No newline at end of file
Nexedi SA 2007
\ No newline at end of file
erp5_ui_test
\ No newline at end of file
A test which test gadgets ERP5 user interface
\ No newline at end of file
GPL
\ No newline at end of file
portal_tests/gadgets_zuite
portal_tests/gadgets_zuite/**
\ No newline at end of file
erp5_knowledge_pad_ui_test
\ No newline at end of file
erp5_knowledge_pad_ui_test
\ 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