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

erp5_officejs_support_request_ui_test: Test update

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