Commit 1cd18b7e authored by Sven Franck's avatar Sven Franck

erp5_corporate_identity_test: foreground and truc

parent 56fcb41c
......@@ -2,60 +2,87 @@
xmlns:metal="http://xml.zope.org/namespaces/metal">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test and Update Test Files for LETTER Template</title>
<title>Test Local Property with List Fields</title>
</head>
<body>
<!--
UPDATE comparison files for LIVE TESTS | DON'T RUN AUTOMATICALLY
(else tests will always pass...)
This Zuite updates all test files (diff-html, pdfs, bmps) used in the LiveTests
based on the example web pages included in this bt5. Run this zuite after making
changes to the bt5 which will alter their look to automatically update all files
(else you need to do it by hand). This also means: DON'T RUN THIS AUTOMATICALLY,
because it will also update all test files with any errors you make, causing
liveTests to always pass (comparing wrong rendering to wrong test file).
Help:
http://www.seleniumhq.org/docs/02_selenium_ide.jsp#selenium-commands-selenese
http://seleniummaster.com/sitecontent/index.php/introduction-to-selenium-automation/selenium-ide/114-selenium-ide-complete-list-of-commands
Note:
# make sure to set editor to plain text in (erp5 test preferences)
-->
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test Letter Template UI</td></tr>
</thead>
<tbody>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<tal:block tal:define="portal here/portal_url/getPortalObject;
caller python: getattr(context, 'Zuite_setSkipSave', None);
no_file_update python: caller() if caller is not None else True">
<tr>
<td>open</td>
<td>${base_url}/bar_module/ListBoxZuite_reset</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Reset Successfully.</td>
<td></td>
</tr>
<tr><td rowspan="1" colspan="3">Test Local Property with List Fields</td></tr>
</thead><tbody>
<tal:block metal:use-macro="here/ListBoxZuite_CommonTemplate/macros/init" />
<tr>
<td>open</td>
<td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Created Successfully.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/foo_module/Zuite_waitForActivities</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/foo_module/0/Foo_view</td>
<td></td>
</tr>
<tr>
<td>verifyValue</td>
<td>field_my_local_title</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//select[@name='field_my_local_title']</td>
<td></td>
</tr>
<tr>
<td>assertSelected</td>
<td>//select[@name='field_my_local_title']</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>//select[@name='field_my_local_title']</td>
<td>label=First title</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//button[@title='Save']</td>
<td></td>
</tr>
<tr>
<td>verifyPortalStatusMessage</td>
<td>Data updated.</td>
<td></td>
</tr>
<tr>
<td>assertSelected</td>
<td>//select[@name='field_my_local_title']</td>
<td>First title</td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/foo_module/0/Foo_getLocalTitle</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>First title</td>
<td></td>
</tr>
</tal:block>
<tr>
<td>open</td>
<td>${base_url}/bar_module/ListBoxZuite_reset</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Reset Successfully.</td>
<td></td>
</tr>
</tbody>
</table>
</tbody></table>
</body>
</html>
\ No newline at end of file
......@@ -29,6 +29,7 @@ import unittest
from Products.ERP5Type.tests.ERP5TypeFunctionalTestCase import ERP5TypeFunctionalTestCase
class TestFunctionalCorporateIdentityTemplateList(ERP5TypeFunctionalTestCase):
foreground = 0
run_only = "template_test_zuite_dummy"
def getBusinessTemplateList(self):
......
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