import { describe, test } from "@odoo/hoot"; import { click, contains, start, startServer } from "@mail/../tests/mail_test_helpers"; import { defineWhatsAppModels } from "@whatsapp/../tests/whatsapp_test_helpers"; describe.current.tags("desktop"); defineWhatsAppModels(); 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"); });