diff --git a/product/ERP5/tests/testERP5Commerce.py b/product/ERP5/tests/testERP5Commerce.py index 45442633074f5ccc0f170b562384241fbe799302..f02843dd1a567cd451d12c4265b6ac7f9ca120f8 100644 --- a/product/ERP5/tests/testERP5Commerce.py +++ b/product/ERP5/tests/testERP5Commerce.py @@ -720,7 +720,9 @@ class TestCommerce(ERP5TypeTestCase): #6 : paypal step 3 : check if this token is confirmed by paypal error = self.website.WebSection_checkPaypalIdentification() self.assertEquals(error, None) - self.assertTrue('/cart' in request.RESPONSE.getHeader('location')) + + url_location = request.RESPONSE.getHeader('location') + self.assertTrue('/SaleOrder_viewAsWeb' in url_location) #7 : paypal step 4 : validate the payment self.assertEquals(1,