Commit 161d3f23 authored by Mame Coumba Sall's avatar Mame Coumba Sall

Add new interface test for translation.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14269 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4d134d56
<?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>_owner</string> </key>
<value>
<none/>
</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 form_dialog Action List Rendering</title>\n
</head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">Test Dialog Button Translation</td></tr>\n
</thead><tbody>\n
<!--\n
=== PART 0 ===\n
This part delete the second action if present, in order to reach the initial state\n
of this test. This is required to re-run the test in the same erp5 instance.\n
-->\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/portal_types/Localizer/erp5_ui/Base_createUITestLanguages"></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/portal_types/Localizer/erp5_ui/Base_addUITestTranslation?message=Search Foos&translation_1=Look for Foos&translation_2=Searching Foos"></td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/portal_types/Foo%20Module/PortalType_deleteAction?id=search2">Delete second action if exist</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/foo_module/FooModule_viewSearchDialog?dialog_category=object_search">/erp5/foo_module/foo_module/FooModule_viewSearchDialog?dialog_category=object_search</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>//select[@id="dialog_selector"]</td>\n
<td></td>\n
</tr>\n
<!--\n
=== PART 2 ===\n
This part test that a <select> input is rendered when more than one action exist.\n
-->\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/portal_types/Foo%20Module/PortalType_addAction?id=search2&name=Search2&category=object_search&action=string:%24{object_url}/FooModule_viewSearchDialog">Create a second dummy search action to test the dynamic creation of select action drop-down list</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/foo_module/FooModule_viewSearchDialog?dialog_category=object_search">/erp5/foo_module/foo_module/FooModule_viewSearchDialog?dialog_category=object_search</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//select[@id="dialog_selector"]/option[1]</td>\n
<td>Search</td>\n
</tr>\n
\n
<tr>\n
\t<td>select</td>\n
\t<td>select_language</td>\n
\t<td>label=English</td>\n
</tr>\n
\n
<tr>\n
\t<td>verifyValue</td>\n
\t<td>dialog_submit_button</td>\n
\t<td>Search Foos</td>\n
</tr>\n
<tr>\n
\t<td>selectAndWait</td>\n
\t<td>select_language</td>\n
\t<td>label=Test_language_1</td>\n
</tr>\n
<tr>\n
\t<td>verifyValue</td>\n
\t<td>dialog_submit_button</td>\n
\t<td>Look for Foos</td>\n
</tr>\n
<tr>\n
\t<td>selectAndWait</td>\n
\t<td>select_language</td>\n
\t<td>label=Test_language_2</td>\n
</tr>\n
<tr>\n
\t<td>verifyValue</td>\n
\t<td>dialog_submit_button</td>\n
\t<td>Searching Foos</td>\n
</tr>\n
<tr>\n
\t<td>select</td>\n
\t<td>select_language</td>\n
\t<td>label=English</td>\n
</tr>\n
\n
\n
</body>\n
</html>
]]></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>testDialogButtonTranslated</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
191 194
\ 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