Commit c0658002 authored by Gabriel Monnerat's avatar Gabriel Monnerat

rename file and update tests

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44323 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent de1a961e
...@@ -48,11 +48,6 @@ ...@@ -48,11 +48,6 @@
<tr><td rowspan="1" colspan="3" tal:content="template/getId"/></tr>\n <tr><td rowspan="1" colspan="3" tal:content="template/getId"/></tr>\n
</thead><tbody>\n </thead><tbody>\n
<tal:block metal:use-macro="here/Zuite_CommonTemplateForUNG/macros/init" />\n <tal:block metal:use-macro="here/Zuite_CommonTemplateForUNG/macros/init" />\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/ERP5Site_cleanUpUNGKnowledgePadList</td>\n
<td></td>\n
</tr>\n
<tal:block metal:use-macro="here/Zuite_CommonTemplateForUNG/macros/login" />\n <tal:block metal:use-macro="here/Zuite_CommonTemplateForUNG/macros/login" />\n
<tr>\n <tr>\n
<td>verifyTextPresent</td>\n <td>verifyTextPresent</td>\n
......
...@@ -104,6 +104,11 @@ ...@@ -104,6 +104,11 @@
<td>//a[@id="back-calendar"]</td>\n <td>//a[@id="back-calendar"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>click</td>\n
<td>//span[@class="addcal"]</td>\n
<td></td>\n
</tr>\n
</tbody>\n </tbody>\n
</table>\n </table>\n
</body>\n </body>\n
......
...@@ -94,6 +94,76 @@ ...@@ -94,6 +94,76 @@
<td>Create an account now</td>\n <td>Create an account now</td>\n
<td></td>\n <td></td>\n
</tr>\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>click</td>\n
<td>//td[@id="back-login"]</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>Gabriel</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="lastname"]</td>\n
<td>Monnerat</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="email"]</td>\n
<td>example@example.com</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="login_name"]</td>\n
<td>ung_user</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>//input[@name="__ac_name"]</td>\n
<td>ung_user</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="__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
</tbody>\n </tbody>\n
</table>\n </table>\n
</body>\n </body>\n
......
...@@ -60,6 +60,12 @@ for pad in pad_list:\n ...@@ -60,6 +60,12 @@ for pad in pad_list:\n
pad_object = context.restrictedTraverse(pad.getPath())\n pad_object = context.restrictedTraverse(pad.getPath())\n
portal.knowledge_pad_module.deleteContent(pad_object.getId())\n portal.knowledge_pad_module.deleteContent(pad_object.getId())\n
\n \n
person = portal.portal_catalog.getResultValue(portal_type="Person", reference="ung_user")\n
\n
context.log(person)\n
if person:\n
portal.person_module.deleteContent(person.getId())\n
\n
return True\n return True\n
</string> </value> </string> </value>
</item> </item>
...@@ -67,9 +73,17 @@ return True\n ...@@ -67,9 +73,17 @@ return True\n
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>ERP5Site_cleanUpUNGKnowledgePadList</string> </value> <value> <string>ERP5Site_cleanUpUNGTestEnvironment</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -45,6 +45,11 @@ ...@@ -45,6 +45,11 @@
<td>${base_url}/web_site_module/ung</td>\n <td>${base_url}/web_site_module/ung</td>\n
<td>ung_url</td>\n <td>ung_url</td>\n
</tr>\n </tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/ERP5Site_cleanUpUNGTestEnvironment</td>\n
<td></td>\n
</tr>\n
</tal:block>\n </tal:block>\n
<tal:block metal:define-macro="login">\n <tal:block metal:define-macro="login">\n
<tr>\n <tr>\n
......
10 11
\ 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