summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components
diff options
context:
space:
mode:
authorXavier Dubuc <xdu@odoo.com>2020-08-04 14:38:02 +0000
committerSébastien Theys <seb@odoo.com>2020-08-13 10:23:25 +0000
commita17725e99899ff1e06996f7c9ab93704c840131e (patch)
treeb82159288fd50294aeb28f17ac260a59c48cc736 /addons/mail/static/src/components
parentb0107e9230da5cb5c90819e5bee3e9cd323816ee (diff)
[FIX] mail: fix full composer opening with attachments
task-2307201 closes odoo/odoo#55678 X-original-commit: 9c47bb0b0034a3419a0c6e3267d90cb520a59535 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components')
-rw-r--r--addons/mail/static/src/components/chat_window_manager/chat_window_manager_tests.js6
-rw-r--r--addons/mail/static/src/components/composer/composer_tests.js8
-rw-r--r--addons/mail/static/src/components/discuss/tests/discuss_tests.js9
-rw-r--r--addons/mail/static/src/components/file_uploader/file_uploader_tests.js8
4 files changed, 23 insertions, 8 deletions
diff --git a/addons/mail/static/src/components/chat_window_manager/chat_window_manager_tests.js b/addons/mail/static/src/components/chat_window_manager/chat_window_manager_tests.js
index 23a8c42dea1..e757fcc9016 100644
--- a/addons/mail/static/src/components/chat_window_manager/chat_window_manager_tests.js
+++ b/addons/mail/static/src/components/chat_window_manager/chat_window_manager_tests.js
@@ -5,12 +5,14 @@ const {
afterEach: utilsAfterEach,
afterNextRender,
beforeEach: utilsBeforeEach,
- inputFiles,
start: utilsStart,
} = require('mail/static/src/utils/test_utils.js');
const {
- file: { createFile },
+ file: {
+ createFile,
+ inputFiles,
+ },
dom: { triggerEvent },
} = require('web.test_utils');
diff --git a/addons/mail/static/src/components/composer/composer_tests.js b/addons/mail/static/src/components/composer/composer_tests.js
index a22f4ec1ac3..a961f77e62f 100644
--- a/addons/mail/static/src/components/composer/composer_tests.js
+++ b/addons/mail/static/src/components/composer/composer_tests.js
@@ -10,13 +10,17 @@ const {
beforeEach: utilsBeforeEach,
dragenterFiles,
dropFiles,
- inputFiles,
nextAnimationFrame,
pasteFiles,
start: utilsStart,
} = require('mail/static/src/utils/test_utils.js');
-const { file: { createFile } } = require('web.test_utils');
+const {
+ file: {
+ createFile,
+ inputFiles,
+ },
+} = require('web.test_utils');
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
diff --git a/addons/mail/static/src/components/discuss/tests/discuss_tests.js b/addons/mail/static/src/components/discuss/tests/discuss_tests.js
index 9f93b935adf..e7ae5b33bc3 100644
--- a/addons/mail/static/src/components/discuss/tests/discuss_tests.js
+++ b/addons/mail/static/src/components/discuss/tests/discuss_tests.js
@@ -7,12 +7,17 @@ const {
afterEach: utilsAfterEach,
afterNextRender,
beforeEach: utilsBeforeEach,
- inputFiles,
start: utilsStart,
} = require('mail/static/src/utils/test_utils.js');
const Bus = require('web.Bus');
-const { makeTestPromise, file: { createFile } } = require('web.test_utils');
+const {
+ makeTestPromise,
+ file: {
+ createFile,
+ inputFiles,
+ },
+} = require('web.test_utils');
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
diff --git a/addons/mail/static/src/components/file_uploader/file_uploader_tests.js b/addons/mail/static/src/components/file_uploader/file_uploader_tests.js
index a5831a89efb..6b982c62898 100644
--- a/addons/mail/static/src/components/file_uploader/file_uploader_tests.js
+++ b/addons/mail/static/src/components/file_uploader/file_uploader_tests.js
@@ -7,12 +7,16 @@ const components = {
const {
afterEach: utilsAfterEach,
beforeEach: utilsBeforeEach,
- inputFiles,
nextAnimationFrame,
start: utilsStart,
} = require('mail/static/src/utils/test_utils.js');
-const { file: { createFile } } = require('web.test_utils');
+const {
+ file: {
+ createFile,
+ inputFiles,
+ },
+} = require('web.test_utils');
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {