Skip to content

Commit

Permalink
[IMP] payment_demo: enable demo provider by default when installed
Browse files Browse the repository at this point in the history
task-3557315

closes odoo#138466

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
  • Loading branch information
vchu-odoo committed Oct 18, 2023
1 parent 55a3b66 commit e8fcbea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/payment_demo/data/payment_provider_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

<record id="payment.payment_provider_demo" model="payment.provider">
<field name="code">demo</field>
<field name="state">test</field>
<field name="is_published">True</field>
<field name="inline_form_view_id" ref="inline_form"/>
<field name="token_inline_form_view_id" ref="token_inline_form"/>
<field name="express_checkout_form_view_id" ref="express_checkout_form"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit e8fcbea

Please sign in to comment.