oca-ocb-mrp/odoo-bringout-oca-ocb-mrp/mrp/static/tests/mrp_widgets.test.js
Ernad Husremovic 6e65e8c877 19.0 vanilla
2026-03-09 09:31:47 +01:00

14 lines
561 B
JavaScript

import { openFormView, start, startServer } from "@mail/../tests/mail_test_helpers";
import { defineMrpModels } from "@mrp/../tests/mrp_test_helpers";
import { describe, expect, test } from "@odoo/hoot";
describe.current.tags("desktop");
defineMrpModels();
test("ensure the rendering is based on minutes and seconds", async () => {
const pyEnv = await startServer();
const fakeId = pyEnv["res.fake"].create({ duration: 150.5 });
await start();
await openFormView("res.fake", fakeId);
expect(".o_field_mrp_timer").toHaveText("150:30");
});