Commit d64b8b83 authored by Jérome Perrin's avatar Jérome Perrin

fixup! erp5_core: use the html_viewer when the field is non editable

update test after c3eb0b30 , because non editable editor now render HTML
parent dfb15874
......@@ -88,16 +88,9 @@
</tal:block>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tr><td>waitForElementPresent</td>
<td>//div[@data-gadget-scope="editor"]//iframe</td><td></td></tr>
<tr><td>selectFrame</td>
<td>//div[@data-gadget-scope="editor"]//iframe</td><td></td></tr>
<tr><td>waitForText</td>
<td>//body</td>
<!-- the "1" is because we have line number. We have a * at the end because monaco has some hidden text -->
<td>glob:1*Hello*</td></tr>
<tr><td>selectFrame</td>
<td>relative=top</td><td></td></tr>
<td>//div[@data-gadget-scope="editor"]</td>
<td>Hello</td></tr>
</tbody></table>
</body>
......
......@@ -66,15 +66,9 @@
<tr><td>click</td>
<td>//div[@class="actions"]//span[text() = "View"]</td><td></td></tr>
<tr><td>waitForElementPresent</td>
<td>css=.bottom iframe</td><td></td></tr>
<tr><td>selectFrame</td>
<td>css=.bottom iframe</td><td></td></tr>
<tr><td>waitForText</td>
<td>//body</td>
<td>glob:1*Hello*</td></tr>
<tr><td>selectFrame</td>
<td>relative=top</td><td></td></tr>
<td>//div[contains(@data-gadget-url, 'gadget_editor.html')]</td>
<td>Hello</td></tr>
</tbody></table>
</body>
......
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