From ca034c0d8b8a7acb10ee191cb15026f89794f81b Mon Sep 17 00:00:00 2001 From: Antoine Guenet Date: Fri, 14 Jul 2023 09:31:28 +0200 Subject: [PATCH] [IMP] web_editor: notify when mobile version test fails This adds a note in the error message when a mobile test fails, to inform that it was a mobile test. Part-of: odoo/odoo#141303 --- .../web_editor/static/src/js/editor/odoo-editor/test/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/editor/odoo-editor/test/utils.js b/addons/web_editor/static/src/js/editor/odoo-editor/test/utils.js index 388fd9035d8..e79d79910a8 100644 --- a/addons/web_editor/static/src/js/editor/odoo-editor/test/utils.js +++ b/addons/web_editor/static/src/js/editor/odoo-editor/test/utils.js @@ -277,7 +277,7 @@ export function customErrorMessage(assertLocation, value, expected) { value = value.replaceAll('\u0009', tab); expected = expected.replaceAll('\u0009', tab); - return `[${assertLocation}]\nactual : '${value}'\nexpected: '${expected}'\n\nStackTrace `; + return `${(isMobileTest ? '[MOBILE VERSION: ' : '[')}${assertLocation}]\nactual : '${value}'\nexpected: '${expected}'\n\nStackTrace `; } /**