Skip to content
Snippets Groups Projects
Commit ca1d66c5 authored by Nicolas Lempereur's avatar Nicolas Lempereur
Browse files

[FIX] web: fix numbering test with l10n date update


Running "Numbering system" JS test on current version of chrome, two
assertions fails. This is happening because of an update of
localization.

Related to commit: 5bfe7321

closes odoo/odoo#121431

Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent 4e996e67
No related branches found
No related tags found
No related merge requests found
......@@ -152,17 +152,19 @@ QUnit.test("arabic has the correct numbering system (Tunisia)", async (assert) =
QUnit.test("bengalese has the correct numbering system", async (assert) => {
await patchLang("bn");
assert.strictEqual(
DateTime.utc(2021, 12, 10).toFormat("dd MMM, yyyy hh:mm:ss"),
"১০ ডিসেম্বর, ২০২১ ১২:০০:০০"
assert.ok(
["১০ ডিসেম্বর, ২০২১ ১২:০০:০০", "১০ ডিসে, ২০২১ ১২:০০:০০"].includes(
DateTime.utc(2021, 12, 10).toFormat("dd MMM, yyyy hh:mm:ss")
)
);
});
QUnit.test("punjabi (gurmukhi) has the correct numbering system", async (assert) => {
await patchLang("pa_in");
assert.strictEqual(
DateTime.utc(2021, 12, 10).toFormat("dd MMM, yyyy hh:mm:ss"),
"੧੦ M12, ੨੦੨੧ ੧੨:੦੦:੦੦"
assert.ok(
["੧੦ M12, ੨੦੨੧ ੧੨:੦੦:੦੦", "੧੦ ਦਸੰ, ੨੦੨੧ ੧੨:੦੦:੦੦"].includes(
DateTime.utc(2021, 12, 10).toFormat("dd MMM, yyyy hh:mm:ss")
)
);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment