/* @odoo-module */ import { startServer } from "@bus/../tests/helpers/mock_python_environment"; import { start } from "@mail/../tests/helpers/test_utils"; import { click, contains } from "@web/../tests/utils"; QUnit.module("messaging menu (patch)"); QUnit.test("WhatsApp channel chat windows should have thread icon", async () => { const pyEnv = await startServer(); pyEnv["discuss.channel"].create({ name: "WhatsApp 1", channel_type: "whatsapp", }); await start(); await click(".o_menu_systray i[aria-label='Messages']"); await click(".o-mail-NotificationItem"); await contains(".o-mail-ChatWindow-header .o-mail-ThreadIcon"); });