Commit 84ccb7a9 authored by Boxiang Sun's avatar Boxiang Sun

erp5_officejs_support_request_ui_test: Test update

parent 9bf0ea0e
...@@ -30,8 +30,13 @@ ...@@ -30,8 +30,13 @@
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>waitForElementPresent</td>
<td>//input[@name='field_your_title']</td> <td>//input[@name='field_your_title']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//input[@id='field_your_title']</td>
<td>test</td> <td>test</td>
</tr> </tr>
<tr> <tr>
...@@ -39,6 +44,11 @@ ...@@ -39,6 +44,11 @@
<td>field_your_project</td> <td>field_your_project</td>
<td>RobotMaking</td> <td>RobotMaking</td>
</tr> </tr>
<tr>
<td>waitForTextPresent</td>
<td>FeatureRequire</td>
<td></td>
</tr>
<tr> <tr>
<td>select</td> <td>select</td>
<td>field_your_resource</td> <td>field_your_resource</td>
...@@ -46,17 +56,34 @@ ...@@ -46,17 +56,34 @@
</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[@value='Add Support Request']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//input[@data-i18n='[value]Proceed']</td> <td>//input[@value='Add Support Request']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//input[@data-i18n="[value]Reply"]</td> <td>//input[@data-i18n="[value]Post Comment"]</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>
...@@ -40,6 +39,11 @@ field_my_description ...@@ -40,6 +39,11 @@ field_my_description
<td>field_your_project</td> <td>field_your_project</td>
<td>RobotMaking</td> <td>RobotMaking</td>
</tr> </tr>
<tr>
<td>waitForTextPresent</td>
<td>FeatureRequire</td>
<td></td>
</tr>
<tr> <tr>
<td>select</td> <td>select</td>
<td>field_your_resource</td> <td>field_your_resource</td>
...@@ -47,37 +51,51 @@ field_my_description ...@@ -47,37 +51,51 @@ 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> <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>//input[@data-i18n='[value]Proceed']</td> <td>5000</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>waitForElementPresent</td>
<td>//input[@data-i18n='[value]Proceed']</td> <td>//input[@data-i18n='[value]Proceed']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>click</td>
<td>//input[@data-i18n="[value]Reply"]</td> <td>//input[@data-i18n='[value]Proceed']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//div[@id="cke_editor1"]</td> <td>//input[@data-i18n="[value]Post Comment"]</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>//body[@class='cke_editable cke_editable_themed cke_contents_ltr cke_show_borders']</td> <td>5000</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//input[@data-i18n='[value]Reply']</td> <td>//input[@data-i18n="[value]Post Comment"]</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
......
...@@ -21,12 +21,17 @@ ...@@ -21,12 +21,17 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//canvas[@id='bar-chart-grouped']</td> <td>//a[@id='generate-rss']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//canvas[@id='pie-chart']</td> <td>//div[@id='wrap1']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@id='wrap2']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</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>//input[@name='field_your_title']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -34,6 +34,23 @@ ...@@ -34,6 +34,23 @@
<td>//input[@name='field_your_title']</td> <td>//input[@name='field_your_title']</td>
<td>test</td> <td>test</td>
</tr> </tr>
<tr>
<td>waitForElementPresent</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> <tr>
<td>click</td> <td>click</td>
<td>//input[@data-i18n='[value]Proceed']</td> <td>//input[@data-i18n='[value]Proceed']</td>
...@@ -41,7 +58,7 @@ ...@@ -41,7 +58,7 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//input[@data-i18n='[value]Reply']</td> <td>//input[@data-i18n='[value]Post Comment']</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