[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:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user