import { registry } from "@web/core/registry";


registry
    .category("web_tour.tours")
    .add("odex30_mail/static/tests/tours/discuss_channel_expand_test_tour.js", {
        steps: () => [
            {
                content:
                    "Click on 'Open Actions Menu' in the chat window header to show expand button",
                trigger:
                    '.o-mail-ChatWindow:contains("test-mail-channel-expand-tour") [title="Open Actions Menu"]',
                run: "click",
            },
            {
                content: "Click on expand button to open channel in Discuss",
                trigger: '.o-dropdown-item:contains("Open in Discuss")',
                run: "click",
            },
            {
                content:
                    "Check that first message of #test-mail-channel-expand-tour is shown in Discuss app",
                trigger:
                    '.o-mail-Discuss-content .o-mail-Message-body:contains("test-message-mail-channel-expand-tour")',
            },
        ],
    });
