mail/static/tests/tours/discuss_channel_as_guest_tour.js
Данил Воробьев 6e6f15d803 initial commit
2024-05-03 09:40:35 +00:00

29 lines
936 B
JavaScript

/* @odoo-module */
import { registry } from "@web/core/registry";
registry.category("web_tour.tours").add("discuss_channel_as_guest_tour.js", {
test: true,
steps: () => [
{
content: "Channel secret token has been hidden on welcome page",
trigger: ".o-mail-WelcomePage",
run() {
if (!window.location.pathname.startsWith("/discuss/channel")) {
console.error("Channel secret token is still present in URL.");
}
},
},
{
content: "Click join",
trigger: "button[title='Join Channel']",
extraTrigger: ".o-mail-Thread",
},
{
content: "Check that we are on channel page",
trigger: ".o-mail-Thread",
run() {},
},
],
});