26 lines
790 B
JavaScript
26 lines
790 B
JavaScript
import {
|
|
click,
|
|
contains,
|
|
defineMailModels,
|
|
start,
|
|
startServer,
|
|
} from "@mail/../tests/mail_test_helpers";
|
|
import { describe, test } from "@odoo/hoot";
|
|
|
|
describe.current.tags("desktop");
|
|
defineMailModels();
|
|
|
|
test("should update activities when opening the activity menu", async () => {
|
|
const pyEnv = await startServer();
|
|
await start();
|
|
await contains(".o_menu_systray i[aria-label='Activities']");
|
|
await contains(".o-mail-ActivityMenu-counter", { count: 0 });
|
|
const partnerId = pyEnv["res.partner"].create({});
|
|
pyEnv["mail.activity"].create({
|
|
res_id: partnerId,
|
|
res_model: "res.partner",
|
|
});
|
|
await click(".o_menu_systray i[aria-label='Activities']");
|
|
await contains(".o-mail-ActivityMenu-counter", { text: "1" });
|
|
});
|