Ignore:
Timestamp:
16 Jan 2024, 17:47:04 (10 months ago)
Author:
Henrik Bettermann
Message:

Students can’t start clearance if picture is not uploaded!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r17614 r17673  
    11831183            '...You logged in...', self.browser.contents)
    11841184        # Admitted student can upload a passport picture
    1185         self.browser.open(self.student_path + '/change_portrait')
    1186         ctrl = self.browser.getControl(name='passportuploadedit')
    1187         file_obj = open(SAMPLE_IMAGE, 'rb')
    1188         file_ctrl = ctrl.mech_control
    1189         file_ctrl.add_file(file_obj, filename='my_photo.jpg')
    1190         self.browser.getControl(
    1191             name='upload_passportuploadedit').click()
    1192         self.assertTrue(
    1193             'src="http://localhost/app/students/E1000000/passport.jpg"'
    1194             in self.browser.contents)
     1185        # disabled on 16/01/24
     1186        #self.browser.open(self.student_path + '/change_portrait')
     1187        #ctrl = self.browser.getControl(name='passportuploadedit')
     1188        #file_obj = open(SAMPLE_IMAGE, 'rb')
     1189        #file_ctrl = ctrl.mech_control
     1190        #file_ctrl.add_file(file_obj, filename='my_photo.jpg')
     1191        #self.browser.getControl(
     1192        #    name='upload_passportuploadedit').click()
     1193        #self.assertTrue(
     1194        #    'src="http://localhost/app/students/E1000000/passport.jpg"'
     1195        #    in self.browser.contents)
    11951196        # Student is redirected to the personal data form because
    11961197        # personal data form is not properly filled.
    1197         self.browser.open(self.student_path + '/start_clearance')
    1198         self.assertMatches('...Personal data form is not properly filled...',
    1199                            self.browser.contents)
    1200         self.assertEqual(self.browser.url, self.student_path + '/edit_personal')
    1201         self.student.father_name = u'Rudolf'
    1202         self.browser.open(self.student_path + '/start_clearance')
    1203         self.assertMatches(
    1204             '...<h1 class="kofa-content-label">Start clearance</h1>...',
    1205             self.browser.contents)
     1198        #self.browser.open(self.student_path + '/start_clearance')
     1199        #self.assertMatches('...Personal data form is not properly filled...',
     1200        #                   self.browser.contents)
     1201        #self.assertEqual(self.browser.url, self.student_path + '/edit_personal')
     1202        #self.student.father_name = u'Rudolf'
     1203        #self.browser.open(self.student_path + '/start_clearance')
     1204        #self.assertMatches(
     1205        #    '...<h1 class="kofa-content-label">Start clearance</h1>...',
     1206        #    self.browser.contents)
    12061207
    12071208    def test_student_accommodation(self):
Note: See TracChangeset for help on using the changeset viewer.