Commit c3f0585c authored by Romain Courteaud's avatar Romain Courteaud

Fixup tests to follow recent changes

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