* = bus, calendar, crm_livechat, hr, hr_holidays, im_livechat, mail_bot,
mass_mailing, privacy_lookup, test_discuss_full, test_mail,
test_mail_full, website_crm_livechat, website_livechat, base
In preparation of splitting discuss and mail modules.
Part of task-3265211
closes odoo/odoo#118354
Related: odoo/upgrade#4553
Related: odoo/enterprise#39661
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
21 lines
874 B
JavaScript
21 lines
874 B
JavaScript
/** @odoo-module **/
|
|
|
|
import { patchUiSize } from "@mail/../tests/helpers/patch_ui_size";
|
|
import { click, start, startServer } from "@mail/../tests/helpers/test_utils";
|
|
|
|
QUnit.module("mobile");
|
|
|
|
QUnit.test("auto-select 'Inbox' when discuss had channel as active thread", async (assert) => {
|
|
const pyEnv = await startServer();
|
|
const channelId = pyEnv["discuss.channel"].create({ name: "test" });
|
|
|
|
patchUiSize({ height: 360, width: 640 });
|
|
const { openDiscuss } = await start();
|
|
await openDiscuss(channelId, { waitUntilMessagesLoaded: false });
|
|
assert.containsOnce($, ".o-mail-MessagingMenu-tab.text-primary.fw-bolder:contains(Channel)");
|
|
|
|
await click("button:contains(Mailboxes)");
|
|
assert.containsOnce($, ".o-mail-MessagingMenu-tab.text-primary.fw-bolder:contains(Mailboxes)");
|
|
assert.containsOnce($, "button:contains(Inbox).active");
|
|
});
|