From 9e2b2aad7cda42e8034593d3292fab9c6d817e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Thu, 15 Dec 2022 17:13:59 +0000 Subject: [PATCH] [FIX] website_livechat:tests: fix chatbot flow step "Hello! I'm a bot" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, website_livechat_chatbot_flow_tour failed frequently and non-deterministically at 1st step "Hello! I'm a bot". This happens because the tour starts on url `/`, then reload the url `/`. The livechat button is configured in `auto_popup` mode, which could let chatbot starts running before the 2nd url that must precede the steps. The 2nd url reload is actually useless, and removing it also fixes the issue. closes odoo/odoo#108160 X-original-commit: 402b6e98009017e04245d92cabcc35184014b280 Signed-off-by: Sébastien Theys (seb) Signed-off-by: Alexandre Kühn (aku) --- .../static/tests/tours/website_livechat_chatbot_flow.js | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/website_livechat/static/tests/tours/website_livechat_chatbot_flow.js b/addons/website_livechat/static/tests/tours/website_livechat_chatbot_flow.js index 839e77eb400..57ba2553bf5 100644 --- a/addons/website_livechat/static/tests/tours/website_livechat_chatbot_flow.js +++ b/addons/website_livechat/static/tests/tours/website_livechat_chatbot_flow.js @@ -14,7 +14,6 @@ const messagesContain = (text) => `div.o_thread_message_content:contains("${text tour.register('website_livechat_chatbot_flow_tour', { test: true, - url: '/', }, [{ trigger: messagesContain("Hello! I'm a bot!"), async run() {