19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:32:39 +01:00
parent 38c6088dcc
commit d9452d2060
243 changed files with 30797 additions and 10815 deletions

View file

@ -0,0 +1,60 @@
import { registry } from "@web/core/registry";
const steps = [
{
content: "Open the avatar card popover",
trigger: ".o-mail-Message-avatar",
run: "click",
},
{
content: "Check that the employee's work email is displayed",
trigger: ".o_avatar_card:contains(test_employee@test.com)",
},
{
content: "Check that the employee's department is displayed",
trigger: ".o_avatar_card:contains(Test Department)",
},
{
content: "Check that the employee's work phone is displayed",
trigger: ".o_avatar_card:contains(123456789)",
},
{
content: "Check that the employee's holiday status is displayed",
trigger: ".o_avatar_card:contains(Back on)",
},
];
registry.category("web_tour.tours").add("avatar_card_tour", {
steps: () => [
...steps,
{
content: "Check that the employee's job title is displayed",
trigger: ".o_avatar_card:contains(Test Job Title)",
},
{
trigger: ".o-mail-ActivityMenu-counter:text('2')",
},
{
trigger: ".o_switch_company_menu button",
run: "click",
},
{
trigger: `[role=button][title='Switch to Company 2']`,
run: "click",
expectUnloadPage: true,
},
{
trigger: ".o-mail-ActivityMenu-counter:text('1')",
},
],
});
registry.category("web_tour.tours").add("avatar_card_tour_no_hr_access", {
steps: () => [
...steps,
{
content: "Check that the employee's job title is displayed",
trigger: ":not(.o_avatar_card:contains(Test Job Title))",
},
],
});

View file

@ -0,0 +1,28 @@
import { registry } from "@web/core/registry";
registry.category("web_tour.tours").add("chatbot_redirect_to_portal", {
url: "/contactus",
steps: () => [
{
trigger: ".o-livechat-root:shadow .o-livechat-LivechatButton",
run: "click",
},
{
trigger:
".o-livechat-root:shadow .o-mail-Message:contains(Hello, were do you want to go?)",
run: "click",
},
{
trigger: ".o-livechat-root:shadow li button:contains(Go to the portal page)",
run: "click",
expectUnloadPage: true,
},
{
trigger: ".o-livechat-root:shadow .o-mail-Message:contains('Go to the portal page')",
},
{ trigger: "#chatterRoot:shadow .o-mail-Chatter" },
{
trigger: ".o-livechat-root:shadow .o-mail-Message:last:contains('Tadam')",
},
],
});

View file

@ -0,0 +1,17 @@
import { registry } from "@web/core/registry";
registry.category("web_tour.tours").add("im_livechat_session_open", {
steps: () => [
{
trigger: "button.o_switch_view.o_list",
run: "click",
},
{
trigger: ".o_data_cell:contains(Visitor)",
run: "click",
},
{
trigger: ".o-mail-Thread:contains('The conversation is empty.')",
},
],
});