Commit b39ff372 authored by Boxiang Sun's avatar Boxiang Sun

erp5_officejs_support_request_ui_test: Pause 5 seconds to let the editor show up.

parent 6e58cc8f
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//input[@data-i18n="[value]Proceed"]</td> <td>//input[@data-i18n="[value]Proceed"]</td>
<td></td> <td>15000</td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
...@@ -51,7 +51,24 @@ ...@@ -51,7 +51,24 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//body[@class='cke_editable cke_editable_themed cke_contents_ltr cke_show_borders']</td> <td>//iframe</td>
<td></td>
</tr>
<!--
Temparory fixing:
Pause Selenium test for 5 seconds. Give some time to let the editor show up.
Because now the editor is inside a iframe. And the iframe protects the content
if the domain differs. So we can not test the element inside an iframe. For now,
just wait 5 seconds and hope the editor can be loaded.
-->
<tr>
<td>pause</td>
<td>5000</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@data-i18n='[value]Proceed']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
<td>//input[@data-i18n="[value]Proceed"]</td> <td>//input[@data-i18n="[value]Proceed"]</td>
<td></td> <td></td>
</tr> </tr>
field_my_description
<tr> <tr>
<td>type</td> <td>type</td>
<td>//input[@name='field_your_title']</td> <td>//input[@name='field_your_title']</td>
...@@ -52,7 +51,19 @@ field_my_description ...@@ -52,7 +51,19 @@ field_my_description
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//body[@class='cke_editable cke_editable_themed cke_contents_ltr cke_show_borders']</td> <td>//iframe</td>
<td></td>
</tr>
<!--
Temparory fixing:
Pause Selenium test for 5 seconds. Give some time to let the editor show up.
Because now the editor is inside a iframe. And the iframe protects the content
if the domain differs. So we can not test the element inside an iframe. For now,
just wait 5 seconds and hope the editor can be loaded.
-->
<tr>
<td>pause</td>
<td>5000</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -70,14 +81,16 @@ field_my_description ...@@ -70,14 +81,16 @@ field_my_description
<td>//input[@data-i18n="[value]Reply"]</td> <td>//input[@data-i18n="[value]Reply"]</td>
<td></td> <td></td>
</tr> </tr>
<!--
Temparory fixing:
Pause Selenium test for 5 seconds. Give some time to let the editor show up.
Because now the editor is inside a iframe. And the iframe protects the content
if the domain differs. So we can not test the element inside an iframe. For now,
just wait 5 seconds and hope the editor can be loaded.
-->
<tr> <tr>
<td>waitForElementPresent</td> <td>pause</td>
<td>//div[@id="cke_editor1"]</td> <td>5000</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//body[@class='cke_editable cke_editable_themed cke_contents_ltr cke_show_borders']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
......
...@@ -26,7 +26,19 @@ ...@@ -26,7 +26,19 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//body[@class='cke_editable cke_editable_themed cke_contents_ltr cke_show_borders']</td> <td>//iframe</td>
<td></td>
</tr>
<!--
Temparory fixing:
Pause Selenium test for 5 seconds. Give some time to let the editor show up.
Because now the editor is inside a iframe. And the iframe protects the content
if the domain differs. So we can not test the element inside an iframe. For now,
just wait 5 seconds and hope the editor can be loaded.
-->
<tr>
<td>pause</td>
<td>5000</td>
<td></td> <td></td>
</tr> </tr>
<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