Ignore:
Timestamp:
15 Dec 2014, 12:49:01 (10 years ago)
Author:
Henrik Bettermann
Message:

Rename button and redirect after transition to context page.

Remove restwidget.py.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py

    r12221 r12246  
    313313        # Managers can trigger transitions
    314314        self.browser.getControl(name="transition").value = ['start']
    315         self.browser.getControl("Save").click()
     315        self.browser.getControl("Apply now").click()
    316316        # Managers can edit base
    317317        self.browser.open(self.customer_path)
     
    376376        self.browser.open(self.trigtrans_path)
    377377        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)
    379380        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)
    381383        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)
    383386        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)
    385389        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)
    387392        self.browser.getControl(name="transition").value = ['reset1']
    388         self.browser.getControl("Save").click()
     393        self.browser.getControl("Apply now").click()
    389394        return
    390395
     
    843848        self.browser.getLink("Transition").click()
    844849        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()
    846852        # Document can only be verified if files have been uploaded before
    847853        self.browser.getControl(name="transition").value = ['verify']
    848         self.browser.getControl("Save").click()
     854        self.browser.getControl("Apply now").click()
    849855        self.assertTrue('No file uploaded' in self.browser.contents)
    850856        self.assertEqual(document.state, 'submitted')
     
    10311037        self.browser.open(self.documents_path + '/d101/trigtrans')
    10321038        self.browser.getControl(name="transition").value = ['verify']
    1033         self.browser.getControl("Save").click()
     1039        self.browser.getControl("Apply now").click()
    10341040        self.assertEqual(
    10351041            getattr(self.document, 'sample_md5', None),
     
    11631169        self.browser.getLink("Transition").click()
    11641170        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()
    11661173        self.browser.getControl(name="transition").value = ['approve']
    1167         self.browser.getControl("Save").click()
     1174        self.browser.getControl("Apply now").click()
    11681175        self.assertEqual(contract.state, 'approved')
    11691176
     
    13261333        self.browser.open(self.contracts_path + '/c101/trigtrans')
    13271334        self.browser.getControl(name="transition").value = ['approve']
    1328         self.browser.getControl("Save").click()
     1335        self.browser.getControl("Apply now").click()
    13291336        # InvalidTransitionError is catched
    13301337        self.assertTrue(
    13311338            '<div class="alert alert-warning">Attached documents must be verified first.</div>'
    13321339            in self.browser.contents)
     1340        self.browser.open(self.contracts_path + '/c101/trigtrans')
    13331341        IWorkflowState(self.document).setState('verified')
    13341342        self.browser.getControl(name="transition").value = ['approve']
    1335         self.browser.getControl("Save").click()
     1343        self.browser.getControl("Apply now").click()
    13361344        self.assertEqual(IWorkflowState(self.contract).getState(), 'approved')
Note: See TracChangeset for help on using the changeset viewer.