Changeset 12246 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests
- Timestamp:
- 15 Dec 2014, 12:49:01 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12221 r12246 313 313 # Managers can trigger transitions 314 314 self.browser.getControl(name="transition").value = ['start'] 315 self.browser.getControl(" Save").click()315 self.browser.getControl("Apply now").click() 316 316 # Managers can edit base 317 317 self.browser.open(self.customer_path) … … 376 376 self.browser.open(self.trigtrans_path) 377 377 self.browser.getControl(name="transition").value = ['start'] 378 self.browser.getControl("Save").click() 378 self.browser.getControl("Apply now").click() 379 self.browser.open(self.trigtrans_path) 379 380 self.browser.getControl(name="transition").value = ['request'] 380 self.browser.getControl("Save").click() 381 self.browser.getControl("Apply now").click() 382 self.browser.open(self.trigtrans_path) 381 383 self.browser.getControl(name="transition").value = ['reject'] 382 self.browser.getControl("Save").click() 384 self.browser.getControl("Apply now").click() 385 self.browser.open(self.trigtrans_path) 383 386 self.browser.getControl(name="transition").value = ['request'] 384 self.browser.getControl("Save").click() 387 self.browser.getControl("Apply now").click() 388 self.browser.open(self.trigtrans_path) 385 389 self.browser.getControl(name="transition").value = ['approve'] 386 self.browser.getControl("Save").click() 390 self.browser.getControl("Apply now").click() 391 self.browser.open(self.trigtrans_path) 387 392 self.browser.getControl(name="transition").value = ['reset1'] 388 self.browser.getControl(" Save").click()393 self.browser.getControl("Apply now").click() 389 394 return 390 395 … … 843 848 self.browser.getLink("Transition").click() 844 849 self.browser.getControl(name="transition").value = ['submit'] 845 self.browser.getControl("Save").click() 850 self.browser.getControl("Apply now").click() 851 self.browser.getLink("Transition").click() 846 852 # Document can only be verified if files have been uploaded before 847 853 self.browser.getControl(name="transition").value = ['verify'] 848 self.browser.getControl(" Save").click()854 self.browser.getControl("Apply now").click() 849 855 self.assertTrue('No file uploaded' in self.browser.contents) 850 856 self.assertEqual(document.state, 'submitted') … … 1031 1037 self.browser.open(self.documents_path + '/d101/trigtrans') 1032 1038 self.browser.getControl(name="transition").value = ['verify'] 1033 self.browser.getControl(" Save").click()1039 self.browser.getControl("Apply now").click() 1034 1040 self.assertEqual( 1035 1041 getattr(self.document, 'sample_md5', None), … … 1163 1169 self.browser.getLink("Transition").click() 1164 1170 self.browser.getControl(name="transition").value = ['submit'] 1165 self.browser.getControl("Save").click() 1171 self.browser.getControl("Apply now").click() 1172 self.browser.getLink("Transition").click() 1166 1173 self.browser.getControl(name="transition").value = ['approve'] 1167 self.browser.getControl(" Save").click()1174 self.browser.getControl("Apply now").click() 1168 1175 self.assertEqual(contract.state, 'approved') 1169 1176 … … 1326 1333 self.browser.open(self.contracts_path + '/c101/trigtrans') 1327 1334 self.browser.getControl(name="transition").value = ['approve'] 1328 self.browser.getControl(" Save").click()1335 self.browser.getControl("Apply now").click() 1329 1336 # InvalidTransitionError is catched 1330 1337 self.assertTrue( 1331 1338 '<div class="alert alert-warning">Attached documents must be verified first.</div>' 1332 1339 in self.browser.contents) 1340 self.browser.open(self.contracts_path + '/c101/trigtrans') 1333 1341 IWorkflowState(self.document).setState('verified') 1334 1342 self.browser.getControl(name="transition").value = ['approve'] 1335 self.browser.getControl(" Save").click()1343 self.browser.getControl("Apply now").click() 1336 1344 self.assertEqual(IWorkflowState(self.contract).getState(), 'approved')
Note: See TracChangeset for help on using the changeset viewer.