diff --git a/bt5/erp5_wechat_secure_payment/TestTemplateItem/portal_components/test.erp5.testERP5WechatSecurePayment.py b/bt5/erp5_wechat_secure_payment/TestTemplateItem/portal_components/test.erp5.testERP5WechatSecurePayment.py
index f8cae75a3591697cc29aefd35f1e55d9fbbf99de..f46e39416139299f96ea91d1941a68acf23a2bd6 100644
--- a/bt5/erp5_wechat_secure_payment/TestTemplateItem/portal_components/test.erp5.testERP5WechatSecurePayment.py
+++ b/bt5/erp5_wechat_secure_payment/TestTemplateItem/portal_components/test.erp5.testERP5WechatSecurePayment.py
@@ -112,8 +112,9 @@ class TestERP5WechatSecurePayment(TestERP5WechatSecurePaymentMixin):
       wechat_mode='PRODUCTION',
     )
     with mock.patch.object(
-      self.service, 'callWechatApi', return_value={"result_code": 'SUCCESS', "code_url": 'http://somecodeurl'}):
+        self.service, 'callWechatApi', return_value={"result_code": 'SUCCESS', "code_url": 'http://somecodeurl'}),\
+        mock.patch.object(self.portal, 'absolute_url', return_value='https://erp5.example.com'):
       result = self.service.navigate({"out_trade_no": '1234', "total_fee": '5000'})
-      self.assertEqual(result, "https://softinst109876.host.vifib.net/erp5/#wechat_payment?trade_no=1234&price=5000&payment_url=http://somecodeurl")
+      self.assertEqual(result, "https://erp5.example.com/#wechat_payment?trade_no=1234&price=5000&payment_url=http://somecodeurl")