[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
This commit is contained in:
committed by
Sébastien Geelen (sge)
parent
c7dd4d8242
commit
ca034c0d8b
@@ -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 `;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user