Commit c332e745 authored by Vincent Pelletier's avatar Vincent Pelletier

Add a test for listbox-related buttons translation.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32797 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 062aa684
<?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 Listbox translations</title>\n
</head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead><tr><td rowspan="1" colspan="3">Test Listbox translations</td></tr></thead>\n
<tbody>\n
\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/portal_skins/erp5_ui_test/Base_createUITestLanguages"></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>New Languages Added</td>\n
<td></td>\n
</tr>\n
\n
<tal:block tal:repeat="param_dict python: [\n
{\'message\': \'Find\', \'translation\': \'ut\', \'language\': \'wo\'},\n
{\'message\': \'Find\', \'translation\': \'ukufumena\', \'language\': \'xh\'},\n
{\'message\': \'Sort\', \'translation\': \'sortw\', \'language\': \'wo\'},\n
{\'message\': \'Sort\', \'translation\': \'sortx\', \'language\': \'xh\'},\n
]">\n
<tr tal:define="dummy python: param_dict.update({\'root\': here.portal_url()})">\n
<td>open</td>\n
<td tal:content="python: \'%(root)s/portal_skins/erp5_ui_test/Base_addUITestTranslation?message=%(message)s&translation=%(translation)s&language=%(language)s\' % param_dict"></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td tal:content="python: \'Translation of %(message)s updated\' % param_dict"/>\n
<td></td>\n
</tr>\n
</tal:block>\n
\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/foo_module/view"/>\n
<td></td>\n
</tr>\n
\n
<tal:block tal:repeat="language python:{\n
\'wo\': {\'find\': \'ut\', \'sort\': \'sortw\'},\n
\'xh\': {\'find\': \'ukufumena\', \'sort\': \'sortx\'},\n
}.items()">\n
\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_language</td>\n
<td tal:content="python: \'value=%s\' % (language[0], )"/>\n
</tr>\n
\n
<tal:block tal:repeat="check python: [{\'class\': x, \'translation\': y} for x, y in language[1].items()]">\n
<tr>\n
<td>verifyText</td>\n
<td tal:content="python: \'xpath=id(\\\'context_bar\\\')//a[@class=\\\'%s\\\']/@title\' % (check[\'class\'], )"/>\n
<td tal:content="check/translation"/>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td tal:content="python: \'xpath=id(\\\'context_bar\\\')//a[@class=\\\'%s\\\']/span[@class=\\\'description\\\']\' % (check[\'class\'], )"/>\n
<td tal:content="check/translation"/>\n
</tr>\n
</tal:block>\n
</tal:block>\n
\n
</tbody>\n
</table>\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>testTranslations</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
530 531
\ 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