Ignore:
Timestamp:
23 Mar 2017, 04:43:44 (8 years ago)
Author:
Henrik Bettermann
Message:

Redirect to manage page after editing of certificate courses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/doctests/pages.txt

    r13657 r14648  
    10961096If we just click 'Save and return' nothing will change:
    10971097
    1098   >>> browser.getControl("Save and return").click()
    1099   >>> browser.getLink('COURSE1_100').click()
     1098  >>> browser.getControl("Save").click()
    11001099  >>> browser.url
    1101   'http://localhost/myun.../TF/TD/certificates/CERT1/COURSE1_100'
    1102 
    1103 Let's set a new level (it was 100 before) and save the form. This will
    1104 bring us to the certificate index page afterwards:
    1105 
    1106   >>> browser.open(cert_url + '/COURSE1_100/manage')
     1100  'http://localhost/myun.../TF/TD/certificates/CERT1/COURSE1_100/@@manage'
     1101
     1102Let's set a new level (it was 100 before) and save the form. The entire
     1103certificate course will be replaced and we will be redirected to manage
     1104page afterwards:
     1105
    11071106  >>> browser.getControl(name='form.level').value = ['200']
    1108   >>> browser.getControl("Save and return").click()
    1109 
    1110 As we changed the level, also the URL will change:
    1111 
    1112   >>> browser.getLink('COURSE1_200').click()
     1107  >>> browser.getControl("Save").click()
     1108  >>> browser.url
     1109  'http://localhost/myun.../TF/TD/certificates/CERT1/COURSE1_200/@@manage'
     1110
     1111Nothing will be changed if click ``Cancel``:
     1112
     1113  >>> browser.getControl(name='form.level').value = ['400']
     1114  >>> browser.getControl('Cancel').click()
    11131115  >>> browser.url
    11141116  'http://localhost/myun.../TF/TD/certificates/CERT1/COURSE1_200'
    1115 
    1116 If we go to the settings page and click ``Cancel`` nothing will be
    1117 changed:
    1118 
    1119   >>> browser.getLink('Edit certificate course').click()
    1120   >>> browser.getControl(name='form.level').value = ['400']
    1121   >>> browser.getControl('Cancel').click()
    1122 
    1123 Our certcourse provides a new level of 200 and not 400:
    1124 
    1125   >>> browser.open(cert_url + '/COURSE1_200')
    1126   >>> print browser.contents
    1127   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    1128   ...<td>Level:</td>
    1129   ...<td>200 (Year 2)</td>
    1130   ...
    11311117
    11321118Searching certificate courses
Note: See TracChangeset for help on using the changeset viewer.