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

56 lines
1.4 KiB
JavaScript

/* @odoo-module */
import { registry } from "@web/core/registry";
registry.category("web_tour.tours").add("mail_activity_schedule_from_chatter", {
test: true,
steps: () => [
{
trigger: "button:contains('Activities')",
},
{
trigger: "input[id*='activity_type_id']",
run: "click",
},
{
trigger: ".dropdown-item:contains('Call')",
},
{
trigger: "input[id*='activity_type_id']:propValue('Call')",
run: () => {},
},
{
extra_trigger: "button:contains('Schedule')",
trigger: "input[id*='activity_type_id']",
run: "click",
},
{
trigger: ".dropdown-item:contains('To-Do')",
},
{
trigger: "div[name='summary'] input",
run: "text Play Mario Party",
},
{
trigger: "button:contains('Schedule')",
},
{
trigger: ".o-mail-Activity:contains('Play Mario Party')",
},
{
trigger: "button:contains('Activities')",
},
{
trigger: "div[name='summary'] input",
run: "text Play Mario Kart",
},
{
trigger: "button:contains('Mark as Done')",
},
{
trigger: ".o-mail-Message:contains('Play Mario Kart')",
isCheck: true,
},
],
});