Ignore:
Timestamp:
7 Mar 2024, 12:57:10 (10 months ago)
Author:
Henrik Bettermann
Message:

Simplify application

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.udss/trunk/src/kofacustom/udss/applicants/tests/test_browser.py

    r17689 r17711  
    6060        applicant.email = 'anna@sample.com'
    6161        applicant.phone = u'+234-123-12345'
    62         applicant.course1 = self.certificate
    63         applicant.course2 = self.certificate
    64         applicant.course_admitted = self.certificate
     62        #applicant.course1 = self.certificate
     63        #applicant.course2 = self.certificate
     64        #applicant.course_admitted = self.certificate
    6565        applicant.notice = u'Some notice\nin lines.'
    66         applicant.screening_score = 98
    67         applicant.screening_venue = u'Exam Room'
    68         applicant.screening_date = u'Saturday, 16th June 2012 2:00:00 PM'
     66        #applicant.screening_score = 98
     67        #applicant.screening_venue = u'Exam Room'
     68        #applicant.screening_date = u'Saturday, 16th June 2012 2:00:00 PM'
    6969        applicant.password = 'any password'
    7070        return applicant
     
    8080        self.browser.open(self.manage_path)
    8181        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    82         self.fill_correct_values()
     82        self.browser.getControl(name="form.firstname").value = 'John'
     83        self.browser.getControl(name="form.middlename").value = 'Anthony'
     84        self.browser.getControl(name="form.lastname").value = 'Tester'
     85        #self.browser.getControl(name="form.course1").value = ['CERT1']
     86        self.browser.getControl(name="form.date_of_birth").value = '09/09/1988'
     87        self.browser.getControl(name="form.sex").value = ['m']
     88        self.browser.getControl(name="form.email").value = 'xx@yy.zz'
    8389        self.browser.getControl("Save").click()
    8490        IWorkflowState(self.applicant).setState('submitted')
Note: See TracChangeset for help on using the changeset viewer.