[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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user