From be826aa88ec4aefc225059336d4fff310c74880a Mon Sep 17 00:00:00 2001 From: Mitul Shah Date: Fri, 1 Oct 2021 07:53:34 +0000 Subject: [PATCH] [FIX] website_crm: fix random website_crm_pre_tour bug Currently, The 'TestWebsiteCrm.test_catch_logged_partner_info_tour' is randomly failing on runbot. The tour is triggered on contactus page. Tour bug is occurring because editor may not be completely loaded. In that case some selectors are not accessible. This tour is linked with selectors. In this commit updates the selectors and add the extra triggers in order to be sure editor is fully loaded and the tour can resume. Task-2649723 closes odoo/odoo#78676 X-original-commit: d135916b754ae7fde184c4e2d69177dbc1dddc9d Signed-off-by: Thibault Delavallee (tde) --- addons/website_crm/static/tests/tours/website_crm.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/website_crm/static/tests/tours/website_crm.js b/addons/website_crm/static/tests/tours/website_crm.js index 2cc4788bf07..1cc1de3234c 100644 --- a/addons/website_crm/static/tests/tours/website_crm.js +++ b/addons/website_crm/static/tests/tours/website_crm.js @@ -8,10 +8,12 @@ odoo.define('website_crm.tour', function(require) { url: '/contactus?enable_editor=1', }, [{ content: "Select contact form", - trigger: "section.s_website_form", + trigger: "#wrap.o_editable section.s_website_form", + extra_trigger: "body.editor_enable", }, { content: "Open action select", trigger: "we-select:has(we-button:contains('Create an Opportunity')) we-toggler", + extra_trigger: "#oe_snippets .o_we_customize_snippet_btn.active", }, { content: "Select 'Create an Opportunity' as form action", trigger: "we-select we-button:contains('Create an Opportunity')",