def test_payment_created(self):
        # Get the id of the order we created
        index_page = PaymentIndex(self.browser, self.configuration['base_url'])
        index_page.open()
        payment_id = index_page.id_for_payment(self.order_id)
        assert payment_id != None, "Could not find a Payment."

        # Check that the status is correct
        edit_page = PaymentEdit(self.browser, self.configuration['base_url'])
        edit_page.open(payment_id)
        payment = edit_page.get_fields()

        assert payment['status'] == 2, "Payment status is not 'Processed'"
    def test_payment_created(self):
        # Get the id of the order we created
        target_url = self.configuration['base_url'] + "/admin/order_manager/payment/"
        index_page = PaymentIndex(self.browser, target_url)
        payment_id = index_page.id_for_payment(self.order_id)
        self.validate((payment_id is not None),
                      error_message="Could not find a Payment.")

        # Check that the status is correct
        target_url = "%s/admin/order_manager/payment/%s" % (self.configuration['base_url'], payment_id)
        edit_page = PaymentEdit(self.browser, target_url)
        payment_fields = edit_page.get_fields()
        self.validate((payment_fields['status'] == 2),
                      error_message="Payment status is not 'Processed'")
Ejemplo n.º 3
0
    def test_payment_created(self):
        # Get the id of the order we created
        target_url = self.configuration[
            'base_url'] + "/admin/order_manager/payment/"
        index_page = PaymentIndex(self.browser, target_url)
        payment_id = index_page.id_for_payment(self.order_id)
        self.validate((payment_id is not None),
                      error_message="Could not find a Payment.")

        # Check that the status is correct
        target_url = "%s/admin/order_manager/payment/%s" % (
            self.configuration['base_url'], payment_id)
        edit_page = PaymentEdit(self.browser, target_url)
        payment_fields = edit_page.get_fields()
        self.validate((payment_fields['status'] == 2),
                      error_message="Payment status is not 'Processed'")