Anonymous avatar Anonymous committed 036fb5f

fixed tests for new templates

Comments (0)

Files changed (4)

 --------
 
 Ed Crewe, `ILRT
-<http://www.ilrt.bris.ac.uk/>`_ at University of Bristol, September 2nd 2010
+<http://www.ilrt.bris.ac.uk/>`_ at University of Bristol, June 23rd 2013
 
-NOTE: Updated from plone 3.* version 0.6 to plone 4.* compatible version 1.6
-There are no functional changes between 0.6 and 1.6, just a skins install 
-tweak and update of the test suite. 
+NOTE: Updated from plone 3.* version 0.6 to Plone 4.0 compatible version 1.6
+      Latest version is 1.9 tested with Plone 4.3
+
+There are no functional changes between 0.6 and 1.9, just a skins install 
+tweak and updates of the test suite. 
 
 See http://bitbucket.org/edcrewe/ilrt.formalworkflow for mecurial source 
 repository, issue tracker etc.
 
 ilrt.formalworkflow - 1.9 Released - 23rd June
 
-   - Test and fix formalworkflow with latest Plone 4.3, 
+   - Fix formalworkflow with latest Plone 4.3, 
      Use index not template attrib from plone.app.iterate	    
+   - Fix doc tests wrt. templates 
    - Modify setup.py to specify test requirements
 
 ilrt.formalworkflow - 1.8 Released - 1st December 2011

ilrt/formalworkflow/tests/editorpastedelete.txt

 ===========================================================
 
     >>> browser.open('%s/%s' % (portal_url, title))
-    >>> browser.getLink(id='copy').click()
+    >>> browser.getLink(id='plone-contentmenu-actions-copy').click() 
     >>> '%s copied' % title in browser.contents
     True
     >>> browser.open('%s/folder_contents' % portal_url)

ilrt/formalworkflow/tests/workflowprocess.txt

     >>> browser.getControl(name='__ac_password').value = default_password
     >>> browser.getControl(name='submit').click()
 
+CHANGED since Accept changes no longer used...
+
+Open the iteration and click accept changes (ie check in)
+browser.open(iteration_url)
+browser.getLink(url=iteration_url + '/@@accept-changes').click()
+Check it is using the adapted check in form with Accept changes terminology
+'Accept changes' in browser.contents
 
 Open the iteration and click accept changes (ie check in)
 
     >>> browser.open(iteration_url)
-    >>> browser.getLink(url=iteration_url + '/@@accept-changes').click()
+    >>> browser.getLink(id='plone-contentmenu-actions-iterate_checkin').click()
 
 Check it is using the adapted check in form with Accept changes terminology
 
-    >>> 'Accept changes' in browser.contents
+    >>> 'Check in' in browser.contents
     True
 
 Lets check it in
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.