Ignore:
Timestamp:
8 Mar 2015, 18:24:20 (10 years ago)
Author:
uli
Message:

Disply avail. gateway providers on select page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/customers/tests/test_browser.py

    r12663 r12689  
    14931493        self.browser.getControl("Apply").click()
    14941494        self.assertEqual(IWorkflowState(self.contract).getState(), 'approved')
     1495
     1496    def add_product_option(self, contract):
     1497        prodoption = ProductOption()
     1498        prodoption.title = u'Any product option'
     1499        prodoption.fee = Decimal('88.8')
     1500        prodoption.currency = 'EUR'
     1501        contract.product_options = [prodoption,]
     1502
     1503    def test_select_payment(self):
     1504        # select payment
     1505        IWorkflowState(self.customer).setState('approved')
     1506        IWorkflowState(self.document).setState('verified')
     1507        self.contract.document_object = self.document
     1508        self.add_product_option(self.contract)
     1509        IWorkflowState(self.contract).setState('created')
     1510        # login as customer
     1511        self.browser.open(self.login_path)
     1512        self.browser.getControl(name="form.login").value = self.customer_id
     1513        self.browser.getControl(name="form.password").value = 'cpwd'
     1514        self.browser.getControl("Login").click()
     1515        # go to our contract
     1516        self.browser.open('%s/CON1/edit' % self.contracts_path)
     1517        self.browser.getControl("Proceed to checkout").click()
     1518        self.assertTrue(
     1519            "Select payment method" in self.browser.contents)
     1520        self.assertTrue(
     1521            'Credit Card (Demo Payments)' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.