[FIX] web: tests: fix tests failing locally
The adapted tests passed on runbot but failed (at least) on chrome 113. closes odoo/odoo#123097 X-original-commit: ac1a158b5f6c04f94573a2fb6c7c94d9506e39aa Signed-off-by: Pierre Paridans (app) <app@odoo.com>
This commit is contained in:
@@ -69,7 +69,9 @@ QUnit.module("Fields", (hooks) => {
|
||||
"should have 10% as pie value since int_field=10"
|
||||
);
|
||||
assert.strictEqual(
|
||||
target.querySelector(".o_field_percent_pie.o_field_widget .o_pie").style.background,
|
||||
target
|
||||
.querySelector(".o_field_percent_pie.o_field_widget .o_pie")
|
||||
.style.background.replaceAll(/\s+/g, " "),
|
||||
"conic-gradient( var(--PercentPieField-color-active) 0% 10%, var(--PercentPieField-color-static) 0% 100% )",
|
||||
"pie should have a background computed for its value of 10%"
|
||||
);
|
||||
@@ -103,7 +105,9 @@ QUnit.module("Fields", (hooks) => {
|
||||
"should have 80% as pie value since int_field=80"
|
||||
);
|
||||
assert.strictEqual(
|
||||
target.querySelector(".o_field_percent_pie.o_field_widget .o_pie").style.background,
|
||||
target
|
||||
.querySelector(".o_field_percent_pie.o_field_widget .o_pie")
|
||||
.style.background.replaceAll(/\s+/g, " "),
|
||||
"conic-gradient( var(--PercentPieField-color-active) 0% 80%, var(--PercentPieField-color-static) 0% 100% )",
|
||||
"pie should have a background computed for its value of 80%"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user