[FIX] web_editor: temporarily skip mobile tests

The editor mobile tests are making wrong assumptions about the way the
editor behaves on mobile and are therefore wrong. This temporarily
disables them until the discrepancy is resolved.

Part-of: odoo/odoo#141303
This commit is contained in:
Antoine Guenet
2023-11-07 21:02:24 +00:00
committed by Sébastien Geelen (sge)
parent ca034c0d8b
commit fff405a6c2
@@ -395,7 +395,19 @@ export async function testEditor(Editor = OdooEditor, spec, options = {}) {
if (error) {
throw error;
} else if (hasMobileTest && !isMobileTest) {
await testEditor(Editor, spec, { ...options, isMobile: true });
const li = document.createElement('li');
li.classList.add('test', 'pass', 'pending');
const h2 = document.createElement('h2');
h2.textContent = 'FIXME: [Mobile Test] skipped';
li.append(h2);
const mochaSuite = [...document.querySelectorAll('#mocha-report li.suite > ul')].pop();
if (mochaSuite) {
mochaSuite.append(li);
}
// Mobile tests are temporarily disabled because they are not
// representative of reality. They will be re-enabled when the mobile
// editor will be ready.
// await testEditor(Editor, spec, { ...options, isMobile: true });
}
}