Commit 09133b47 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_crm_renderjs_ui_test: update some tests

to use new CKEditor test macros
parent 79ca6f06
...@@ -165,22 +165,9 @@ ...@@ -165,22 +165,9 @@
<td>field_my_default_destination</td> <td>field_my_default_destination</td>
<td tal:content="python: dialog_content_configuration['field_my_default_destination']"></td> <td tal:content="python: dialog_content_configuration['field_my_default_destination']"></td>
</tr> </tr>
<!-- Wait for ckeditor to be loaded :/ How to inspect inside another iframe? --> <tal:block tal:define="text_content python: dialog_content_configuration['field_your_response_event_text_content']">
<tr> <tal:block metal:use-macro="container/Zuite_CommonTemplateForRenderjsUi/macros/verify_ckeditor_text_content"/>
<td>pause</td> </tal:block>
<td>5000</td>
<td></td>
</tr>
<tr>
<td>storeEval</td>
<td>document.querySelector('#selenium_myiframe').contentWindow.document.querySelector('iframe').contentWindow.document.querySelector('iframe').contentWindow.document.body.innerHTML</td>
<td>field_your_response_event_text_content</td>
</tr>
<tr>
<td>verifyEval</td>
<td>storedVars['field_your_response_event_text_content']</td>
<td tal:content="python: dialog_content_configuration['field_your_response_event_text_content']"></td>
</tr>
<tr> <tr>
<td colspan="3"><p></p></td> <td colspan="3"><p></p></td>
</tr> </tr>
...@@ -226,11 +213,9 @@ ...@@ -226,11 +213,9 @@
<td>field_my_default_destination</td> <td>field_my_default_destination</td>
<td tal:content="python: dialog_content_configuration['field_my_default_destination']"></td> <td tal:content="python: dialog_content_configuration['field_my_default_destination']"></td>
</tr> </tr>
<tr> <tal:block tal:define="text_content python: dialog_content_configuration['field_your_response_event_text_content']">
<td>storeEval</td> <tal:block metal:use-macro="container/Zuite_CommonTemplateForRenderjsUi/macros/type_ckeditor_text_content"/>
<td tal:content="python: 'document.querySelector(\'#selenium_myiframe\').contentWindow.document.querySelector(\'iframe\').contentWindow.document.querySelector(\'iframe\').contentWindow.document.body.innerHTML = \'%s\'' % dialog_content_configuration['field_your_response_event_text_content']"></td> </tal:block>
<td>field_my_text_content</td>
</tr>
<tr> <tr>
<td colspan="3"><p></p></td> <td colspan="3"><p></p></td>
</tr> </tr>
...@@ -282,22 +267,9 @@ ...@@ -282,22 +267,9 @@
<td>field_my_destination_title_list</td> <td>field_my_destination_title_list</td>
<td tal:content="python: response_configuration['field_my_destination_title']"></td> <td tal:content="python: response_configuration['field_my_destination_title']"></td>
</tr> </tr>
<!-- Wait for ckeditor to be loaded :/ How to inspect inside another iframe? --> <tal:block tal:define="text_content python: response_configuration['field_my_text_content']">
<tr> <tal:block metal:use-macro="container/Zuite_CommonTemplateForRenderjsUi/macros/verify_ckeditor_text_content"/>
<td>pause</td> </tal:block>
<td>5000</td>
<td></td>
</tr>
<tr>
<td>storeEval</td>
<td>document.querySelector('#selenium_myiframe').contentWindow.document.querySelector('iframe').contentWindow.document.querySelector('iframe').contentWindow.document.body.innerHTML</td>
<td>field_my_text_content</td>
</tr>
<tr>
<td>verifyEval</td>
<td>storedVars['field_my_text_content']</td>
<td tal:content="python: response_configuration['field_my_text_content']"></td>
</tr>
<tr> <tr>
<td colspan="3"><p></p></td> <td colspan="3"><p></p></td>
</tr> </tr>
......
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