Commits

Anonymous committed 858afe3

start fixing functional tests for plone4 interface

Comments (0)

Files changed (3)

ilrt.formalworkflow.egg-info/PKG-INFO

 Metadata-Version: 1.0
 Name: ilrt.formalworkflow
-Version: 0.6
+Version: 1.6
 Summary: Formal workflow is designed to prevent editing, deletion or reversion of published content from skipping review
 Home-page: http://bitbucket.org/edcrewe/ilrt.formalworkflow
 Author: Internet Development, ILRT, University of Bristol
         --------
         
         Ed Crewe, `ILRT
-        <http://www.ilrt.bris.ac.uk/>`_ at University of Bristol, September 10th 2009
+        <http://www.ilrt.bris.ac.uk/>`_ at University of Bristol, September 1st 2010
+        
+        Updated from plone 3 version 0.6 to plone 4 compatible version 1.6
         
         Formal workflow is designed for sites where there may be many editors
         for whom unmoderated access to change live published content on the 

ilrt/formalworkflow/tests/editorpastedelete.txt

 
 Login as the manager
 
-    >>> browser.open(portal_url)
+    >>> browser.open('%s/login_form' % portal_url)
     >>> browser.getControl(name='__ac_name').value = portal_owner
     >>> browser.getControl(name='__ac_password').value = default_password
     >>> browser.getControl(name='submit').click()
 
 We have the login portlet, so let's use that:
 
-    >>> browser.open(portal_url)
+    >>> browser.open('%s/login_form' % portal_url)
     >>> browser.getControl(name='__ac_name').value = editor
     >>> browser.getControl(name='__ac_password').value = default_password
     >>> browser.getControl(name='submit').click()

ilrt/formalworkflow/tests/workflowprocess.txt

 
 We have the login portlet, so let's use that:
 
-    >>> browser.open(portal_url)
+    >>> browser.open('%s/login_form' % portal_url)
     >>> browser.getControl(name='__ac_name').value = editor
     >>> browser.getControl(name='__ac_password').value = default_password
     >>> browser.getControl(name='submit').click()
 Switch to textarea for editor 
 =============================
 
-Go to the users dashboard to check their preferences are set OK
-
-   >>> browser.open(portal_url + '/dashboard')
-
 Check we have disabled editors and just use the text box
 
-    >>> browser.getLink('Personal Preferences').click()
+    >>> browser.open('%s/@@personal-preferences' % portal_url)
     >>> browser.getControl(name='wysiwyg_editor').value = ['None']
-    >>> browser.getControl(name='fullname').value = 'Demo Editor'
-    >>> browser.getControl(name='email').value = 'nobody@plone.org'
     >>> browser.getControl(name='form.button.Save').click()
     >>> "Your personal settings have been saved." in browser.contents
     True
     ['None']
 
 
+Upate personal details
+
+    >>> browser.open('%s/@@personal-information' % portal_url)
+    >>> browser.getControl(name='fullname').value = 'Demo Editor'
+    >>> browser.getControl(name='email').value = 'nobody@plone.org'
+    >>> browser.getControl(name='form.button.Save').click()
+
 Add a page as an editor
 =======================
 
 
 Login as the manager
 
+    >>> browser.open('%s/login_form' % portal_url)
     >>> browser.getControl(name='__ac_name').value = portal_owner
     >>> browser.getControl(name='__ac_password').value = default_password
     >>> browser.getControl(name='submit').click()
 
 Login as the editor
 
+    >>> browser.open('%s/login_form' % portal_url)
     >>> browser.getControl(name='__ac_name').value = editor
     >>> browser.getControl(name='__ac_password').value = default_password
     >>> browser.getControl(name='submit').click()
 ========================================
 
     >>> browser.getLink('Log out').click()
+    >>> browser.open('%s/login_form' % portal_url)
     >>> browser.getControl(name='__ac_name').value = portal_owner
     >>> browser.getControl(name='__ac_password').value = default_password
     >>> browser.getControl(name='submit').click()