mirror of
https://github.com/bringout/oca-ocb-mrp.git
synced 2026-04-22 22:12:02 +02:00
14 lines
561 B
JavaScript
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");
|
|
});
|