Commit 809c3479 authored by Yusei Tahara's avatar Yusei Tahara Committed by Matevz Golob

[erp5_accounting_ui_test] Fix test_accounting_transaction_template.

parent 7f6e5a88
...@@ -8,7 +8,22 @@ Test Accounting Transaction Template ...@@ -8,7 +8,22 @@ Test Accounting Transaction Template
</td></tr> </td></tr>
</thead><tbody tal:define="init_method string:AccountingZuite_initializeAccountingTransactionTemplateTest"> </thead><tbody tal:define="init_method string:AccountingZuite_initializeAccountingTransactionTemplateTest">
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/> <tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>
<!-- Delete existing accounting transaction templates -->
<tr>
<td>open</td>
<td>${base_url}/AccountingZuite_deleteAccountingTransactionTemplate</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}</td>
<td></td>
</tr>
<!-- Setup {{{ --> <!-- Setup {{{ -->
<tr> <tr>
<td>selectAndWait</td> <td>selectAndWait</td>
...@@ -97,6 +112,11 @@ Test Accounting Transaction Template ...@@ -97,6 +112,11 @@ Test Accounting Transaction Template
<td>select_action</td> <td>select_action</td>
<td>label=Make a Template</td> <td>label=Make a Template</td>
</tr> </tr>
<tr>
<td>clickAndWait</td>
<td>id=dialog_submit_button</td>
<td></td>
</tr>
<tr> <tr>
<td>open</td> <td>open</td>
<td>${base_url}/Zuite_waitForActivities</td> <td>${base_url}/Zuite_waitForActivities</td>
......
preference = context.portal_preferences.getActivePreference()
preference.manage_delObjects(ids=[temp.getId() for temp in preference.Preference_getTemplateList()])
return 'Done.'
<?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>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountingZuite_deleteAccountingTransactionTemplate</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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