[FIX] website_livechat:tests: fix chatbot flow step "Hello! I'm a bot"

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) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Alexandre Kühn
2022-12-16 16:17:49 +01:00
parent 378fe2c350
commit 9e2b2aad7c
@@ -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() {