Ignore:
Timestamp:
1 May 2011, 12:00:22 (13 years ago)
Author:
Henrik Bettermann
Message:

Implement department manage page by using jQueryUI tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt

    r6001 r6002  
    248248
    249249  >>> browser.open('http://localhost/myuniversity/faculties/TF/TD')
    250   >>> browser.getLink('Edit department').click()
     250  >>> browser.getLink('Manage department').click()
    251251
    252252Let's set a new title and save the form:
     
    256256
    257257Clicking 'Save' we will stay on the settings form. So we can change
    258 the department again. This time we will return to the overview page
    259 afterwards:
     258the department again.
    260259
    261260  >>> browser.getControl(name='form.title').value = "My renamed dept"
    262   >>> ctrl = browser.getControl("Save and return")
     261  >>> ctrl = browser.getControl("Save")
    263262  >>> ctrl.click()
    264263
    265 If we go to the settings page and click ``Cancel`` nothing will be
    266 changed:
    267 
    268   >>> browser.getLink('Edit department').click()
    269   >>> browser.getControl(name='form.title').value = "Blah"
    270   >>> browser.getControl('Cancel').click()
    271 
    272 Our department was indeed renamed to ``My renamed dept`` and not to
    273 ``Blah``:
     264
     265Our department was indeed renamed to ``My renamed dept``:
    274266
    275267  >>> browser.open('http://localhost/myuniversity/faculties/TF')
     
    414406----------------
    415407
    416 We can delete courses by browsing the containing department and
    417 clicking on the appropriate 'Delete' button. As we have only one
    418 course, there is only one 'Delete' button yet:
    419 
    420   >>> browser.open('http://localhost/myuniversity/faculties/TF/TD')
     408We can delete courses by browsing the manage page of the containing department and
     409checking the appropriate select box and clicking the ´´Remove selected´´ button.
     410
     411  >>> browser.open('http://localhost/myuniversity/faculties/TF/TD/@@manage#tab-2')
    421412  >>> 'My renamed course' in browser.contents
    422413  True
    423414
    424   >>> browser.getControl('Delete').click()
     415  >>> browser.getControl(name='val_id').getControl(value='COURSE1').selected = True
     416  >>> browser.getControl('Remove selected courses').click()
    425417
    426418  >>> browser.open('http://localhost/myuniversity/faculties/TF/TD')
     
    518510
    519511  >>> browser.open(dept_url + '/certificates/CERT1')
    520   >>> browser.getLink('Edit certificate').click()
     512  >>> browser.getLink('Manage certificate').click()
    521513
    522514When modifying a certificate, we cannot change the code any more:
     
    533525
    534526Clicking 'Save' we will stay on the settings form. So we can change
    535 the cert again. This time we will return to the overview page
    536 afterwards:
     527the cert again.
    537528
    538529  >>> browser.getControl(name='form.title').value = "My renamed cert"
    539   >>> ctrl = browser.getControl("Save and return")
     530  >>> ctrl = browser.getControl("Save",index=0)
    540531  >>> ctrl.click()
    541532
     
    543534changed:
    544535
    545   >>> browser.getLink('Edit certificate').click()
    546536  >>> browser.getControl(name='form.title').value = "Blah"
    547537  >>> browser.getControl('Cancel').click()
     
    561551---------------------
    562552
    563 We can delete certificates by browsing the containing department and
    564 clicking on the appropriate 'Delete' button. As we have only one
    565 certificate, there is only one 'Delete' button yet:
    566 
    567   >>> browser.open('http://localhost/myuniversity/faculties/TF/TD')
     553We can delete certificates by browsing the manage page of the containing department and
     554checking the appropriate select box and clicking the ´´Remove selected´´ button.
     555
     556  >>> browser.open('http://localhost/myuniversity/faculties/TF/TD/@@manage#tab-3')
    568557  >>> 'My renamed cert' in browser.contents
    569558  True
    570559
    571   >>> browser.getControl('Delete').click()
    572 
    573   >>> browser.open('http://localhost/myuniversity/faculties/TF/TD')
     560  >>> browser.getControl(name='val_id').getControl(value='CERT1').selected = True
     561  >>> browser.getControl('Remove selected certificates').click()
    574562  >>> 'My renamed cert' in browser.contents
    575563  False
Note: See TracChangeset for help on using the changeset viewer.