1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/whatsapp/static/tests/chat_window_patch_tests.js
2024-12-10 09:04:09 +07:00

22 lines
681 B
JavaScript

/* @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");
});