[Checkins] SVN: grok/trunk/src/grok/ Added functional tests for
deletion of installed applications in grok admin
Darryl Cousins
darryl at darrylcousins.net.nz
Sat Mar 24 18:05:34 EDT 2007
Log message for revision 73520:
Added functional tests for deletion of installed applications in grok admin
Changed:
U grok/trunk/src/grok/admin/view_templates/index.pt
U grok/trunk/src/grok/ftests/admin/admin.py
-=-
Modified: grok/trunk/src/grok/admin/view_templates/index.pt
===================================================================
--- grok/trunk/src/grok/admin/view_templates/index.pt 2007-03-24 20:20:53 UTC (rev 73519)
+++ grok/trunk/src/grok/admin/view_templates/index.pt 2007-03-24 22:05:33 UTC (rev 73520)
@@ -13,12 +13,14 @@
<ul>
<li tal:repeat="app apps">
+ <label>
<input type="checkbox" tal:attributes="value app/__name__;
name string:items" />
<a tal:attributes="href string:${context/@@absolute_url}/${app/__name__}">
<span tal:replace="app/__name__"/>
(<span tal:replace="app/__class__/__name__"/>)
</a>
+ </label>
</li>
</ul>
Modified: grok/trunk/src/grok/ftests/admin/admin.py
===================================================================
--- grok/trunk/src/grok/ftests/admin/admin.py 2007-03-24 20:20:53 UTC (rev 73519)
+++ grok/trunk/src/grok/ftests/admin/admin.py 2007-03-24 22:05:33 UTC (rev 73520)
@@ -18,18 +18,34 @@
>>> print browser.contents
<html>
...
- <li>
+ <label>
<input type="checkbox" name="items" value="my-mammoth-manager" />
<a href="http://localhost/my-mammoth-manager">
my-mammoth-manager
(MammothManager)
</a>
- </li>
+ </label>
...
>>> browser.getLink('my-mammoth-manager').click()
>>> print browser.contents
Let's manage some mammoths!
+We are able to delete installed applications.
+
+ >>> browser.open("http://localhost/")
+ >>> print browser.contents
+ <html>
+ ...
+ ...<legend>Installed applications</legend>
+ ...
+ >>> browser.getControl('my-mammoth-manager (MammothManager)').selected = True
+ >>> browser.getControl('Delete Selected').click()
+ >>> print browser.contents
+ <html>
+ ...
+ ...<legend>Add application</legend>
+ ...
+
"""
import grok
More information about the Checkins
mailing list