From e8fcbeab2d7c2287c68633d6b9f2757af71ca4e3 Mon Sep 17 00:00:00 2001 From: "Valeriya(vchu)" Date: Thu, 12 Oct 2023 10:12:32 +0200 Subject: [PATCH] [IMP] payment_demo: enable demo provider by default when installed task-3557315 closes odoo/odoo#138466 Signed-off-by: Antoine Vandevenne (anv) --- addons/payment_demo/data/payment_provider_data.xml | 2 ++ .../static/tests/tours/onsite_payment_tour.js | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/addons/payment_demo/data/payment_provider_data.xml b/addons/payment_demo/data/payment_provider_data.xml index 25acb7f9e04..b53ce29256b 100644 --- a/addons/payment_demo/data/payment_provider_data.xml +++ b/addons/payment_demo/data/payment_provider_data.xml @@ -3,6 +3,8 @@ demo + test + True diff --git a/addons/website_sale_picking/static/tests/tours/onsite_payment_tour.js b/addons/website_sale_picking/static/tests/tours/onsite_payment_tour.js index eaedac7cd2a..e9ebbc694e5 100644 --- a/addons/website_sale_picking/static/tests/tours/onsite_payment_tour.js +++ b/addons/website_sale_picking/static/tests/tours/onsite_payment_tour.js @@ -13,6 +13,10 @@ registry.category("web_tour.tours").add('onsite_payment_tour', { wsTourUtils.goToCheckout(), ...wsTourUtils.fillAdressForm(), wTourUtils.clickOnElement('Example shipping On Site', '.o_delivery_carrier_select:contains("Example shipping On Site")'), + wTourUtils.clickOnElement( + '"Pay on site"', + 'input[name="o_payment_radio"][data-payment-method-code="pay_on_site"]', + ), wTourUtils.clickOnElement('pay button', 'button[name="o_payment_submit_button"]:visible:not(:disabled)'), { content: "Check if the payment is successful", @@ -26,6 +30,10 @@ registry.category("web_tour.tours").add('onsite_payment_tour', { wsTourUtils.goToCheckout(), ...wsTourUtils.fillAdressForm(), wTourUtils.clickOnElement('"Pay in Store"', '.o_delivery_carrier_select:contains("Example shipping On Site")'), + wTourUtils.clickOnElement( + '"Pay on site"', + 'input[name="o_payment_radio"][data-payment-method-code="pay_on_site"]', + ), wTourUtils.clickOnElement('Pay button', 'button[name="o_payment_submit_button"]:visible:not(:disabled)'), { content: "Check if the payment is successful",