Commit c3f0585c authored by Romain Courteaud's avatar Romain Courteaud

Fixup tests to follow recent changes

See nexedi/erp5@88f24700
and nexedi/erp5@796c3520
parent 044d8f38
......@@ -35,14 +35,14 @@
<tr><td>click</td>
<td>link=Add</td><td></td></tr>
<tr><td>waitForElementPresent</td>
<td>//select[@name='field_your_portal_type']</td><td></td></tr>
<td>//select[@name='field_your_select_action']</td><td></td></tr>
<tr><td>select</td>
<td>//select[@name='field_your_portal_type']</td>
<td>Web Page</td></tr>
<td>//select[@name='field_your_select_action']</td>
<td>label=Web Page</td></tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/submit_dialog" />
<tal:block tal:define="notification_configuration python: {'class': 'success',
'text': 'Document created.'}">
'text': 'Object created.'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" />
</tal:block>
......
......@@ -236,12 +236,12 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
'title': 'Configure Alarms'},
{'title': 'Undo', 'id': 'undo'}],
'object': [],
'object_action': [{'id': 'post_query', 'title': 'Post a Query'},
{'id': 'diff_object_action', 'title': 'Diff Object'}],
'object_action': [{'id': 'diff_object_action', 'title': 'Diff Object'}],
'object_hidden': [{'id': 'view_historical_comparison',
'title': 'View Historical Comparison'},
{'id': 'view_historical_diff',
'title': 'View Historical Diff'}],
'object_jio_action': [{'id': 'post_query', 'title': 'Post a Query'}],
'object_jump': [{'id': 'jump_query', 'title': 'Queries'},
{'id': 'jump_related_object', 'title': 'Related Objects'}],
'object_search': [{'title': 'Search', 'id': 'search'}],
......
......@@ -56,7 +56,7 @@ class TestQueryModule(ERP5TypeTestCase):
def test_post_query_action_visible(self):
# check the action is visible
action_list = self.portal.portal_actions.listFilteredActionsFor(
self.doc).get('object_action')
self.doc).get('object_jio_action')
self.assertEqual(1, len([ai for ai in
action_list if ai['name'] == 'Post a Query']))
......
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