This commit is contained in:
Raphael Michel
2019-10-17 16:39:42 +02:00
parent b3e6f44027
commit 89a85392a9
4 changed files with 18 additions and 2 deletions

View File

@@ -712,7 +712,7 @@ class ConfirmStep(CartMixin, AsyncAction, TemplateFlowStep):
[p.id for p in self.positions], self.cart_session.get('email'),
translation.get_language(), self.invoice_address.pk, meta_info,
request.sales_channel, self.cart_session.get('gift_cards'),
self.cart_session['shown_total'])
self.cart_session.get('shown_total'))
def get_success_message(self, value):
create_empty_cart_id(self.request)

View File

@@ -1379,6 +1379,7 @@ class CheckoutTestCase(BaseCheckoutTestCase, TestCase):
cr1.voucher = v
cr1.save()
self.client.get('/%s/%s/checkout/confirm/' % (self.orga.slug, self.event.slug), follow=True)
response = self.client.post('/%s/%s/checkout/confirm/' % (self.orga.slug, self.event.slug), follow=True)
doc = BeautifulSoup(response.rendered_content, "lxml")
self.assertEqual(len(doc.select(".thank-you")), 1)