diff --git a/addons/account/static/tests/tours/tax_group_tests.js b/addons/account/static/tests/tours/tax_group_tests.js index 88fc5d83883..e30e4d98d7e 100644 --- a/addons/account/static/tests/tours/tax_group_tests.js +++ b/addons/account/static/tests/tours/tax_group_tests.js @@ -124,5 +124,6 @@ registry.category("web_tour.tours").add('account_tax_group', { { content: "Check tax value is reset", trigger: '.o_tax_group_amount_value:contains("120")', + isCheck: true, }, ]}); diff --git a/addons/auth_totp_mail/static/tests/totp_flow.js b/addons/auth_totp_mail/static/tests/totp_flow.js index 620544de12a..20961f7171a 100644 --- a/addons/auth_totp_mail/static/tests/totp_flow.js +++ b/addons/auth_totp_mail/static/tests/totp_flow.js @@ -56,7 +56,8 @@ registry.category("web_tour.tours").add('totp_admin_self_invite', { } }, { content: "check that user cannot invite themself.", - trigger: "body.CannotInviteYourself" + trigger: "body.CannotInviteYourself", + isCheck: true, }]}); registry.category("web_tour.tours").add('totp_admin_invite', { @@ -71,4 +72,5 @@ registry.category("web_tour.tours").add('totp_admin_invite', { }, { content: "check that demo user can be invited to use 2FA.", trigger: "button:contains(Invite to use 2FA)", + isCheck: true, }]}); diff --git a/addons/calendar/static/tests/tours/calendar_tour.js b/addons/calendar/static/tests/tours/calendar_tour.js index f46b09b24a5..b524cdc9b2f 100644 --- a/addons/calendar/static/tests/tours/calendar_tour.js +++ b/addons/calendar/static/tests/tours/calendar_tour.js @@ -67,6 +67,7 @@ { trigger: '.o_event_title:contains("TEST EVENT")', content: 'Check the event title', + isCheck: true, }, ]}); @@ -119,6 +120,7 @@ { content: 'Wait declined status', trigger: '.o_attendee_status_declined', + isCheck: true, }, ]}); @@ -149,5 +151,6 @@ { content: 'Wait declined status', trigger: '.o_attendee_status_declined', + isCheck: true, }, ]}); diff --git a/addons/crm/static/tests/tours/crm_email_and_phone_propagation.js b/addons/crm/static/tests/tours/crm_email_and_phone_propagation.js index a76b646cc83..c2e8c1ade61 100644 --- a/addons/crm/static/tests/tours/crm_email_and_phone_propagation.js +++ b/addons/crm/static/tests/tours/crm_email_and_phone_propagation.js @@ -51,5 +51,6 @@ run: 'click', },{ trigger: '.o_kanban_renderer', + isCheck: true, } ]}); diff --git a/addons/crm/static/tests/tours/crm_rainbowman.js b/addons/crm/static/tests/tours/crm_rainbowman.js index 2057314ba1b..2a22bfcda1e 100644 --- a/addons/crm/static/tests/tours/crm_rainbowman.js +++ b/addons/crm/static/tests/tours/crm_rainbowman.js @@ -84,5 +84,6 @@ trigger: ".o_menu_brand", extra_trigger: ".o_reward_rainbow", content: "last rainbowman appears", + isCheck: true, } ]}); diff --git a/addons/hr_holidays/static/src/tours/hr_holidays_tour.js b/addons/hr_holidays/static/src/tours/hr_holidays_tour.js index ff5d472a2a3..d8c3aa6ae59 100644 --- a/addons/hr_holidays/static/src/tours/hr_holidays_tour.js +++ b/addons/hr_holidays/static/src/tours/hr_holidays_tour.js @@ -82,6 +82,12 @@ registry.category("web_tour.tours").add('hr_holidays_tour', { { trigger: 'button[name="action_approve"]', content: _t("Let's approve it"), - position: 'bottom' + position: 'bottom', + }, + { + trigger: `tr.o_data_row:first:not(:has(button[name="action_approve"]))`, + content: "Verify leave is approved", + auto: true, + isCheck: true, } ]}); diff --git a/addons/im_livechat/static/tests/tours/im_livechat_channel_creation_tour.js b/addons/im_livechat/static/tests/tours/im_livechat_channel_creation_tour.js index da897de374b..d363c846322 100644 --- a/addons/im_livechat/static/tests/tours/im_livechat_channel_creation_tour.js +++ b/addons/im_livechat/static/tests/tours/im_livechat_channel_creation_tour.js @@ -9,6 +9,7 @@ const requestChatSteps = [ }, { trigger: ".o-mail-ChatWindow", + isCheck: true, }, ]; @@ -37,6 +38,7 @@ registry.category("web_tour.tours").add("im_livechat_request_chat_and_send_messa }, { trigger: ".o-mail-Message:contains('Hello, I need help')", + isCheck: true, }, ], }); diff --git a/addons/mail/static/src/discuss/core/web/discuss_tour.js b/addons/mail/static/src/discuss/core/web/discuss_tour.js index b1a1143b5d2..f2b07287cbf 100644 --- a/addons/mail/static/src/discuss/core/web/discuss_tour.js +++ b/addons/mail/static/src/discuss/core/web/discuss_tour.js @@ -88,5 +88,10 @@ registry.category("web_tour.tours").add("mail_tour", { ), position: "bottom", }, + { + trigger: ".o-discuss-ChannelSelector", + auto: true, + isCheck: true, + } ], }); diff --git a/addons/mail/static/tests/tours/mail_chatter_activity_test_tour.js b/addons/mail/static/tests/tours/mail_chatter_activity_test_tour.js index 3b32f93a592..97c1c4f455f 100644 --- a/addons/mail/static/tests/tours/mail_chatter_activity_test_tour.js +++ b/addons/mail/static/tests/tours/mail_chatter_activity_test_tour.js @@ -30,6 +30,7 @@ registry.category("web_tour.tours").add("mail_activity_schedule_from_chatter", { }, { trigger: ".o-mail-Message:contains('Play Mario Kart')", + isCheck: true, }, ], }); diff --git a/addons/mail/static/tests/tours/mail_full_composer_test_tour.js b/addons/mail/static/tests/tours/mail_full_composer_test_tour.js index 38745fcc835..0b1a3b913c3 100644 --- a/addons/mail/static/tests/tours/mail_full_composer_test_tour.js +++ b/addons/mail/static/tests/tours/mail_full_composer_test_tour.js @@ -104,6 +104,7 @@ registry.category("web_tour.tours").add("mail/static/tests/tours/mail_full_compo { content: "Check message contains the attachment", trigger: '.o-mail-Message .o-mail-AttachmentCard:contains("text.txt")', + isCheck: true, }, ], }); diff --git a/addons/point_of_sale/static/tests/tours/helpers/ProductScreenTourMethods.js b/addons/point_of_sale/static/tests/tours/helpers/ProductScreenTourMethods.js index e574b83eae6..85bad9776ca 100644 --- a/addons/point_of_sale/static/tests/tours/helpers/ProductScreenTourMethods.js +++ b/addons/point_of_sale/static/tests/tours/helpers/ProductScreenTourMethods.js @@ -34,6 +34,11 @@ class Do { trigger: ".pos-rightheader .floor-button", mobile: true, }, + { + content: "Check the product page", + trigger: ".product-list-container .product-list", + isCheck: true, + }, ]; } @@ -365,6 +370,10 @@ class Check { content: "go back to the products", trigger: ".pos-rightheader .floor-button", mobile: true, + }, { + content: "Check the product page", + trigger: ".product-list-container .product-list", + isCheck: true, }); return res; } @@ -414,6 +423,11 @@ class Check { trigger: ".pos-rightheader .floor-button", mobile: true, }, + { + content: "Check the product page", + trigger: ".product-list-container .product-list", + isCheck: true, + } ]; } totalTaxIs(amount) { diff --git a/addons/portal/static/tests/tours/portal.js b/addons/portal/static/tests/tours/portal.js index 5a266f9b933..b2ef4fbc0e3 100644 --- a/addons/portal/static/tests/tours/portal.js +++ b/addons/portal/static/tests/tours/portal.js @@ -12,7 +12,8 @@ registry.category("web_tour.tours").add('portal_load_homepage', { }, { content: "Load my account details", - trigger: 'input[value="Joel Willis"]' + trigger: 'input[value="Joel Willis"]', + isCheck: true, } ] }); diff --git a/addons/pos_self_order/static/tests/tours/self_order_after_meal_cart_tour.js b/addons/pos_self_order/static/tests/tours/self_order_after_meal_cart_tour.js index e9248b71bea..b9cf0ece2ff 100644 --- a/addons/pos_self_order/static/tests/tours/self_order_after_meal_cart_tour.js +++ b/addons/pos_self_order/static/tests/tours/self_order_after_meal_cart_tour.js @@ -101,5 +101,6 @@ registry.category("web_tour.tours").add("self_order_after_meal_cart_tour", { PosSelf.check.isPrimaryBtn("My Orders"), PosSelf.action.clickPrimaryBtn("My Orders"), PosSelf.action.clickBack(), + PosSelf.check.isPrimaryBtn("View Menu"), ], }); diff --git a/addons/project/static/tests/tours/project_burndown_chart_tour.js b/addons/project/static/tests/tours/project_burndown_chart_tour.js index 492afe74739..c7d9f4330ff 100644 --- a/addons/project/static/tests/tours/project_burndown_chart_tour.js +++ b/addons/project/static/tests/tours/project_burndown_chart_tour.js @@ -73,4 +73,5 @@ registry.category("web_tour.tours").add('burndown_chart_tour', { }, { content: 'The comparison menu is not rendered', trigger: ':not(:has(.o_comparison_menu))', + isCheck: true, }]}); diff --git a/addons/project/static/tests/tours/project_sharing_tour.js b/addons/project/static/tests/tours/project_sharing_tour.js index 2cf1ed3aafa..c1dc2c69950 100644 --- a/addons/project/static/tests/tours/project_sharing_tour.js +++ b/addons/project/static/tests/tours/project_sharing_tour.js @@ -88,6 +88,10 @@ const projectSharingSteps = [...stepUtils.goToAppSteps("project.menu_main_pm", ' }, { trigger: 'iframe button.o_switch_view.o_list', content: 'Go to the list view', +}, { + trigger: 'iframe .o_list_view', + content: 'Check the list view', + isCheck: true, }]; registry.category("web_tour.tours").add('project_sharing_tour', { diff --git a/addons/project/static/tests/tours/project_update_tour_tests.js b/addons/project/static/tests/tours/project_update_tour_tests.js index 23a7cafbd96..82ea7984bf1 100644 --- a/addons/project/static/tests/tours/project_update_tour_tests.js +++ b/addons/project/static/tests/tours/project_update_tour_tests.js @@ -22,7 +22,11 @@ function openProjectUpdateAndReturnToTasks(view, viewClass) { trigger: '.o_back_button', content: 'Go back to the task view : ' + view, // extra_trigger: '.o_list_view', // FIXME: [XBO] uncomment it when the sample data will be displayed after discarding the creation of a project update record. - }, + }, { + trigger: `.${viewClass}`, + content: 'Check the task view : ' + view, + isCheck: true, + } ]; } diff --git a/addons/stock/static/tests/tours/stock_report_tests.js b/addons/stock/static/tests/tours/stock_report_tests.js index f421d57de33..c1b9eb28431 100644 --- a/addons/stock/static/tests/tours/stock_report_tests.js +++ b/addons/stock/static/tests/tours/stock_report_tests.js @@ -17,5 +17,6 @@ }, { trigger: 'iframe .o_report_stock_rule', + isCheck: true, }, ]}); diff --git a/addons/survey/static/tests/tours/certification_failure.js b/addons/survey/static/tests/tours/certification_failure.js index 346f1e05447..0be9ca10a9c 100644 --- a/addons/survey/static/tests/tours/certification_failure.js +++ b/addons/survey/static/tests/tours/certification_failure.js @@ -98,6 +98,7 @@ var lastSteps = [{ } }, { trigger: 'h1.tour_success', + isCheck: true, }]; registry.category("web_tour.tours").add('test_certification_failure', { diff --git a/addons/survey/static/tests/tours/certification_success.js b/addons/survey/static/tests/tours/certification_success.js index 419748605b9..126788f9462 100644 --- a/addons/survey/static/tests/tours/certification_success.js +++ b/addons/survey/static/tests/tours/certification_success.js @@ -92,5 +92,6 @@ registry.category("web_tour.tours").add('test_certification_success', { }, { content: "test passed", trigger: 'div:contains("Congratulations, you have passed the test!")', + isCheck: true, } ]}); diff --git a/addons/survey/static/tests/tours/survey.js b/addons/survey/static/tests/tours/survey.js index e60e5e5557f..d1d531bae34 100644 --- a/addons/survey/static/tests/tours/survey.js +++ b/addons/survey/static/tests/tours/survey.js @@ -63,5 +63,6 @@ registry.category("web_tour.tours").add('test_survey', { { content: 'Thank you', trigger: 'h1:contains("Thank you!")', + isCheck: true, } ]}); diff --git a/addons/survey/static/tests/tours/survey_chained_conditional_questions.js b/addons/survey/static/tests/tours/survey_chained_conditional_questions.js index 5af3cf500ed..c1358c4f1cd 100644 --- a/addons/survey/static/tests/tours/survey_chained_conditional_questions.js +++ b/addons/survey/static/tests/tours/survey_chained_conditional_questions.js @@ -67,6 +67,7 @@ registry.category("web_tour.tours").add('test_survey_chained_conditional_questio { content: 'Thank you', trigger: 'h1:contains("Thank you!")', + isCheck: true, } ]}); diff --git a/addons/survey/static/tests/tours/survey_prefill.js b/addons/survey/static/tests/tours/survey_prefill.js index b4f75ba5022..74d4d0a0fa3 100644 --- a/addons/survey/static/tests/tours/survey_prefill.js +++ b/addons/survey/static/tests/tours/survey_prefill.js @@ -146,6 +146,7 @@ registry.category("web_tour.tours").add('test_survey_prefill', { $('.o_survey_title').addClass('tour_success_2'); } }, { - trigger: '.o_survey_title.tour_success_2' + trigger: '.o_survey_title.tour_success_2', + isCheck: true, } ]}); diff --git a/addons/website/static/tests/tours/snippet_popup_display_on_click.js b/addons/website/static/tests/tours/snippet_popup_display_on_click.js index def7877f812..636b17f3986 100644 --- a/addons/website/static/tests/tours/snippet_popup_display_on_click.js +++ b/addons/website/static/tests/tours/snippet_popup_display_on_click.js @@ -81,5 +81,6 @@ wTourUtils.registerWebsitePreviewTour("snippet_popup_display_on_click", { in_modal: false, extra_trigger: ".o_website_preview[data-view-xmlid='website.homepage']", trigger: "iframe .s_popup .modal[id='Win-%2420'].show", + isCheck: true, }, ]); diff --git a/addons/website/static/tests/tours/snippet_version.js b/addons/website/static/tests/tours/snippet_version.js index bde143edb4e..e0d0a69e1c0 100644 --- a/addons/website/static/tests/tours/snippet_version.js +++ b/addons/website/static/tests/tours/snippet_version.js @@ -57,4 +57,5 @@ wTourUtils.registerWebsitePreviewTour("snippet_version", { content: "s_share is outdated", extra_trigger: 'we-customizeblock-options:contains(Share) .snippet-option-VersionControl > we-alert', trigger: 'iframe body', + isCheck: true, }]); diff --git a/addons/website/static/tests/tours/website_form_editor.js b/addons/website/static/tests/tours/website_form_editor.js index dd0d83273e2..d12d2237219 100644 --- a/addons/website/static/tests/tours/website_form_editor.js +++ b/addons/website/static/tests/tours/website_form_editor.js @@ -492,6 +492,7 @@ content: 'Verify that the recipient email has been saved', // We have to this that way because the input type = hidden. trigger: 'iframe form:has(input[name="email_to"][value="test@test.test"])', + isCheck: true, }, ]); diff --git a/addons/website/static/tests/tours/website_form_editor_frontend.js b/addons/website/static/tests/tours/website_form_editor_frontend.js index 8dfdccc743b..2771649595f 100644 --- a/addons/website/static/tests/tours/website_form_editor_frontend.js +++ b/addons/website/static/tests/tours/website_form_editor_frontend.js @@ -153,7 +153,8 @@ registry.category("web_tour.tours").add("website_form_editor_tour_submit", { }, { content: "Check form is submitted without errors", - trigger: "#wrap:has(h1:contains('Thank You!'))" + trigger: "#wrap:has(h1:contains('Thank You!'))", + isCheck: true, } ]}); @@ -187,6 +188,7 @@ registry.category("web_tour.tours").add("website_form_editor_tour_results", { content: "Check mail.mail records have been created", trigger: "#website_form_editor_success_test_tour_mail_mail", allowInvisible: true, + isCheck: true, } ]}); registry.category("web_tour.tours").add('website_form_contactus_submit', { @@ -210,5 +212,6 @@ registry.category("web_tour.tours").add('website_form_contactus_submit', { { content: 'Check form is submitted without errors', trigger: '#wrap:has(h1:contains("Thank You!"))', + isCheck: true, }, ]}); diff --git a/addons/website_blog/static/src/js/tours/website_blog.js b/addons/website_blog/static/src/js/tours/website_blog.js index b97ac40ba67..2b771d91a9f 100644 --- a/addons/website_blog/static/src/js/tours/website_blog.js +++ b/addons/website_blog/static/src/js/tours/website_blog.js @@ -87,5 +87,9 @@ extra_trigger: "iframe body:not(.editor_enable)", position: "bottom", content: Markup(_t("Publish your blog post to make it visible to your visitors.")), - }, + }, { + trigger: '.o_menu_systray_item a:contains("Published")', + auto: true, + isCheck: true, + } ]); diff --git a/addons/website_crm/static/tests/tours/website_crm.js b/addons/website_crm/static/tests/tours/website_crm.js index bbc41c0e0c4..3ca107e8d7d 100644 --- a/addons/website_crm/static/tests/tours/website_crm.js +++ b/addons/website_crm/static/tests/tours/website_crm.js @@ -22,6 +22,7 @@ { content: "Ensure form model has changed and page reload is done after save", trigger: "iframe section.s_website_form form[data-model_name='crm.lead']", + isCheck: true, }]); registry.category("web_tour.tours").add('website_crm_tour', { @@ -56,7 +57,8 @@ trigger: ".s_website_form_send" }, { content: "Check we were redirected to the success page", - trigger: "#wrap:has(h1:contains('Thank You!'))" + trigger: "#wrap:has(h1:contains('Thank You!'))", + isCheck: true, }]}); registry.category("web_tour.tours").add('website_crm_catch_logged_partner_info_tour', { @@ -75,7 +77,8 @@ trigger: ".s_website_form_send" }, { content: "Check we were redirected to the success page", - trigger: "#wrap:has(h1:contains('Thank You!'))" + trigger: "#wrap:has(h1:contains('Thank You!'))", + isCheck: true, }]}); export default {}; diff --git a/addons/website_event/static/tests/tours/tickets_questions.js b/addons/website_event/static/tests/tours/tickets_questions.js index c7c85b4f07f..87a5994b708 100644 --- a/addons/website_event/static/tests/tours/tickets_questions.js +++ b/addons/website_event/static/tests/tours/tickets_questions.js @@ -52,5 +52,5 @@ registry.category("web_tour.tours").add('test_tickets_questions', { // The tour stops too early and the registration fails if we don't wait the confirmation. content: 'Wait for confirmation', trigger: '.o_wereg_confirmed, .oe_cart', - auto: true + isCheck: true, }]}); diff --git a/addons/website_event/static/tests/tours/website_event.js b/addons/website_event/static/tests/tours/website_event.js index fbeef1fe2f4..661833c1308 100644 --- a/addons/website_event/static/tests/tours/website_event.js +++ b/addons/website_event/static/tests/tours/website_event.js @@ -53,4 +53,5 @@ trigger: ".o_website_edit_in_backend > a", content: _t("Click here to customize your event further."), position: "bottom", + isCheck: true, }]); diff --git a/addons/website_event/static/tests/tours/website_event_pages_seo.js b/addons/website_event/static/tests/tours/website_event_pages_seo.js index 156bdcabcaa..7b52168edc4 100644 --- a/addons/website_event/static/tests/tours/website_event_pages_seo.js +++ b/addons/website_event/static/tests/tours/website_event_pages_seo.js @@ -29,5 +29,6 @@ registry.category("web_tour.tours").add('website_event_pages_seo', { content: "Check that the page title is adapted, inside and outside the iframe", trigger: 'html:has(title:containsExactText(Hello, world!))', extra_trigger: 'iframe html:has(title:containsExactText(Hello, world!))', + isCheck: true, }, ]}); diff --git a/addons/website_forum/static/src/js/tours/website_forum.js b/addons/website_forum/static/src/js/tours/website_forum.js index a8abd5f28ac..ae4d62dfefb 100644 --- a/addons/website_forum/static/src/js/tours/website_forum.js +++ b/addons/website_forum/static/src/js/tours/website_forum.js @@ -60,4 +60,9 @@ trigger: ".o_wforum_validate_toggler[data-karma]:first", content: _t("Click here to accept this answer."), position: "right", + }, { + content: "Check edit button is there", + trigger: "a:contains('Edit your answer')", + auto: true, + isCheck: true, }]); diff --git a/addons/website_hr_recruitment/static/tests/tours/website_hr_recruitment.js b/addons/website_hr_recruitment/static/tests/tours/website_hr_recruitment.js index 78ef6f231c3..3f6ec61d029 100644 --- a/addons/website_hr_recruitment/static/tests/tours/website_hr_recruitment.js +++ b/addons/website_hr_recruitment/static/tests/tours/website_hr_recruitment.js @@ -32,6 +32,7 @@ }, { content: "Check the form is submitted without errors", trigger: "#jobs_thankyou h1:contains('Congratulations')", + isCheck: true, }]; } diff --git a/addons/website_livechat/static/tests/tours/website_livechat_common.js b/addons/website_livechat/static/tests/tours/website_livechat_common.js index 0a1bb9c846f..99497117c00 100644 --- a/addons/website_livechat/static/tests/tours/website_livechat_common.js +++ b/addons/website_livechat/static/tests/tours/website_livechat_common.js @@ -50,6 +50,7 @@ export const start = [ content: "Is your message correctly sent ?", trigger: "body.no_duplicated_message", shadow_dom: false, + isCheck: true, }, ]; @@ -79,6 +80,7 @@ export const feedback = [ { content: "Thanks for your feedback", trigger: "p:contains('Thank you for your feedback')", + isCheck: true, }, ]; @@ -118,6 +120,7 @@ export const close = [ content: "Is the Test succeded ?", trigger: "body.tour_success", shadow_dom: false, + isCheck: true, }, ]; diff --git a/addons/website_livechat/static/tests/tours/website_livechat_request.js b/addons/website_livechat/static/tests/tours/website_livechat_request.js index bda4004ef4c..50baea887c1 100644 --- a/addons/website_livechat/static/tests/tours/website_livechat_request.js +++ b/addons/website_livechat/static/tests/tours/website_livechat_request.js @@ -39,6 +39,7 @@ const chatRequest = [ content: "Is your message correctly sent ?", shadow_dom: false, trigger: "body.no_duplicated_message", + isCheck: true, }, ]; diff --git a/addons/website_livechat/static/tests/tours/website_livechat_session_user_changes.js b/addons/website_livechat/static/tests/tours/website_livechat_session_user_changes.js index a89833aac03..f3a7b7f4641 100644 --- a/addons/website_livechat/static/tests/tours/website_livechat_session_user_changes.js +++ b/addons/website_livechat/static/tests/tours/website_livechat_session_user_changes.js @@ -57,6 +57,7 @@ registry.category("web_tour.tours").add("website_livechat_login_after_chat_start content: "Livechat button is present since the old livechat session was linked to the public user, not the current user.", trigger: ".o-livechat-LivechatButton", + isCheck: true, }, ], }); @@ -98,6 +99,7 @@ registry.category("web_tour.tours").add("website_livechat_logout_after_chat_star content: "Livechat button is present since the old livechat session was linked to the logged user, not the public one.", trigger: ".o-livechat-LivechatButton", + isCheck: true, }, ], }); diff --git a/addons/website_mass_mailing/static/tests/tours/snippet_newsletter_block_with_edit.js b/addons/website_mass_mailing/static/tests/tours/snippet_newsletter_block_with_edit.js index 5884d8c9748..c4f4918cfb7 100644 --- a/addons/website_mass_mailing/static/tests/tours/snippet_newsletter_block_with_edit.js +++ b/addons/website_mass_mailing/static/tests/tours/snippet_newsletter_block_with_edit.js @@ -75,5 +75,6 @@ wTourUtils.registerWebsitePreviewTour('snippet_newsletter_block_with_edit', { { content: 'Check that the link style is correct', trigger: 'iframe .s_newsletter_block .js_subscribed_btn.btn.btn-custom.flat:not(.btn-success)', + isCheck: true, }, ]); diff --git a/addons/website_sale/static/src/js/tours/tour_utils.js b/addons/website_sale/static/src/js/tours/tour_utils.js index ee0c14a2cd8..1b04c78a3fc 100644 --- a/addons/website_sale/static/src/js/tours/tour_utils.js +++ b/addons/website_sale/static/src/js/tours/tour_utils.js @@ -158,6 +158,7 @@ function payWithTransfer(redirect=false) { content: "Last step", trigger: '.oe_website_sale_tx_status:contains("Please use the following transfer details")', timeout: 30000, + isCheck: true, }] } else { return [ diff --git a/addons/website_sale/static/tests/tours/website_sale_complete_flow.js b/addons/website_sale/static/tests/tours/website_sale_complete_flow.js index 483989fee1b..fc7371c286f 100644 --- a/addons/website_sale/static/tests/tours/website_sale_complete_flow.js +++ b/addons/website_sale/static/tests/tours/website_sale_complete_flow.js @@ -366,4 +366,9 @@ content: "Pay Now", extra_trigger: '#payment_method label:contains("Wire Transfer") input:checked,#payment_method:not(:has("input:radio:visible"))', trigger: 'button[name="o_payment_submit_button"]:visible', + }, + { + content: "Check payment status confirmation window", + trigger: ".oe_website_sale_tx_status[data-order-tracking-info]", + isCheck: true, }]}); diff --git a/addons/website_sale/static/tests/tours/website_sale_reorder_from_portal.js b/addons/website_sale/static/tests/tours/website_sale_reorder_from_portal.js index 4196d8fc1f1..3dbe263322d 100644 --- a/addons/website_sale/static/tests/tours/website_sale_reorder_from_portal.js +++ b/addons/website_sale/static/tests/tours/website_sale_reorder_from_portal.js @@ -62,6 +62,7 @@ registry.category("web_tour.tours").add('website_sale_reorder_from_portal', { { content: "Check that quantity is 1", trigger: ".js_quantity[value='1']", + isCheck: true, }, ] }); diff --git a/addons/website_sale/static/tests/tours/website_sale_shop_dynamic_variants.js b/addons/website_sale/static/tests/tours/website_sale_shop_dynamic_variants.js index fdfc500d8a9..db0814df04a 100644 --- a/addons/website_sale/static/tests/tours/website_sale_shop_dynamic_variants.js +++ b/addons/website_sale/static/tests/tours/website_sale_shop_dynamic_variants.js @@ -30,5 +30,6 @@ registry.category("web_tour.tours").add('tour_shop_dynamic_variants', { { content: "check the variant is in the cart", trigger: 'td.td-product_name:contains(Dynamic Product (Dynamic Value 2))', + isCheck: true, }, ]}); diff --git a/addons/website_sale/static/tests/tours/website_sale_shop_editor_tour.js b/addons/website_sale/static/tests/tours/website_sale_shop_editor_tour.js index 91d2ec52ac7..fc0b464d80c 100644 --- a/addons/website_sale/static/tests/tours/website_sale_shop_editor_tour.js +++ b/addons/website_sale/static/tests/tours/website_sale_shop_editor_tour.js @@ -17,4 +17,8 @@ wTourUtils.registerWebsitePreviewTour("shop_editor", { trigger: "iframe div.o_pricelist_dropdown a[data-bs-toggle=dropdown]", extra_trigger: "iframe div.o_pricelist_dropdown a[data-bs-toggle=dropdown][aria-expanded=false]", content: "Click on the pricelist again.", +}, { + trigger: "iframe div.o_pricelist_dropdown a[data-bs-toggle=dropdown][aria-expanded=true]", + content: "Check pricelist dropdown opened", + isCheck: true, }]); diff --git a/addons/website_sale/static/tests/tours/website_sale_shop_mail.js b/addons/website_sale/static/tests/tours/website_sale_shop_mail.js index 88a132b2d7b..72c0cc1414e 100644 --- a/addons/website_sale/static/tests/tours/website_sale_shop_mail.js +++ b/addons/website_sale/static/tests/tours/website_sale_shop_mail.js @@ -73,5 +73,6 @@ registry.category("web_tour.tours").add('shop_mail', { { content: "wait mail to be sent, and go see it", trigger: '.o-mail-Message-body:contains("Your"):contains("order")', + isCheck: 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 020003b5b7f..d4b679a2734 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 @@ -40,6 +40,7 @@ registry.category("web_tour.tours").add('onsite_payment_tour', { { content: 'Assert pay on site is NOT an option', trigger: 'body:not(:contains("Test Payment Provider"))', + isCheck: true, }, ] }); diff --git a/addons/website_sale_product_configurator/static/tests/tours/website_sale_variants_modal_window.js b/addons/website_sale_product_configurator/static/tests/tours/website_sale_variants_modal_window.js index abf2a5f1557..e7d2b432dfd 100644 --- a/addons/website_sale_product_configurator/static/tests/tours/website_sale_variants_modal_window.js +++ b/addons/website_sale_product_configurator/static/tests/tours/website_sale_variants_modal_window.js @@ -60,5 +60,6 @@ { content: "Check never custom variant", trigger: 'td.td-product_name:contains(Never attribute size custom: Yes never custom: TEST)', + isCheck: true, } ]}); diff --git a/addons/website_sale_stock/static/src/js/tours/website_sale_stock_reorder_from_portal.js b/addons/website_sale_stock/static/src/js/tours/website_sale_stock_reorder_from_portal.js index 62534e17c29..b69829c09d5 100644 --- a/addons/website_sale_stock/static/src/js/tours/website_sale_stock_reorder_from_portal.js +++ b/addons/website_sale_stock/static/src/js/tours/website_sale_stock_reorder_from_portal.js @@ -19,6 +19,7 @@ registry.category("web_tour.tours").add('website_sale_stock_reorder_from_portal' { content: "Check that there is one product that does not have enough stock", trigger: "#o_wsale_reorder_body div.text-warning:contains('You ask for 2.0 Units but only 1.0 are available.')", + isCheck: true, }, ] }); diff --git a/addons/website_sale_stock/static/tests/tours/website_sale_stock_stock_notification.js b/addons/website_sale_stock/static/tests/tours/website_sale_stock_stock_notification.js index 0a024c1404f..317d6315292 100644 --- a/addons/website_sale_stock/static/tests/tours/website_sale_stock_stock_notification.js +++ b/addons/website_sale_stock/static/tests/tours/website_sale_stock_stock_notification.js @@ -26,6 +26,7 @@ registry.category("web_tour.tours").add('back_in_stock_notification_product', { { content: "Success Message", trigger: '#stock_notification_success_message', + isCheck: true, }, ], }); diff --git a/addons/website_sale_stock_wishlist/static/tests/tours/website_sale_stock_wishlist_stock_notification.js b/addons/website_sale_stock_wishlist/static/tests/tours/website_sale_stock_wishlist_stock_notification.js index 2c91c535754..eb9a5e0160f 100644 --- a/addons/website_sale_stock_wishlist/static/tests/tours/website_sale_stock_wishlist_stock_notification.js +++ b/addons/website_sale_stock_wishlist/static/tests/tours/website_sale_stock_wishlist_stock_notification.js @@ -22,6 +22,7 @@ registry.category("web_tour.tours").add('stock_notification_wishlist', { { content: "Success Message", trigger: '#stock_notification_success_message', + isCheck: true, }, ], }); diff --git a/addons/website_slides/static/tests/tours/slides_tour_tools.js b/addons/website_slides/static/tests/tours/slides_tour_tools.js index e0240c0cbc9..8d419e337b0 100644 --- a/addons/website_slides/static/tests/tours/slides_tour_tools.js +++ b/addons/website_slides/static/tests/tours/slides_tour_tools.js @@ -161,6 +161,11 @@ const addImageToSection = (sectionName, pageName, backend) => { { content: 'eLearning: back to course', trigger: `${prefix}.o_wslides_fs_sidebar_header a:contains("Déboulonnate")`, +}, +{ + content: 'eLearning: check course page', + trigger: `${prefix}.o_wslides_course_main`, + isCheck: true, }]; }; @@ -214,6 +219,10 @@ const addPdfToSection = function (sectionName, pageName, backend) { }, { content: 'eLearning: back to course', trigger: `${prefix}.o_wslides_fs_sidebar_header a:contains("Déboulonnate")`, +}, { + content: 'eLearning: check course page', + trigger: `${prefix}.o_wslides_course_main`, + isCheck: true, }]; }; diff --git a/odoo/addons/base/static/tests/test_ir_model_fields_translation.js b/odoo/addons/base/static/tests/test_ir_model_fields_translation.js index 34ad80c27bf..0c03b6442ac 100644 --- a/odoo/addons/base/static/tests/test_ir_model_fields_translation.js +++ b/odoo/addons/base/static/tests/test_ir_model_fields_translation.js @@ -19,6 +19,7 @@ function checkLoginColumn(translation) { }, { content: `Login column should be ${translation}`, trigger: `[data-name="login"] span:contains("${translation}")`, + isCheck: true, } ] }