Commit 22aeeaac authored by Gabriel Monnerat's avatar Gabriel Monnerat

update gadget tests in UNG

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45432 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 85c403db
...@@ -64,11 +64,6 @@ ...@@ -64,11 +64,6 @@
<td>//a[@id="add-gadgets"]/span</td>\n <td>//a[@id="add-gadgets"]/span</td>\n
<td>Add gadgets</td>\n <td>Add gadgets</td>\n
</tr>\n </tr>\n
<tr>\n
<td>click</td>\n
<td>//a[@id="add-gadgets"]</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>verifyTextNotPresent</td>\n <td>verifyTextNotPresent</td>\n
<td>Join ERP5 Network !</td>\n <td>Join ERP5 Network !</td>\n
...@@ -79,6 +74,11 @@ ...@@ -79,6 +74,11 @@
<td>//a[@class="clickable-block block-remove"]</td>\n <td>//a[@class="clickable-block block-remove"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>click</td>\n
<td>//a[@id="add-gadgets"]</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>verifyTextPresent</td>\n <td>verifyTextPresent</td>\n
<td>Add Gadget</td>\n <td>Add Gadget</td>\n
...@@ -119,14 +119,134 @@ ...@@ -119,14 +119,134 @@
<td>Are you sure you want to remove this gadget from your personalized page?</td>\n <td>Are you sure you want to remove this gadget from your personalized page?</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities"/>\n
<tr>\n
<td>openAndWait</td>\n
<td>${ung_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//a[@id="add-gadgets"]/span</td>\n
<td>Add gadgets</td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//a[@id="add-gadgets"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//input[@id="erp5_rss"]</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td>//a[@class="ung_docs"]</td>\n <td>//div[@class="ui-dialog-buttonset"]/button[1]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>verifyElementPresent</td>\n <td>verifyText</td>\n
<td>//div[@id="page_wrapper"]/div[1]/h4</td>\n <td>//span[@class="gadget_title"]</td>\n
<td>Feed Reader</td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//a[@class="clickable-block block-remove"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertConfirmation</td>\n
<td>Are you sure you want to remove this gadget from your personalized page?</td>\n
<td></td>\n
</tr>\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities"/>\n
<tr>\n
<td>openAndWait</td>\n
<td>${ung_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>//a[@class="clickable-block block-remove"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//a[@id="add-gadgets"]</td>\n
<td></td>\n
</tr>\n
<!-- Test add two gadgets -->\n
<tr>\n
<td>click</td>\n
<td>//input[@id="erp5_documentation"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//input[@id="erp5_rss"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//div[@class="ui-dialog-buttonset"]/button[1]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//span[@class="gadget_title"]</td>\n
<td>Feed Reader</td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Join ERP5 Network !</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//div[@id="portal-column-0"]/div[1]/h3/span/a[@title="Remove"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertConfirmation</td>\n
<td>Are you sure you want to remove this gadget from your personalized page?</td>\n
<td></td>\n
</tr>\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities"/>\n
<tr>\n
<td>openAndWait</td>\n
<td>${ung_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>//div[@id="portal-column-0"]/div[2]/h3/span/a[@title="Remove"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Join ERP5 Network !</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//a[@class="clickable-block block-remove"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertConfirmation</td>\n
<td>Are you sure you want to remove this gadget from your personalized page?</td>\n
<td></td>\n
</tr>\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities"/>\n
<tr>\n
<td>openAndWait</td>\n
<td>${ung_url}?reset:int=1</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>//a[@class="clickable-block block-remove"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
</tbody>\n </tbody>\n
......
49 50
\ No newline at end of file \ No newline at end of file
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