[FIX] web_editor: properly mock createWysiwygIntance (sic) in tests

closes odoo/odoo#61525

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
Antoine Guenet
2020-11-09 10:18:42 +00:00
parent 63d5102a2e
commit 4e252d02f8
2 changed files with 2 additions and 2 deletions
@@ -460,8 +460,7 @@ QUnit.module('web_editor', {}, function () {
QUnit.module('translation');
// TODO : need to be checked and fixed to pass with new JW editor
QUnit.skip('field html translatable', async function (assert) {
QUnit.test('field html translatable', async function (assert) {
assert.expect(4);
var multiLang = _t.database.multi_lang;
@@ -309,6 +309,7 @@ async function createWysiwyg() {
var self = this
return this.wysiwyg.attachTo(this).then(function () {
self._appendTranslateButton();
if (wysiwygOptions.snippets) {
var defSnippets = testUtils.makeTestPromise();
testUtils.mock.intercept(self.wysiwyg, "snippets_loaded", function () {