Skip to content

Commit

Permalink
[FIX] im_livechat: fix chat bot redirect tour
Browse files Browse the repository at this point in the history
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#160296

X-original-commit: cfdcdc4
Signed-off-by: Didier Debondt (did) <[email protected]>
Signed-off-by: Matthieu Stockbauer (tsm) <[email protected]>
  • Loading branch information
tsm-odoo committed Apr 3, 2024
1 parent fb63a42 commit 06b7e8c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 06b7e8c

Please sign in to comment.