Skip to content

Commit a9ea1e3

Browse files
sjai-odoovlst-odoo
authored andcommitted
[FIX] l10n_test_pos_qr_payment: fix tests
1 parent c1a79fd commit a9ea1e3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

addons/l10n_test_pos_qr_payment/tests/test_pos_qr_payment.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_01_pos_order_with_sepa_qr_payment_fail(self):
4343
})
4444
self.main_pos_config.with_user(self.pos_user).open_ui()
4545

46-
self.start_pos_tour('PaymentScreenWithQRPaymentFailure')
46+
self.start_tour("/pos/ui/%d" % self.main_pos_config.id, 'PaymentScreenWithQRPaymentFailure', login="pos_user")
4747

4848
def test_02_pos_order_with_sepa_qr_payment(self):
4949
""" Test Point of Sale QR Payment flow with SEPA
@@ -55,7 +55,7 @@ def test_02_pos_order_with_sepa_qr_payment(self):
5555
})
5656
self.main_pos_config.with_user(self.pos_user).open_ui()
5757

58-
self.start_pos_tour('PaymentScreenWithQRPayment')
58+
self.start_tour("/pos/ui/%d" % self.main_pos_config.id, 'PaymentScreenWithQRPayment', login="pos_user")
5959

6060

6161
@tagged('post_install_l10n', 'post_install', '-at_install')
@@ -106,15 +106,15 @@ def test_01_pos_order_with_swiss_qr_payment_fail(self):
106106
"""
107107
self.main_pos_config.with_user(self.pos_user).open_ui()
108108

109-
self.start_pos_tour('PaymentScreenWithQRPaymentFailure')
109+
self.start_tour("/pos/ui/%d" % self.main_pos_config.id, 'PaymentScreenWithQRPaymentFailure', login="pos_user")
110110

111111
def test_02_pos_order_with_swiss_qr_payment(self):
112112
""" Test Point of Sale QR Payment flow with Swiss QR
113113
We have to select a customer based in Switzerland or Lichtestein to use this payment method
114114
"""
115115
self.main_pos_config.with_user(self.pos_user).open_ui()
116116

117-
self.start_pos_tour('PaymentScreenWithQRPaymentSwiss')
117+
self.start_tour("/pos/ui/%d" % self.main_pos_config.id, 'PaymentScreenWithQRPaymentSwiss', login="pos_user")
118118

119119

120120
@tagged('post_install_l10n', 'post_install', '-at_install')
@@ -158,7 +158,7 @@ def test_01_pos_order_with_fps_qr_payment_fail(self):
158158
"""
159159
self.main_pos_config.with_user(self.pos_user).open_ui()
160160

161-
self.start_pos_tour('PaymentScreenWithQRPaymentFailure')
161+
self.start_tour("/pos/ui/%d" % self.main_pos_config.id, 'PaymentScreenWithQRPaymentFailure', login="pos_user")
162162

163163
def test_02_pos_order_with_emv_qr_payment(self):
164164
""" Test Point of Sale QR Payment flow with FPS.
@@ -173,7 +173,7 @@ def test_02_pos_order_with_emv_qr_payment(self):
173173

174174
self.main_pos_config.with_user(self.pos_user).open_ui()
175175

176-
self.start_pos_tour('PaymentScreenWithQRPayment')
176+
self.start_tour("/pos/ui/%d" % self.main_pos_config.id, 'PaymentScreenWithQRPayment', login="pos_user")
177177

178178

179179
@tagged('post_install_l10n', 'post_install', '-at_install')
@@ -213,7 +213,7 @@ def test_01_pos_order_with_pix_qr_payment_fail(self):
213213
"""
214214
self.main_pos_config.with_user(self.pos_user).open_ui()
215215

216-
self.start_pos_tour('PaymentScreenWithQRPaymentFailure')
216+
self.start_tour("/pos/ui/%d" % self.main_pos_config.id, 'PaymentScreenWithQRPaymentFailure', login="pos_user")
217217

218218
def test_02_pos_order_with_pix_qr_payment(self):
219219
""" Test Point of Sale QR Payment flow with PIX
@@ -228,4 +228,4 @@ def test_02_pos_order_with_pix_qr_payment(self):
228228

229229
self.main_pos_config.with_user(self.pos_user).open_ui()
230230

231-
self.start_pos_tour('PaymentScreenWithQRPayment')
231+
self.start_tour("/pos/ui/%d" % self.main_pos_config.id, 'PaymentScreenWithQRPayment', login="pos_user")

0 commit comments

Comments
 (0)