Commit 912b4e27 authored by Gabriel Monnerat's avatar Gabriel Monnerat

Continuation of r45432. Add more tests to gadgets in UNG Docs

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45450 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5b0b6de6
......@@ -171,12 +171,12 @@
<td>//a[@class="clickable-block block-remove"]</td>\n
<td></td>\n
</tr>\n
<!-- Test add two gadgets -->\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
......@@ -249,6 +249,221 @@
<td>//a[@class="clickable-block block-remove"]</td>\n
<td></td>\n
</tr>\n
<!-- Test gadget with different users -->\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_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
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities"/>\n
<tr>\n
<td>openAndWait</td>\n
<td>${ung_url}/WebSite_logout</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//td[@id="new-account-form"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="firstname"]</td>\n
<td>Another</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="lastname"]</td>\n
<td>User</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="email"]</td>\n
<td>example2@example.com</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="login_name"]</td>\n
<td>ung_user2</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="password"]</td>\n
<td>1234</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="confirm"]</td>\n
<td>1234</td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//input[@value="Create Account"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForPageToLoad</td>\n
<td>30000</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>__ac_name</td>\n
<td>ung_user2</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>__ac_password</td>\n
<td>1234</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@type="submit"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Please wait while your home area is being prepared.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForPageToLoad</td>\n
<td>30000</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextNotPresent</td>\n
<td>Join ERP5 Network !</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
<tr>\n
<td>click</td>\n
<td>//input[@id="erp5_worklists"]</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>ERP5 Worklists</td>\n
</tr>\n
<tal:block metal:use-macro="here/Zuite_CommonTemplateForUNG/macros/login" />\n
<tr>\n
<td>verifyNotText</td>\n
<td>//span[@class="gadget_title"]</td>\n
<td>ERP5 Worklists</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>openAndWait</td>\n
<td>${ung_url}/WebSite_logout</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>__ac_name</td>\n
<td>zope</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>__ac_password</td>\n
<td>zope</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@type="submit"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Please wait while your home area is being prepared.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForPageToLoad</td>\n
<td>30000</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
<tr>\n
<td>click</td>\n
<td>//input[@id="erp5_worklists"]</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>ERP5 Worklists</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
<tal:block metal:use-macro="here/Zuite_CommonTemplateForUNG/macros/login" />\n
<tr>\n
<td>verifyNotText</td>\n
<td>//span[@class="gadget_title"]</td>\n
<td>ERP5 Worklists</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
</tbody>\n
</table>\n
</body>\n
......
50
\ No newline at end of file
51
\ 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