From 06b7e8c29f6058db3b6674fefe7a6901c94e8246 Mon Sep 17 00:00:00 2001 From: tsm-odoo Date: Wed, 3 Apr 2024 09:09:20 +0200 Subject: [PATCH] [FIX] im_livechat: fix chat bot redirect tour The `website_livechat.chatbot_redirect` tour checks that the chat bot still works after redirection. The tour waits for the chat bot message that indicates the redireciton was made. Since the tour restarts the bot to test two differents flows, this message is already present before the second redirection occurs. The tour should instead wait for two occurences of this message the second time. closes odoo/odoo#160296 X-original-commit: cfdcdc405751e2d8d81dbbec34894d3da9c005ef Signed-off-by: Didier Debondt (did) Signed-off-by: Matthieu Stockbauer (tsm) --- .../static/tests/tours/website_livechat_chatbot_redirect.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/website_livechat/static/tests/tours/website_livechat_chatbot_redirect.js b/addons/website_livechat/static/tests/tours/website_livechat_chatbot_redirect.js index f6381d7302a..12957a581e6 100644 --- a/addons/website_livechat/static/tests/tours/website_livechat_chatbot_redirect.js +++ b/addons/website_livechat/static/tests/tours/website_livechat_chatbot_redirect.js @@ -40,6 +40,7 @@ registry.category("web_tour.tours").add("website_livechat.chatbot_redirect", { await contains(".o-mail-Message", { text: "Tadam, we are on the page you asked for!", target: this.$anchor[0], + count: 2, }); const url = new URL(location.href); if (url.pathname !== "/chatbot-redirect") {