summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/tests/field_html_tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/static/tests/field_html_tests.js')
-rw-r--r--addons/web_editor/static/tests/field_html_tests.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web_editor/static/tests/field_html_tests.js b/addons/web_editor/static/tests/field_html_tests.js
index 477519d4060..d307706557f 100644
--- a/addons/web_editor/static/tests/field_html_tests.js
+++ b/addons/web_editor/static/tests/field_html_tests.js
@@ -194,6 +194,9 @@ QUnit.module('web_editor', {}, function () {
return Promise.resolve();
}
}
+ if (route.indexOf('/web_editor/static/src/img/') === 0) {
+ return Promise.resolve();
+ }
return this._super(route, args);
},
});
@@ -216,7 +219,7 @@ QUnit.module('web_editor', {}, function () {
// load static xml file (dialog, media dialog, unsplash image widget)
await defMediaDialog;
- await testUtils.dom.click($('.modal #editor-media-image .o_image:first'));
+ await testUtils.dom.click($('.modal #editor-media-image .o_existing_attachment_cell:first'));
await testUtils.dom.click($('.modal .modal-footer button.btn-primary'));
var $editable = form.$('.oe_form_field[name="body"] .note-editable');