summaryrefslogtreecommitdiff
path: root/addons/web_editor
diff options
context:
space:
mode:
authorVincent Schippefilt <vsc@odoo.com>2019-12-04 10:44:32 +0000
committerVincent Schippefilt <vsc@odoo.com>2019-12-09 11:09:10 +0000
commitb0941d19a07b08fabc64a284b58e57edc46203dd (patch)
treea6b25026177d26a64c6c7f6005e27c41fca5c1b6 /addons/web_editor
parent29726e8fd000cb09075f9b6b2a6a8d2ddaf4ef58 (diff)
[FIX] web,*: fix all tests and test utils to use native events
In this commit: - transformed test_utils helpers to always trigger native events - introduced new test_utils_create helper: prepareTarget - updated qunit asserts to support Owl Components - updated all misused helpers that would crash with the updated test_utils Co-authored-by: Julien Mougenot <jum@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: Pierre Rousseau <pro@odoo.com>
Diffstat (limited to 'addons/web_editor')
-rw-r--r--addons/web_editor/static/tests/field_html_tests.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/addons/web_editor/static/tests/field_html_tests.js b/addons/web_editor/static/tests/field_html_tests.js
index 612277bcd08..6c4c3f9c5a3 100644
--- a/addons/web_editor/static/tests/field_html_tests.js
+++ b/addons/web_editor/static/tests/field_html_tests.js
@@ -380,26 +380,6 @@ QUnit.module('web_editor', {}, function () {
form.destroy();
});
- QUnit.test('save immediately before iframe is rendered in edit mode', async function (assert) {
- assert.expect(1);
-
- var form = await testUtils.createAsyncView({
- View: FormView,
- model: 'note.note',
- data: this.data,
- arch: '<form>' +
- '<field name="body" widget="html" style="height: 100px" options="{\'cssEdit\': \'template.assets\'}"/>' +
- '</form>',
- res_id: 1,
- });
- await testUtils.form.clickEdit(form);
- await testUtils.nextTick();
- await testUtils.form.clickSave(form);
- await testUtils.nextTick();
- assert.ok(true, "No traceback encountered. The wysiwyg was cut while not loaded.");
- form.destroy();
- });
-
QUnit.module('translation');
QUnit.test('field html translatable', async function (assert) {