8000 [FIX] website_payment: remove inconsistencies in donation test · odoo/odoo@cd0437a · GitHub
[go: up one dir, main page]

Skip to content

Commit cd0437a

Browse files
committed
[FIX] website_payment: remove inconsistencies in donation test
Since the new tour system that was introduced through many commits leading to 18.0, this donation test was left with errors and/or useless things. Related to runbot-77224 closes #210494 X-original-commit: 74c9c92 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
1 parent dc9c01d commit cd0437a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

addons/website_payment/static/tests/tours/donation.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ registry.category('web_tour.tours').add('donation_snippet_use', {
2727
steps: () => [
2828
// -- Testing the minimum amount --
2929
{
30-
content: "Enter a negative custom amount, testing the minimum amount",
30+
content: "Enter a custom amount smaller than the minimum, testing the minimum amount",
3131
trigger: "#s_donation_amount_input",
3232
run: "edit 1",
3333
},
@@ -92,10 +92,12 @@ registry.category('web_tour.tours').add('donation_snippet_use', {
9292
run: "edit 1",
9393
},
9494
{
95-
content:
96-
"Verify whether the minimum value warning message is displayed while other warning messages remain hidden",
97-
trigger:
98-
"small#warning_min_message_id:contains('The minimum donation amount is $5.'), .o_donation_payment_form:has(small#warning_message_id.d-none)",
95+
content: "Verify whether the minimum value warning message is displayed",
96+
trigger: "small#warning_min_message_id:contains('The minimum donation amount is $5.')",
97+
},
98+
{
99+
content: "Verify other warning messages remain hidden",
100+
trigger: ".o_donation_payment_form:has(small#warning_message_id.d-none)",
99101
},
100102
{
101103
content: "Click on the first radio button",
@@ -104,7 +106,11 @@ registry.category('web_tour.tours').add('donation_snippet_use', {
104106
},
105107
{
106108
content: "Ensure the custom amount value is cleared",
107-
trigger: "input#other_amount_value:empty, #warning_min_message_id.d-none",
109+
trigger: "input#other_amount_value:empty",
110+
},
111+
{
112+
content: "Ensure no warning message is displayed",
113+
trigger: ".o_donation_payment_form:has(#warning_min_message_id.d-none)",
108114
},
109115
],
110116
});

0 commit comments

Comments
 (0)
0