Commit 43e0c7f8 authored by Jérome Perrin's avatar Jérome Perrin

crm_renderjs_ui_test: set preferred text format for "Create Response" test

When the preferred text format is set, the default value of the text editor
for the reply body shows the original message quoted.
parent e2212d6e
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
'field_your_response_event_notification_message': '', 'field_your_response_event_notification_message': '',
'field_your_response_workflow_action': 'send', 'field_your_response_workflow_action': 'send',
'field_my_default_destination': 'person_module/erp5_crm_renderjs_ui_test_agent', 'field_my_default_destination': 'person_module/erp5_crm_renderjs_ui_test_agent',
'field_your_response_event_text_content': '<p><br></p>'}"> 'field_your_response_event_text_content': '<p><br></p><blockquote type=&quot;cite&quot;>Hello, I have an issue</blockquote><p><br></p>'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForCRMRenderjsUi/macros/check_create_response_dialog_content" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForCRMRenderjsUi/macros/check_create_response_dialog_content" />
</tal:block> </tal:block>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
'field_your_response_event_notification_message': '', 'field_your_response_event_notification_message': '',
'field_your_response_workflow_action': 'send', 'field_your_response_workflow_action': 'send',
'field_my_default_destination': 'person_module/erp5_crm_renderjs_ui_test_agent', 'field_my_default_destination': 'person_module/erp5_crm_renderjs_ui_test_agent',
'field_your_response_event_text_content': '<p><br></p>'}"> 'field_your_response_event_text_content': '<p><br></p><blockquote type=&quot;cite&quot;>Hello, I have an issue</blockquote><p><br></p>'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForCRMRenderjsUi/macros/check_create_response_dialog_content" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForCRMRenderjsUi/macros/check_create_response_dialog_content" />
</tal:block> </tal:block>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
'field_your_response_event_notification_message': '', 'field_your_response_event_notification_message': '',
'field_your_response_workflow_action': 'send', 'field_your_response_workflow_action': 'send',
'field_my_default_destination': 'person_module/erp5_crm_renderjs_ui_test_agent', 'field_my_default_destination': 'person_module/erp5_crm_renderjs_ui_test_agent',
'field_your_response_event_text_content': '<p><br></p>'}"> 'field_your_response_event_text_content': '<p><br></p><blockquote type=&quot;cite&quot;>Hello, I have an issue</blockquote><p><br></p>'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForCRMRenderjsUi/macros/check_create_response_dialog_content" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForCRMRenderjsUi/macros/check_create_response_dialog_content" />
</tal:block> </tal:block>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
'field_your_response_event_notification_message': '', 'field_your_response_event_notification_message': '',
'field_your_response_workflow_action': 'send', 'field_your_response_workflow_action': 'send',
'field_my_default_destination': 'person_module/erp5_crm_renderjs_ui_test_agent', 'field_my_default_destination': 'person_module/erp5_crm_renderjs_ui_test_agent',
'field_your_response_event_text_content': '<p><br></p>'}"> 'field_your_response_event_text_content': '<p><br></p><blockquote type=&quot;cite&quot;>Hello, I have an issue</blockquote><p><br></p>'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForCRMRenderjsUi/macros/check_create_response_dialog_content" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForCRMRenderjsUi/macros/check_create_response_dialog_content" />
</tal:block> </tal:block>
......
...@@ -2,5 +2,6 @@ context.Zuite_setPreference('') ...@@ -2,5 +2,6 @@ context.Zuite_setPreference('')
pref = context.portal_preferences.erp5_ui_test_preference pref = context.portal_preferences.erp5_ui_test_preference
pref.setPreferredTextEditor('fck_editor') pref.setPreferredTextEditor('fck_editor')
pref.setPreferredTextFormat('text/html')
return 'Set CRM Preference Successfully.' return 'Set CRM Preference Successfully.'
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