diff --git a/addons/hr_holidays/__manifest__.py b/addons/hr_holidays/__manifest__.py index 491a2e81717..5364aa8663f 100644 --- a/addons/hr_holidays/__manifest__.py +++ b/addons/hr_holidays/__manifest__.py @@ -79,8 +79,7 @@ A synchronization with an internal agenda (Meetings of the CRM module) is also p 'hr_holidays/static/tests/helpers/**/*', ], 'web.qunit_suite_tests': [ - 'hr_holidays/static/src/components/*/tests/*.js', - 'hr_holidays/static/tests/test_leave_stats_widget.js', + 'hr_holidays/static/tests/qunit_suite_tests/**/*.js', ], 'web.assets_qweb': [ 'hr_holidays/static/src/components/*/*.xml', diff --git a/addons/hr_holidays/static/src/components/partner_im_status_icon/tests/partner_im_status_icon_tests.js b/addons/hr_holidays/static/tests/qunit_suite_tests/components/partner_im_status_icon_tests.js similarity index 97% rename from addons/hr_holidays/static/src/components/partner_im_status_icon/tests/partner_im_status_icon_tests.js rename to addons/hr_holidays/static/tests/qunit_suite_tests/components/partner_im_status_icon_tests.js index 94204f686e7..71a1557e34f 100644 --- a/addons/hr_holidays/static/src/components/partner_im_status_icon/tests/partner_im_status_icon_tests.js +++ b/addons/hr_holidays/static/tests/qunit_suite_tests/components/partner_im_status_icon_tests.js @@ -8,7 +8,6 @@ import { QUnit.module('hr_holidays', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('partner_im_status_icon', {}, function () { QUnit.module('partner_im_status_icon_tests.js', { async beforeEach() { await beforeEach(this); @@ -90,4 +89,3 @@ QUnit.test('on leave & offline', async function (assert) { }); }); -}); diff --git a/addons/hr_holidays/static/src/components/thread_icon/tests/thread_icon_tests.js b/addons/hr_holidays/static/tests/qunit_suite_tests/components/thread_icon_tests.js similarity index 98% rename from addons/hr_holidays/static/src/components/thread_icon/tests/thread_icon_tests.js rename to addons/hr_holidays/static/tests/qunit_suite_tests/components/thread_icon_tests.js index 65f9bf5e425..6394102d72d 100644 --- a/addons/hr_holidays/static/src/components/thread_icon/tests/thread_icon_tests.js +++ b/addons/hr_holidays/static/tests/qunit_suite_tests/components/thread_icon_tests.js @@ -8,7 +8,6 @@ import { QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('thread_icon', {}, function () { QUnit.module('thread_icon_tests.js', { async beforeEach() { await beforeEach(this); @@ -120,4 +119,3 @@ QUnit.test('thread icon of a chat when correspondent is on leave & offline', asy }); }); -}); diff --git a/addons/hr_holidays/static/src/components/thread_view/tests/thread_view_tests.js b/addons/hr_holidays/static/tests/qunit_suite_tests/components/thread_view_tests.js similarity index 97% rename from addons/hr_holidays/static/src/components/thread_view/tests/thread_view_tests.js rename to addons/hr_holidays/static/tests/qunit_suite_tests/components/thread_view_tests.js index 88437c33ac2..a9774e46512 100644 --- a/addons/hr_holidays/static/src/components/thread_view/tests/thread_view_tests.js +++ b/addons/hr_holidays/static/tests/qunit_suite_tests/components/thread_view_tests.js @@ -8,7 +8,6 @@ import { QUnit.module('hr_holidays', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('thread_view', {}, function () { QUnit.module('thread_view_tests.js', { async beforeEach() { await beforeEach(this); @@ -59,4 +58,3 @@ QUnit.test('out of office message on direct chat with out of office partner', as }); }); -}); diff --git a/addons/hr_holidays/static/tests/test_leave_stats_widget.js b/addons/hr_holidays/static/tests/qunit_suite_tests/test_leave_stats_widget.js similarity index 100% rename from addons/hr_holidays/static/tests/test_leave_stats_widget.js rename to addons/hr_holidays/static/tests/qunit_suite_tests/test_leave_stats_widget.js diff --git a/addons/im_livechat/__manifest__.py b/addons/im_livechat/__manifest__.py index bce84372102..555ee19b30e 100644 --- a/addons/im_livechat/__manifest__.py +++ b/addons/im_livechat/__manifest__.py @@ -54,11 +54,13 @@ Help your customers with this chat, and analyse their feedback. 'im_livechat/static/src/scss/im_livechat_history.scss', 'im_livechat/static/src/scss/im_livechat_form.scss', ], - 'web.qunit_suite_tests': [ - 'im_livechat/static/src/components/*/tests/*.js', - 'im_livechat/static/src/legacy/public_livechat.js', + 'web.tests_assets': [ 'im_livechat/static/tests/helpers/*.js', ], + 'web.qunit_suite_tests': [ + 'im_livechat/static/tests/qunit_suite_tests/components/**/*.js', + 'im_livechat/static/src/legacy/public_livechat.js', + ], 'web.assets_qweb': [ 'im_livechat/static/src/components/*/*.xml', ], diff --git a/addons/im_livechat/static/src/components/chat_window_manager/tests/chat_window_manager_tests.js b/addons/im_livechat/static/tests/qunit_suite_tests/components/chat_window_manager_tests.js similarity index 100% rename from addons/im_livechat/static/src/components/chat_window_manager/tests/chat_window_manager_tests.js rename to addons/im_livechat/static/tests/qunit_suite_tests/components/chat_window_manager_tests.js diff --git a/addons/im_livechat/static/src/components/composer/tests/composer_tests.js b/addons/im_livechat/static/tests/qunit_suite_tests/components/composer_tests.js similarity index 95% rename from addons/im_livechat/static/src/components/composer/tests/composer_tests.js rename to addons/im_livechat/static/tests/qunit_suite_tests/components/composer_tests.js index a58db7e7a3e..e31a6ce0217 100644 --- a/addons/im_livechat/static/src/components/composer/tests/composer_tests.js +++ b/addons/im_livechat/static/tests/qunit_suite_tests/components/composer_tests.js @@ -4,7 +4,6 @@ import { beforeEach, start } from '@mail/utils/test_utils'; QUnit.module('im_livechat', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('composer', {}, function () { QUnit.module('composer_tests.js', { async beforeEach() { await beforeEach(this); @@ -33,4 +32,3 @@ QUnit.test('livechat: no add attachment button', async function (assert) { }); }); -}); diff --git a/addons/im_livechat/static/src/components/discuss_sidebar_category_item/tests/discuss_sidebar_category_item_tests.js b/addons/im_livechat/static/tests/qunit_suite_tests/components/discuss_sidebar_category_item_tests.js similarity index 97% rename from addons/im_livechat/static/src/components/discuss_sidebar_category_item/tests/discuss_sidebar_category_item_tests.js rename to addons/im_livechat/static/tests/qunit_suite_tests/components/discuss_sidebar_category_item_tests.js index 4a50f28899c..783e0334412 100644 --- a/addons/im_livechat/static/src/components/discuss_sidebar_category_item/tests/discuss_sidebar_category_item_tests.js +++ b/addons/im_livechat/static/tests/qunit_suite_tests/components/discuss_sidebar_category_item_tests.js @@ -7,7 +7,6 @@ import { QUnit.module('im_livechat', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('discuss_sidebar_category_item', {}, function () { QUnit.module('discuss_sidebar_category_item_tests.js', { async beforeEach() { await beforeEach(this); @@ -91,4 +90,3 @@ QUnit.test('livechat - avatar: should have a partner profile picture for a livec }); }); -}); diff --git a/addons/im_livechat/static/src/components/discuss_sidebar_category/tests/discuss_sidebar_category_tests.js b/addons/im_livechat/static/tests/qunit_suite_tests/components/discuss_sidebar_category_tests.js similarity index 99% rename from addons/im_livechat/static/src/components/discuss_sidebar_category/tests/discuss_sidebar_category_tests.js rename to addons/im_livechat/static/tests/qunit_suite_tests/components/discuss_sidebar_category_tests.js index 5eed9cd5586..bd13051af81 100644 --- a/addons/im_livechat/static/src/components/discuss_sidebar_category/tests/discuss_sidebar_category_tests.js +++ b/addons/im_livechat/static/tests/qunit_suite_tests/components/discuss_sidebar_category_tests.js @@ -8,7 +8,6 @@ import { QUnit.module('im_livechat', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('discuss_sidebar_category', {}, function () { QUnit.module('discuss_sidebar_category_tests.js', { async beforeEach() { await beforeEach(this); @@ -473,4 +472,3 @@ QUnit.test('livechat - states: the active category item should be visble even if }); }); -}); diff --git a/addons/im_livechat/static/src/components/discuss/tests/discuss_tests.js b/addons/im_livechat/static/tests/qunit_suite_tests/components/discuss_tests.js similarity index 99% rename from addons/im_livechat/static/src/components/discuss/tests/discuss_tests.js rename to addons/im_livechat/static/tests/qunit_suite_tests/components/discuss_tests.js index 45291c70187..fe144457576 100644 --- a/addons/im_livechat/static/src/components/discuss/tests/discuss_tests.js +++ b/addons/im_livechat/static/tests/qunit_suite_tests/components/discuss_tests.js @@ -11,7 +11,6 @@ import { datetime_to_str } from 'web.time'; QUnit.module('im_livechat', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('discuss', {}, function () { QUnit.module('discuss_tests.js', { async beforeEach() { await beforeEach(this); @@ -367,4 +366,3 @@ QUnit.test('invite button should be present on livechat', async function (assert }); }); -}); diff --git a/addons/im_livechat/static/src/components/messaging_menu/tests/messaging_menu_tests.js b/addons/im_livechat/static/tests/qunit_suite_tests/components/messaging_menu_tests.js similarity index 98% rename from addons/im_livechat/static/src/components/messaging_menu/tests/messaging_menu_tests.js rename to addons/im_livechat/static/tests/qunit_suite_tests/components/messaging_menu_tests.js index a360d1c432f..db376fb48c7 100644 --- a/addons/im_livechat/static/src/components/messaging_menu/tests/messaging_menu_tests.js +++ b/addons/im_livechat/static/tests/qunit_suite_tests/components/messaging_menu_tests.js @@ -8,7 +8,6 @@ import { QUnit.module('im_livechat', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('messaging_menu', {}, function () { QUnit.module('messaging_menu_tests.js', { async beforeEach() { await beforeEach(this); @@ -82,4 +81,3 @@ QUnit.test('livechats should be in "chat" filter', async function (assert) { }); }); -}); diff --git a/addons/im_livechat/static/src/components/thread_icon/tests/thread_icon_tests.js b/addons/im_livechat/static/tests/qunit_suite_tests/components/thread_icon_tests.js similarity index 97% rename from addons/im_livechat/static/src/components/thread_icon/tests/thread_icon_tests.js rename to addons/im_livechat/static/tests/qunit_suite_tests/components/thread_icon_tests.js index 478f78ff51b..7671968f18e 100644 --- a/addons/im_livechat/static/src/components/thread_icon/tests/thread_icon_tests.js +++ b/addons/im_livechat/static/tests/qunit_suite_tests/components/thread_icon_tests.js @@ -9,7 +9,6 @@ import { QUnit.module('im_livechat', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('thread_icon', {}, function () { QUnit.module('thread_icon_tests.js', { async beforeEach() { await beforeEach(this); @@ -76,4 +75,3 @@ QUnit.test('livechat: public website visitor is typing', async function (assert) }); }); -}); diff --git a/addons/im_livechat/static/src/components/thread_textual_typing_status/tests/thread_textual_typing_status_tests.js b/addons/im_livechat/static/tests/qunit_suite_tests/components/thread_textual_typing_status_tests.js similarity index 96% rename from addons/im_livechat/static/src/components/thread_textual_typing_status/tests/thread_textual_typing_status_tests.js rename to addons/im_livechat/static/tests/qunit_suite_tests/components/thread_textual_typing_status_tests.js index 864288ff5c0..da9933d311a 100644 --- a/addons/im_livechat/static/src/components/thread_textual_typing_status/tests/thread_textual_typing_status_tests.js +++ b/addons/im_livechat/static/tests/qunit_suite_tests/components/thread_textual_typing_status_tests.js @@ -9,7 +9,6 @@ import { QUnit.module('im_livechat', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('thread_textual_typing_status', {}, function () { QUnit.module('thread_textual_typing_status_tests.js', { async beforeEach() { await beforeEach(this); @@ -67,4 +66,3 @@ QUnit.test('receive visitor typing status "is typing"', async function (assert) }); }); -}); diff --git a/addons/mail/__manifest__.py b/addons/mail/__manifest__.py index 8ea94ac444e..d5b0f118b71 100644 --- a/addons/mail/__manifest__.py +++ b/addons/mail/__manifest__.py @@ -143,19 +143,13 @@ 'mail/static/src/env/test_env.js', 'mail/static/src/utils/test_utils.js', 'mail/static/tests/helpers/*.js', + 'mail/static/tests/models/*.js', ], 'web.qunit_suite_tests': [ - 'mail/static/tests/*.js', - 'mail/static/tests/systray/systray_activity_menu_tests.js', - 'mail/static/tests/tools/debug_manager_tests.js', - 'mail/static/tests/webclient/commands/*.js', - 'mail/static/src/components/*/tests/*.js', - 'mail/static/src/model/tests/**/*.js', - 'mail/static/src/utils/*/tests/*.js', - 'mail/static/src/widgets/*/tests/*.js', + 'mail/static/tests/qunit_suite_tests/**/*.js', ], 'web.qunit_mobile_suite_tests': [ - 'mail/static/src/components/*/mobile_tests/*.js', + 'mail/static/tests/qunit_mobile_suite_tests/**/*.js', ], 'web.assets_qweb': [ 'mail/static/src/xml/*.xml', diff --git a/addons/mail/static/tests/clock_watcher_qunit_tests.js b/addons/mail/static/tests/models/clock_watcher_qunit_tests.js similarity index 100% rename from addons/mail/static/tests/clock_watcher_qunit_tests.js rename to addons/mail/static/tests/models/clock_watcher_qunit_tests.js diff --git a/addons/mail/static/tests/composer_view_qunit_tests.js b/addons/mail/static/tests/models/composer_view_qunit_tests.js similarity index 100% rename from addons/mail/static/tests/composer_view_qunit_tests.js rename to addons/mail/static/tests/models/composer_view_qunit_tests.js diff --git a/addons/mail/static/tests/message_view_qunit_tests.js b/addons/mail/static/tests/models/message_view_qunit_tests.js similarity index 100% rename from addons/mail/static/tests/message_view_qunit_tests.js rename to addons/mail/static/tests/models/message_view_qunit_tests.js diff --git a/addons/mail/static/tests/notification_list_view_qunit_tests.js b/addons/mail/static/tests/models/notification_list_view_qunit_tests.js similarity index 100% rename from addons/mail/static/tests/notification_list_view_qunit_tests.js rename to addons/mail/static/tests/models/notification_list_view_qunit_tests.js diff --git a/addons/mail/static/tests/qunit_test.js b/addons/mail/static/tests/models/qunit_test.js similarity index 100% rename from addons/mail/static/tests/qunit_test.js rename to addons/mail/static/tests/models/qunit_test.js diff --git a/addons/mail/static/src/model/tests/test_models.js b/addons/mail/static/tests/models/test_models.js similarity index 100% rename from addons/mail/static/src/model/tests/test_models.js rename to addons/mail/static/tests/models/test_models.js diff --git a/addons/mail/static/tests/thread_viewer_qunit_tests.js b/addons/mail/static/tests/models/thread_viewer_qunit_tests.js similarity index 100% rename from addons/mail/static/tests/thread_viewer_qunit_tests.js rename to addons/mail/static/tests/models/thread_viewer_qunit_tests.js diff --git a/addons/mail/static/src/components/discuss_mobile_mailbox_selection/mobile_tests/discuss_mobile_mailbox_selection_tests.js b/addons/mail/static/tests/qunit_mobile_suite_tests/components/discuss_mobile_mailbox_selection_tests.js similarity index 100% rename from addons/mail/static/src/components/discuss_mobile_mailbox_selection/mobile_tests/discuss_mobile_mailbox_selection_tests.js rename to addons/mail/static/tests/qunit_mobile_suite_tests/components/discuss_mobile_mailbox_selection_tests.js diff --git a/addons/mail/static/tests/activity_tests.js b/addons/mail/static/tests/qunit_suite_tests/activity_tests.js similarity index 100% rename from addons/mail/static/tests/activity_tests.js rename to addons/mail/static/tests/qunit_suite_tests/activity_tests.js diff --git a/addons/mail/static/tests/chatter_tests.js b/addons/mail/static/tests/qunit_suite_tests/chatter_tests.js similarity index 100% rename from addons/mail/static/tests/chatter_tests.js rename to addons/mail/static/tests/qunit_suite_tests/chatter_tests.js diff --git a/addons/mail/static/src/components/activity_mark_done_popover/tests/activity_mark_done_popover_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/activity_mark_done_popover_tests.js similarity index 99% rename from addons/mail/static/src/components/activity_mark_done_popover/tests/activity_mark_done_popover_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/activity_mark_done_popover_tests.js index ddf884f9791..a7ee2f46e94 100644 --- a/addons/mail/static/src/components/activity_mark_done_popover/tests/activity_mark_done_popover_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/activity_mark_done_popover_tests.js @@ -6,7 +6,6 @@ import Bus from 'web.Bus'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('activity_mark_done_popover', {}, function () { QUnit.module('activity_mark_done_popover_tests.js', { async beforeEach() { await beforeEach(this); @@ -316,4 +315,3 @@ QUnit.test('[technical] activity mark done & schedule next with new action', asy }); }); -}); diff --git a/addons/mail/static/src/components/activity/tests/activity_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/activity_tests.js similarity index 99% rename from addons/mail/static/src/components/activity/tests/activity_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/activity_tests.js index b083b160f12..2d5af745a66 100644 --- a/addons/mail/static/src/components/activity/tests/activity_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/activity_tests.js @@ -7,7 +7,6 @@ import { date_to_str } from 'web.time'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('activity', {}, function () { QUnit.module('activity_tests.js', { async beforeEach() { await beforeEach(this); @@ -1315,4 +1314,3 @@ QUnit.test('button related to file uploading is replaced when updating activity }); }); -}); diff --git a/addons/mail/static/src/components/attachment_box/tests/attachment_box_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/attachment_box_tests.js similarity index 99% rename from addons/mail/static/src/components/attachment_box/tests/attachment_box_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/attachment_box_tests.js index 3d318b858fe..cf0dc5c1e0b 100644 --- a/addons/mail/static/src/components/attachment_box/tests/attachment_box_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/attachment_box_tests.js @@ -14,7 +14,6 @@ const { createFile } = file; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('attachment_box', {}, function () { QUnit.module('attachment_box_tests.js', { async beforeEach() { await beforeEach(this); @@ -305,4 +304,3 @@ QUnit.test('remove attachment should ask for confirmation', async function (asse }); }); -}); diff --git a/addons/mail/static/src/components/attachment_image/tests/attachment_image_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/attachment_image_tests.js similarity index 96% rename from addons/mail/static/src/components/attachment_image/tests/attachment_image_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/attachment_image_tests.js index 4adaa62f622..3c678154261 100644 --- a/addons/mail/static/src/components/attachment_image/tests/attachment_image_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/attachment_image_tests.js @@ -8,7 +8,6 @@ import { QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('attachment_image', {}, function () { QUnit.module('attachment_image_tests.js', { async beforeEach() { await beforeEach(this); @@ -51,4 +50,3 @@ QUnit.test('auto layout with image', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/attachment_list/tests/attachment_list_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/attachment_list_tests.js similarity index 99% rename from addons/mail/static/src/components/attachment_list/tests/attachment_list_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/attachment_list_tests.js index e375f549205..50b63b860ff 100644 --- a/addons/mail/static/src/components/attachment_list/tests/attachment_list_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/attachment_list_tests.js @@ -10,7 +10,6 @@ import { QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('attachment_list', {}, function () { QUnit.module('attachment_list_tests.js', { async beforeEach() { await beforeEach(this); @@ -441,4 +440,3 @@ QUnit.test('DOCX file is not viewable', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/channel_invitation_form/tests/channel_invitation_form_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/channel_invitation_form_tests.js similarity index 98% rename from addons/mail/static/src/components/channel_invitation_form/tests/channel_invitation_form_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/channel_invitation_form_tests.js index e5c010246f0..7b8ff5a32ee 100644 --- a/addons/mail/static/src/components/channel_invitation_form/tests/channel_invitation_form_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/channel_invitation_form_tests.js @@ -8,7 +8,6 @@ import { QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('channel_invitation_form', {}, function () { QUnit.module('channel_invitation_form_tests.js', { async beforeEach() { await beforeEach(this); @@ -144,4 +143,3 @@ QUnit.test('should be able to create a new group chat from an existing chat', as }); }); -}); diff --git a/addons/mail/static/src/components/chat_window_manager/tests/chat_window_manager_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/chat_window_manager_tests.js similarity index 99% rename from addons/mail/static/src/components/chat_window_manager/tests/chat_window_manager_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/chat_window_manager_tests.js index da7e1c9e9d7..349f945ea09 100644 --- a/addons/mail/static/src/components/chat_window_manager/tests/chat_window_manager_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/chat_window_manager_tests.js @@ -14,7 +14,6 @@ const { triggerEvent } = dom; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('chat_window_manager', {}, function () { QUnit.module('chat_window_manager_tests.js', { async beforeEach() { await beforeEach(this); @@ -2459,4 +2458,3 @@ QUnit.test('chat window should remain folded when new message is received', asyn }); }); -}); diff --git a/addons/mail/static/src/components/chatter/tests/chatter_suggested_recipient_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/chatter_suggested_recipient_tests.js similarity index 99% rename from addons/mail/static/src/components/chatter/tests/chatter_suggested_recipient_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/chatter_suggested_recipient_tests.js index ca62040b292..345f05f48db 100644 --- a/addons/mail/static/src/components/chatter/tests/chatter_suggested_recipient_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/chatter_suggested_recipient_tests.js @@ -4,7 +4,6 @@ import { afterNextRender, beforeEach, start } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('chatter', {}, function () { QUnit.module('chatter_suggested_recipients_tests.js', { async beforeEach() { await beforeEach(this); @@ -376,4 +375,3 @@ QUnit.test("suggested recipients should not be notified when posting an internal }); }); -}); diff --git a/addons/mail/static/src/components/chatter/tests/chatter_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/chatter_tests.js similarity index 100% rename from addons/mail/static/src/components/chatter/tests/chatter_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/chatter_tests.js diff --git a/addons/mail/static/src/components/chatter_topbar/tests/chatter_topbar_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/chatter_topbar_tests.js similarity index 99% rename from addons/mail/static/src/components/chatter_topbar/tests/chatter_topbar_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/chatter_topbar_tests.js index 472f137b59c..6f1aa29a575 100644 --- a/addons/mail/static/src/components/chatter_topbar/tests/chatter_topbar_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/chatter_topbar_tests.js @@ -6,7 +6,6 @@ import { makeTestPromise } from 'web.test_utils'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('chatter_topbar', {}, function () { QUnit.module('chatter_topbar_tests.js', { async beforeEach() { await beforeEach(this); @@ -603,4 +602,3 @@ QUnit.test('send message toggling', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/composer_suggestion/tests/composer_suggestion_canned_response_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/composer_suggestion_canned_response_tests.js similarity index 98% rename from addons/mail/static/src/components/composer_suggestion/tests/composer_suggestion_canned_response_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/composer_suggestion_canned_response_tests.js index 7d84291ebd1..e9ceb5a00fa 100644 --- a/addons/mail/static/src/components/composer_suggestion/tests/composer_suggestion_canned_response_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/composer_suggestion_canned_response_tests.js @@ -4,7 +4,6 @@ import { beforeEach, start } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('composer_suggestion', {}, function () { QUnit.module('composer_suggestion_canned_response_tests.js', { async beforeEach() { await beforeEach(this); @@ -119,4 +118,3 @@ QUnit.test('canned response suggestion active', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/composer_suggestion/tests/composer_suggestion_channel_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/composer_suggestion_channel_tests.js similarity index 98% rename from addons/mail/static/src/components/composer_suggestion/tests/composer_suggestion_channel_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/composer_suggestion_channel_tests.js index 99f9535791f..c27a6cca900 100644 --- a/addons/mail/static/src/components/composer_suggestion/tests/composer_suggestion_channel_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/composer_suggestion_channel_tests.js @@ -4,7 +4,6 @@ import { beforeEach, start } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('composer_suggestion', {}, function () { QUnit.module('composer_suggestion_channel_tests.js', { async beforeEach() { await beforeEach(this); @@ -97,4 +96,3 @@ QUnit.test('channel mention suggestion active', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/composer_suggestion/tests/composer_suggestion_command_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/composer_suggestion_command_tests.js similarity index 98% rename from addons/mail/static/src/components/composer_suggestion/tests/composer_suggestion_command_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/composer_suggestion_command_tests.js index 588dda0dba3..1901455d355 100644 --- a/addons/mail/static/src/components/composer_suggestion/tests/composer_suggestion_command_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/composer_suggestion_command_tests.js @@ -4,7 +4,6 @@ import { beforeEach, start } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('composer_suggestion', {}, function () { QUnit.module('composer_suggestion_command_tests.js', { async beforeEach() { await beforeEach(this); @@ -119,4 +118,3 @@ QUnit.test('command suggestion active', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/composer_suggestion/tests/composer_suggestion_partner_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/composer_suggestion_partner_tests.js similarity index 98% rename from addons/mail/static/src/components/composer_suggestion/tests/composer_suggestion_partner_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/composer_suggestion_partner_tests.js index a802c025cc1..0080a84260b 100644 --- a/addons/mail/static/src/components/composer_suggestion/tests/composer_suggestion_partner_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/composer_suggestion_partner_tests.js @@ -4,7 +4,6 @@ import { beforeEach, start } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('composer_suggestion', {}, function () { QUnit.module('composer_suggestion_partner_tests.js', { async beforeEach() { await beforeEach(this); @@ -125,4 +124,3 @@ QUnit.test('partner mention suggestion active', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/composer/tests/composer_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/composer_tests.js similarity index 99% rename from addons/mail/static/src/components/composer/tests/composer_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/composer_tests.js index 7d23c3fba9b..45585ca6ec1 100644 --- a/addons/mail/static/src/components/composer/tests/composer_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/composer_tests.js @@ -21,7 +21,6 @@ const { createFile, inputFiles } = file; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('composer', {}, function () { QUnit.module('composer_tests.js', { async beforeEach() { await beforeEach(this); @@ -1967,4 +1966,3 @@ QUnit.test('send button on mail.channel should have "Send" as label', async func }); }); -}); diff --git a/addons/mail/static/src/components/dialog_manager/tests/dialog_manager_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/dialog_manager_tests.js similarity index 97% rename from addons/mail/static/src/components/dialog_manager/tests/dialog_manager_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/dialog_manager_tests.js index 29cbdb650cf..b1aabba87fa 100644 --- a/addons/mail/static/src/components/dialog_manager/tests/dialog_manager_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/dialog_manager_tests.js @@ -9,7 +9,6 @@ import { QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('dialog_manager', {}, function () { QUnit.module('dialog_manager_tests.js', { async beforeEach() { await beforeEach(this); @@ -67,4 +66,3 @@ QUnit.test('initial mount', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/discuss/tests/discuss_inbox_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/discuss_inbox_tests.js similarity index 99% rename from addons/mail/static/src/components/discuss/tests/discuss_inbox_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/discuss_inbox_tests.js index a8110697fd3..2ffea2d0c50 100644 --- a/addons/mail/static/src/components/discuss/tests/discuss_inbox_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/discuss_inbox_tests.js @@ -11,7 +11,6 @@ import Bus from 'web.Bus'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('discuss', {}, function () { QUnit.module('discuss_inbox_tests.js', { async beforeEach() { await beforeEach(this); @@ -1003,4 +1002,3 @@ QUnit.test('subject should not be shown when subject differs from thread name on }); }); -}); diff --git a/addons/mail/static/src/components/discuss/tests/discuss_message_edit_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/discuss_message_edit_tests.js similarity index 95% rename from addons/mail/static/src/components/discuss/tests/discuss_message_edit_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/discuss_message_edit_tests.js index db361d88b5a..ef8739a07ce 100644 --- a/addons/mail/static/src/components/discuss/tests/discuss_message_edit_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/discuss_message_edit_tests.js @@ -4,7 +4,6 @@ import { beforeEach, start } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('discuss', {}, function () { QUnit.module('discuss_message_edit_tests.js', { async beforeEach() { await beforeEach(this); @@ -38,4 +37,3 @@ QUnit.test('click on message edit button should open edit composer', async funct }); }); -}); diff --git a/addons/mail/static/src/components/discuss/tests/discuss_pinned_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/discuss_pinned_tests.js similarity index 99% rename from addons/mail/static/src/components/discuss/tests/discuss_pinned_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/discuss_pinned_tests.js index 64be4789c5a..045a5e408ed 100644 --- a/addons/mail/static/src/components/discuss/tests/discuss_pinned_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/discuss_pinned_tests.js @@ -8,7 +8,6 @@ import { QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('discuss', {}, function () { QUnit.module('discuss_pinned_tests.js', { async beforeEach() { await beforeEach(this); @@ -228,4 +227,3 @@ QUnit.test('[technical] sidebar: channel group_based_subscription: mandatorily p }); }); -}); diff --git a/addons/mail/static/src/components/discuss_sidebar_category_item/tests/discuss_sidebar_category_item_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/discuss_sidebar_category_item_tests.js similarity index 98% rename from addons/mail/static/src/components/discuss_sidebar_category_item/tests/discuss_sidebar_category_item_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/discuss_sidebar_category_item_tests.js index f06ec5ca50b..bcfb840b497 100644 --- a/addons/mail/static/src/components/discuss_sidebar_category_item/tests/discuss_sidebar_category_item_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/discuss_sidebar_category_item_tests.js @@ -10,7 +10,6 @@ import { datetime_to_str } from 'web.time'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('discuss_sidebar_category_item', {}, function () { QUnit.module('discuss_sidebar_category_item_tests.js', { async beforeEach() { await beforeEach(this); @@ -206,4 +205,3 @@ QUnit.test('chat - sorting: should be sorted by last activity time', async funct }); }); -}); diff --git a/addons/mail/static/src/components/discuss_sidebar_category/tests/discuss_sidebar_category_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/discuss_sidebar_category_tests.js similarity index 99% rename from addons/mail/static/src/components/discuss_sidebar_category/tests/discuss_sidebar_category_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/discuss_sidebar_category_tests.js index 823dd8caf86..c0c740b2af7 100644 --- a/addons/mail/static/src/components/discuss_sidebar_category/tests/discuss_sidebar_category_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/discuss_sidebar_category_tests.js @@ -8,7 +8,6 @@ import { QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('discuss_sidebar_category', {}, function () { QUnit.module('discuss_sidebar_category_tests.js', { async beforeEach() { await beforeEach(this); @@ -813,4 +812,3 @@ QUnit.test('chat - states: the active category item should be visble even if the }); }); -}); diff --git a/addons/mail/static/src/components/discuss/tests/discuss_sidebar_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/discuss_sidebar_tests.js similarity index 99% rename from addons/mail/static/src/components/discuss/tests/discuss_sidebar_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/discuss_sidebar_tests.js index 6361d906947..98c7463cb51 100644 --- a/addons/mail/static/src/components/discuss/tests/discuss_sidebar_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/discuss_sidebar_tests.js @@ -10,7 +10,6 @@ import { QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('discuss', {}, function () { QUnit.module('discuss_sidebar_tests.js', { async beforeEach() { await beforeEach(this); @@ -151,4 +150,3 @@ QUnit.test('sidebar channels should be ordered case insensitive alphabetically', }); }); -}); diff --git a/addons/mail/static/src/components/discuss/tests/discuss_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/discuss_tests.js similarity index 99% rename from addons/mail/static/src/components/discuss/tests/discuss_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/discuss_tests.js index 337edb71dda..68e6263086c 100644 --- a/addons/mail/static/src/components/discuss/tests/discuss_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/discuss_tests.js @@ -16,7 +16,6 @@ const { createFile, inputFiles } = file; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('discuss', {}, function () { QUnit.module('discuss_tests.js', { async beforeEach() { await beforeEach(this); @@ -4128,4 +4127,3 @@ QUnit.test('send message only once when enter is pressed twice quickly', async f }); }); -}); diff --git a/addons/mail/static/src/components/follow_button/tests/follow_button_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/follow_button_tests.js similarity index 99% rename from addons/mail/static/src/components/follow_button/tests/follow_button_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/follow_button_tests.js index 90a4dd36cb5..75a6c9b6bd8 100644 --- a/addons/mail/static/src/components/follow_button/tests/follow_button_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/follow_button_tests.js @@ -9,7 +9,6 @@ import { QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('follow_button', {}, function () { QUnit.module('follow_button_tests.js', { async beforeEach() { await beforeEach(this); @@ -256,4 +255,3 @@ QUnit.test('click on "unfollow" button', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/follower_list_menu/tests/follower_list_menu_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/follower_list_menu_tests.js similarity index 99% rename from addons/mail/static/src/components/follower_list_menu/tests/follower_list_menu_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/follower_list_menu_tests.js index b4df0c16975..5fd814bbef9 100644 --- a/addons/mail/static/src/components/follower_list_menu/tests/follower_list_menu_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/follower_list_menu_tests.js @@ -12,7 +12,6 @@ import Bus from 'web.Bus'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('follower_list_menu', {}, function () { QUnit.module('follower_list_menu_tests.js', { async beforeEach() { await beforeEach(this); @@ -281,4 +280,3 @@ QUnit.test('click on remove follower', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/follower_subtype/tests/follower_subtype_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/follower_subtype_tests.js similarity index 99% rename from addons/mail/static/src/components/follower_subtype/tests/follower_subtype_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/follower_subtype_tests.js index 4b6e7880437..47cda2d7c7e 100644 --- a/addons/mail/static/src/components/follower_subtype/tests/follower_subtype_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/follower_subtype_tests.js @@ -10,7 +10,6 @@ import { QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('follower_subtype', {}, function () { QUnit.module('follower_subtype_tests.js', { async beforeEach() { await beforeEach(this); @@ -213,4 +212,3 @@ QUnit.test('toggle follower subtype checkbox', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/follower/tests/follower_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/follower_tests.js similarity index 99% rename from addons/mail/static/src/components/follower/tests/follower_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/follower_tests.js index afba1caaa68..f790edb11d7 100644 --- a/addons/mail/static/src/components/follower/tests/follower_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/follower_tests.js @@ -13,7 +13,6 @@ import Bus from 'web.Bus'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('follower', {}, function () { QUnit.module('follower_tests.js', { async beforeEach() { await beforeEach(this); @@ -309,4 +308,3 @@ QUnit.test('edit follower and close subtype dialog', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/message_seen_indicator/tests/message_seen_indicator_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/message_seen_indicator_tests.js similarity index 99% rename from addons/mail/static/src/components/message_seen_indicator/tests/message_seen_indicator_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/message_seen_indicator_tests.js index a5d3c6a814b..ed577eacd82 100644 --- a/addons/mail/static/src/components/message_seen_indicator/tests/message_seen_indicator_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/message_seen_indicator_tests.js @@ -9,7 +9,6 @@ import { QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('message_seen_indicator', {}, function () { QUnit.module('message_seen_indicator_tests.js', { async beforeEach() { await beforeEach(this); @@ -259,4 +258,3 @@ QUnit.test('rendering when just everyone has seen the message', async function ( }); }); -}); diff --git a/addons/mail/static/src/components/message/tests/message_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/message_tests.js similarity index 99% rename from addons/mail/static/src/components/message/tests/message_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/message_tests.js index 149d7c12745..09829072220 100644 --- a/addons/mail/static/src/components/message/tests/message_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/message_tests.js @@ -14,7 +14,6 @@ import Bus from 'web.Bus'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('message', {}, function () { QUnit.module('message_tests.js', { async beforeEach() { await beforeEach(this); @@ -1015,4 +1014,3 @@ QUnit.test('message should not be considered as "clicked" after clicking on noti }); }); -}); diff --git a/addons/mail/static/src/components/messaging_menu/tests/messaging_menu_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/messaging_menu_tests.js similarity index 99% rename from addons/mail/static/src/components/messaging_menu/tests/messaging_menu_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/messaging_menu_tests.js index 5b523071c62..9bff0afd03f 100644 --- a/addons/mail/static/src/components/messaging_menu/tests/messaging_menu_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/messaging_menu_tests.js @@ -10,7 +10,6 @@ import { makeTestPromise } from 'web.test_utils'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('messaging_menu', {}, function () { QUnit.module('messaging_menu_tests.js', { async beforeEach() { await beforeEach(this); @@ -1037,4 +1036,3 @@ QUnit.test('Group chat should be displayed inside the chat section of the messag }); }); -}); diff --git a/addons/mail/static/src/components/notification_list/tests/notification_list_notification_group_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/notification_list_notification_group_tests.js similarity index 99% rename from addons/mail/static/src/components/notification_list/tests/notification_list_notification_group_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/notification_list_notification_group_tests.js index dab343ccf1e..0228163a577 100644 --- a/addons/mail/static/src/components/notification_list/tests/notification_list_notification_group_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/notification_list_notification_group_tests.js @@ -6,7 +6,6 @@ import Bus from 'web.Bus'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('notification_list', {}, function () { QUnit.module('notification_list_notification_group_tests.js', { async beforeEach() { await beforeEach(this); @@ -506,4 +505,3 @@ QUnit.test('non-failure notifications are ignored', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/notification_list/tests/notification_list_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/notification_list_tests.js similarity index 98% rename from addons/mail/static/src/components/notification_list/tests/notification_list_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/notification_list_tests.js index d6cce2b9e39..6ebababaf0e 100644 --- a/addons/mail/static/src/components/notification_list/tests/notification_list_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/notification_list_tests.js @@ -4,7 +4,6 @@ import { afterNextRender, beforeEach, start } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('notification_list', {}, function () { QUnit.module('notification_list_tests.js', { async beforeEach() { await beforeEach(this); @@ -122,4 +121,3 @@ QUnit.test('thread notifications are re-ordered on receiving a new message', asy }); }); -}); diff --git a/addons/mail/static/src/components/partner_im_status_icon/tests/partner_im_status_icon_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/partner_im_status_icon_tests.js similarity index 98% rename from addons/mail/static/src/components/partner_im_status_icon/tests/partner_im_status_icon_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/partner_im_status_icon_tests.js index cfd2ba9463b..95928ab4698 100644 --- a/addons/mail/static/src/components/partner_im_status_icon/tests/partner_im_status_icon_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/partner_im_status_icon_tests.js @@ -9,7 +9,6 @@ import { QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('partner_im_status_icon', {}, function () { QUnit.module('partner_im_status_icon_tests.js', { async beforeEach() { await beforeEach(this); @@ -124,4 +123,3 @@ QUnit.test('change icon on change partner im_status', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/thread_icon/tests/thread_icon_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/thread_icon_tests.js similarity index 98% rename from addons/mail/static/src/components/thread_icon/tests/thread_icon_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/thread_icon_tests.js index e0fcf73d2f5..9e0c60bf2f1 100644 --- a/addons/mail/static/src/components/thread_icon/tests/thread_icon_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/thread_icon_tests.js @@ -9,7 +9,6 @@ import { QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('thread_icon', {}, function () { QUnit.module('thread_icon_tests.js', { async beforeEach() { await beforeEach(this); @@ -98,4 +97,3 @@ QUnit.test('chat: correspondent is typing', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/thread_needaction_preview/tests/thread_needaction_preview_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/thread_needaction_preview_tests.js similarity index 99% rename from addons/mail/static/src/components/thread_needaction_preview/tests/thread_needaction_preview_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/thread_needaction_preview_tests.js index 935245c359e..76c937b37f4 100644 --- a/addons/mail/static/src/components/thread_needaction_preview/tests/thread_needaction_preview_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/thread_needaction_preview_tests.js @@ -6,7 +6,6 @@ import Bus from 'web.Bus'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('thread_needaction_preview', {}, function () { QUnit.module('thread_needaction_preview_tests.js', { async beforeEach() { await beforeEach(this); @@ -379,4 +378,3 @@ QUnit.test('chat window header should not have unread counter for non-channel th }); }); -}); diff --git a/addons/mail/static/src/components/thread_preview/tests/thread_preview_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/thread_preview_tests.js similarity index 97% rename from addons/mail/static/src/components/thread_preview/tests/thread_preview_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/thread_preview_tests.js index f7e4f4a3ecf..50826908eba 100644 --- a/addons/mail/static/src/components/thread_preview/tests/thread_preview_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/thread_preview_tests.js @@ -4,7 +4,6 @@ import { afterNextRender, beforeEach, start } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('thread_preview', {}, function () { QUnit.module('thread_preview_tests.js', { async beforeEach() { await beforeEach(this); @@ -78,4 +77,3 @@ QUnit.test('mark as read', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/components/thread_textual_typing_status/tests/thread_textual_typing_status_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/thread_textual_typing_status_tests.js similarity index 99% rename from addons/mail/static/src/components/thread_textual_typing_status/tests/thread_textual_typing_status_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/thread_textual_typing_status_tests.js index fbeb96bfba1..b3cc84a4539 100644 --- a/addons/mail/static/src/components/thread_textual_typing_status/tests/thread_textual_typing_status_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/thread_textual_typing_status_tests.js @@ -10,7 +10,6 @@ import { QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('thread_textual_typing_status', {}, function () { QUnit.module('thread_textual_typing_status_tests.js', { async beforeEach() { await beforeEach(this); @@ -356,4 +355,3 @@ QUnit.test('receive several other members typing status "is typing"', async func }); }); -}); diff --git a/addons/mail/static/src/components/thread_view/tests/thread_view_tests.js b/addons/mail/static/tests/qunit_suite_tests/components/thread_view_tests.js similarity index 99% rename from addons/mail/static/src/components/thread_view/tests/thread_view_tests.js rename to addons/mail/static/tests/qunit_suite_tests/components/thread_view_tests.js index 6aa6dd28cb6..af31e333835 100644 --- a/addons/mail/static/src/components/thread_view/tests/thread_view_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/components/thread_view_tests.js @@ -10,7 +10,6 @@ import { QUnit.module('mail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('thread_view', {}, function () { QUnit.module('thread_view_tests.js', { async beforeEach() { await beforeEach(this); @@ -2099,4 +2098,3 @@ QUnit.test("not highlighting the message if not mentioning the current user insi }); }); -}); diff --git a/addons/mail/static/tests/tools/debug_manager_tests.js b/addons/mail/static/tests/qunit_suite_tests/debug_manager_tests.js similarity index 100% rename from addons/mail/static/tests/tools/debug_manager_tests.js rename to addons/mail/static/tests/qunit_suite_tests/debug_manager_tests.js diff --git a/addons/mail/static/tests/document_viewer_tests.js b/addons/mail/static/tests/qunit_suite_tests/document_viewer_tests.js similarity index 100% rename from addons/mail/static/tests/document_viewer_tests.js rename to addons/mail/static/tests/qunit_suite_tests/document_viewer_tests.js diff --git a/addons/mail/static/tests/m2x_avatar_user_tests.js b/addons/mail/static/tests/qunit_suite_tests/m2x_avatar_user_tests.js similarity index 100% rename from addons/mail/static/tests/m2x_avatar_user_tests.js rename to addons/mail/static/tests/qunit_suite_tests/m2x_avatar_user_tests.js diff --git a/addons/mail/static/src/model/tests/model_field_command/clear_tests.js b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/clear_tests.js similarity index 97% rename from addons/mail/static/src/model/tests/model_field_command/clear_tests.js rename to addons/mail/static/tests/qunit_suite_tests/model_field_commands/clear_tests.js index 3060f55ef86..34857f223fb 100644 --- a/addons/mail/static/src/model/tests/model_field_command/clear_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/clear_tests.js @@ -7,8 +7,7 @@ import { } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { -QUnit.module('model', {}, function () { -QUnit.module('model_field_command', {}, function () { +QUnit.module('model_field_commands', {}, function () { QUnit.module('clear_tests.js', { async beforeEach() { await beforeEach(this); @@ -129,4 +128,3 @@ QUnit.test('clear: should set x2many field the default value', async function (a }); }); -}); diff --git a/addons/mail/static/src/model/tests/model_field_command/insert_and_replace_tests.js b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/insert_and_replace_tests.js similarity index 98% rename from addons/mail/static/src/model/tests/model_field_command/insert_and_replace_tests.js rename to addons/mail/static/tests/qunit_suite_tests/model_field_commands/insert_and_replace_tests.js index 6ec97293a86..0741d72d832 100644 --- a/addons/mail/static/src/model/tests/model_field_command/insert_and_replace_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/insert_and_replace_tests.js @@ -7,8 +7,7 @@ import { } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { -QUnit.module('model', {}, function () { -QUnit.module('model_field_command', {}, function () { +QUnit.module('model_field_commands', {}, function () { QUnit.module('insert_and_replace_tests.js', { async beforeEach() { await beforeEach(this); @@ -168,4 +167,3 @@ QUnit.test('insertAndReplace: should update and replace the records for an x2man }); }); -}); diff --git a/addons/mail/static/src/model/tests/model_field_command/insert_tests.js b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/insert_tests.js similarity index 98% rename from addons/mail/static/src/model/tests/model_field_command/insert_tests.js rename to addons/mail/static/tests/qunit_suite_tests/model_field_commands/insert_tests.js index 239e2949aeb..4a602e6d3d0 100644 --- a/addons/mail/static/src/model/tests/model_field_command/insert_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/insert_tests.js @@ -7,8 +7,7 @@ import { } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { -QUnit.module('model', {}, function () { -QUnit.module('model_field_command', {}, function () { +QUnit.module('model_field_commands', {}, function () { QUnit.module('insert_tests.js', { async beforeEach() { await beforeEach(this); @@ -186,4 +185,3 @@ QUnit.test('insert: should update existing records for an x2many field', async f }); }); -}); diff --git a/addons/mail/static/src/model/tests/model_field_command/link_tests.js b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/link_tests.js similarity index 97% rename from addons/mail/static/src/model/tests/model_field_command/link_tests.js rename to addons/mail/static/tests/qunit_suite_tests/model_field_commands/link_tests.js index 6e07d7334f6..71de7d2255d 100644 --- a/addons/mail/static/src/model/tests/model_field_command/link_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/link_tests.js @@ -7,8 +7,7 @@ import { } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { -QUnit.module('model', {}, function () { -QUnit.module('model_field_command', {}, function () { +QUnit.module('model_field_commands', {}, function () { QUnit.module('field_command_link_tests.js', { async beforeEach() { await beforeEach(this); @@ -128,4 +127,3 @@ QUnit.test('link: should link and add a record to a non-empty x2many field', asy }); }); -}); diff --git a/addons/mail/static/src/model/tests/model_field_command/replace_tests.js b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/replace_tests.js similarity index 98% rename from addons/mail/static/src/model/tests/model_field_command/replace_tests.js rename to addons/mail/static/tests/qunit_suite_tests/model_field_commands/replace_tests.js index a8449f3534a..6ee072c2fa8 100644 --- a/addons/mail/static/src/model/tests/model_field_command/replace_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/replace_tests.js @@ -7,8 +7,7 @@ import { } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { -QUnit.module('model', {}, function () { -QUnit.module('model_field_command', {}, function () { +QUnit.module('model_field_commands', {}, function () { QUnit.module('replace_tests.js', { async beforeEach() { await beforeEach(this); @@ -168,4 +167,3 @@ QUnit.test('replace: should order the existing records for x2many field', async }); }); -}); diff --git a/addons/mail/static/src/model/tests/model_field_command/set_tests.js b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/set_tests.js similarity index 95% rename from addons/mail/static/src/model/tests/model_field_command/set_tests.js rename to addons/mail/static/tests/qunit_suite_tests/model_field_commands/set_tests.js index 20c8f3c665d..0d5f990df58 100644 --- a/addons/mail/static/src/model/tests/model_field_command/set_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/set_tests.js @@ -11,8 +11,7 @@ import { } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { -QUnit.module('model', {}, function () { -QUnit.module('model_field_command', {}, function () { +QUnit.module('model_field_commands', {}, function () { QUnit.module('set_tests.js', { async beforeEach() { await beforeEach(this); @@ -91,4 +90,3 @@ QUnit.test('multiple attribute commands combination', async function (assert) { }); }); -}); diff --git a/addons/mail/static/src/model/tests/model_field_command/unlink_all_tests.js b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/unlink_all_tests.js similarity index 94% rename from addons/mail/static/src/model/tests/model_field_command/unlink_all_tests.js rename to addons/mail/static/tests/qunit_suite_tests/model_field_commands/unlink_all_tests.js index 990b69b5d3c..0fdfea67ce6 100644 --- a/addons/mail/static/src/model/tests/model_field_command/unlink_all_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/unlink_all_tests.js @@ -7,8 +7,7 @@ import { } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { -QUnit.module('model', {}, function () { -QUnit.module('model_field_command', {}, function () { +QUnit.module('model_field_commands', {}, function () { QUnit.module('unlink_all_tests.js', { async beforeEach() { await beforeEach(this); @@ -63,4 +62,3 @@ QUnit.test('unlinkAll: should set x2many field an empty array', async function ( }); }); -}); diff --git a/addons/mail/static/src/model/tests/model_field_command/unlink_tests.js b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/unlink_tests.js similarity index 95% rename from addons/mail/static/src/model/tests/model_field_command/unlink_tests.js rename to addons/mail/static/tests/qunit_suite_tests/model_field_commands/unlink_tests.js index b89e3bb680a..7ceb67adc3c 100644 --- a/addons/mail/static/src/model/tests/model_field_command/unlink_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/model_field_commands/unlink_tests.js @@ -7,8 +7,7 @@ import { } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { -QUnit.module('model', {}, function () { -QUnit.module('model_field_command', {}, function () { +QUnit.module('model_field_commands', {}, function () { QUnit.module('unlink_tests.js', { async beforeEach() { await beforeEach(this); @@ -67,4 +66,3 @@ QUnit.test('unlink: should unlink the specified record for x2many field', async }); }); -}); diff --git a/addons/mail/static/tests/attachment_tests.js b/addons/mail/static/tests/qunit_suite_tests/models/attachment_tests.js similarity index 98% rename from addons/mail/static/tests/attachment_tests.js rename to addons/mail/static/tests/qunit_suite_tests/models/attachment_tests.js index 5f77788d12d..54220d0926b 100644 --- a/addons/mail/static/tests/attachment_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/models/attachment_tests.js @@ -3,6 +3,7 @@ import { beforeEach, start } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { +QUnit.module('models', {}, function () { QUnit.module('attachment_tests.js', { async beforeEach() { await beforeEach(this); @@ -124,3 +125,4 @@ QUnit.test('isViewable', async function (assert) { }); }); +}); diff --git a/addons/mail/static/tests/clock_model_tests.js b/addons/mail/static/tests/qunit_suite_tests/models/clock_tests.js similarity index 91% rename from addons/mail/static/tests/clock_model_tests.js rename to addons/mail/static/tests/qunit_suite_tests/models/clock_tests.js index 7342a4573ba..48c363a5fef 100644 --- a/addons/mail/static/tests/clock_model_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/models/clock_tests.js @@ -4,7 +4,8 @@ import { insertAndReplace } from '@mail/model/model_field_command'; import { beforeEach, start } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { -QUnit.module('clock_model_tests', { +QUnit.module('models', {}, function () { +QUnit.module('clock_tests.js', { async beforeEach() { await beforeEach(this); }, @@ -28,3 +29,4 @@ QUnit.test('Deleting all the watchers of a clock should result in the deletion o }); }); +}); diff --git a/addons/mail/static/src/components/file_uploader/tests/file_uploader_tests.js b/addons/mail/static/tests/qunit_suite_tests/models/file_uploader_tests.js similarity index 100% rename from addons/mail/static/src/components/file_uploader/tests/file_uploader_tests.js rename to addons/mail/static/tests/qunit_suite_tests/models/file_uploader_tests.js diff --git a/addons/mail/static/tests/message_tests.js b/addons/mail/static/tests/qunit_suite_tests/models/message_tests.js similarity index 99% rename from addons/mail/static/tests/message_tests.js rename to addons/mail/static/tests/qunit_suite_tests/models/message_tests.js index fbc27221906..8102cb6cadc 100644 --- a/addons/mail/static/tests/message_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/models/message_tests.js @@ -6,6 +6,7 @@ import { beforeEach, start } from '@mail/utils/test_utils'; import { str_to_datetime } from 'web.time'; QUnit.module('mail', {}, function () { +QUnit.module('models', {}, function () { QUnit.module('message_tests.js', { async beforeEach() { await beforeEach(this); @@ -168,3 +169,4 @@ QUnit.test('message with body "test" should not be considered empty', async func }); }); +}); diff --git a/addons/mail/static/tests/messaging_menu_tests.js b/addons/mail/static/tests/qunit_suite_tests/models/messaging_menu_tests.js similarity index 94% rename from addons/mail/static/tests/messaging_menu_tests.js rename to addons/mail/static/tests/qunit_suite_tests/models/messaging_menu_tests.js index a06df950552..4b90d114fdb 100644 --- a/addons/mail/static/tests/messaging_menu_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/models/messaging_menu_tests.js @@ -3,6 +3,7 @@ import { beforeEach, start } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { +QUnit.module('models', {}, function () { QUnit.module('messaging_menu_tests.js', { async beforeEach() { await beforeEach(this); @@ -27,3 +28,4 @@ QUnit.test('messaging menu counter should ignore unread messages in channels tha }); }); +}); diff --git a/addons/mail/static/tests/messaging_tests.js b/addons/mail/static/tests/qunit_suite_tests/models/messaging_tests.js similarity index 98% rename from addons/mail/static/tests/messaging_tests.js rename to addons/mail/static/tests/qunit_suite_tests/models/messaging_tests.js index c3e0807e397..4e372b8f92b 100644 --- a/addons/mail/static/tests/messaging_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/models/messaging_tests.js @@ -3,6 +3,7 @@ import { beforeEach, start } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { +QUnit.module('models', {}, function () { QUnit.module('messaging_tests.js', { async beforeEach() { await beforeEach(this); @@ -118,5 +119,5 @@ QUnit.test('openChat: open existing chat for user', async function (assert) { }); }); - +}); }); diff --git a/addons/mail/static/tests/thread_tests.js b/addons/mail/static/tests/qunit_suite_tests/models/thread_tests.js similarity index 99% rename from addons/mail/static/tests/thread_tests.js rename to addons/mail/static/tests/qunit_suite_tests/models/thread_tests.js index c19ee63c644..271f36e4a2a 100644 --- a/addons/mail/static/tests/thread_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/models/thread_tests.js @@ -4,6 +4,7 @@ import { insert } from '@mail/model/model_field_command'; import { beforeEach, start } from '@mail/utils/test_utils'; QUnit.module('mail', {}, function () { +QUnit.module('models', {}, function () { QUnit.module('thread_tests.js', { async beforeEach() { await beforeEach(this); @@ -131,3 +132,4 @@ QUnit.test('create (chat)', async function (assert) { }); }); +}); diff --git a/addons/mail/static/tests/systray/systray_activity_menu_tests.js b/addons/mail/static/tests/qunit_suite_tests/systray_activity_menu_tests.js similarity index 100% rename from addons/mail/static/tests/systray/systray_activity_menu_tests.js rename to addons/mail/static/tests/qunit_suite_tests/systray_activity_menu_tests.js diff --git a/addons/mail/static/tests/mail_utils_tests.js b/addons/mail/static/tests/qunit_suite_tests/utils/mail_utils_tests.js similarity index 100% rename from addons/mail/static/tests/mail_utils_tests.js rename to addons/mail/static/tests/qunit_suite_tests/utils/mail_utils_tests.js diff --git a/addons/mail/static/src/utils/throttle/tests/throttle_tests.js b/addons/mail/static/tests/qunit_suite_tests/utils/throttle_tests.js similarity index 100% rename from addons/mail/static/src/utils/throttle/tests/throttle_tests.js rename to addons/mail/static/tests/qunit_suite_tests/utils/throttle_tests.js diff --git a/addons/mail/static/src/utils/timer/tests/timer_tests.js b/addons/mail/static/tests/qunit_suite_tests/utils/timer_tests.js similarity index 100% rename from addons/mail/static/src/utils/timer/tests/timer_tests.js rename to addons/mail/static/tests/qunit_suite_tests/utils/timer_tests.js diff --git a/addons/mail/static/tests/webclient/commands/mail_providers_tests.js b/addons/mail/static/tests/qunit_suite_tests/webclient/commands/mail_providers_tests.js similarity index 100% rename from addons/mail/static/tests/webclient/commands/mail_providers_tests.js rename to addons/mail/static/tests/qunit_suite_tests/webclient/commands/mail_providers_tests.js diff --git a/addons/mail/static/src/widgets/form_renderer/tests/form_renderer_tests.js b/addons/mail/static/tests/qunit_suite_tests/widgets/form_renderer_tests.js similarity index 99% rename from addons/mail/static/src/widgets/form_renderer/tests/form_renderer_tests.js rename to addons/mail/static/tests/qunit_suite_tests/widgets/form_renderer_tests.js index 8dd201cdf36..d41a9decd5c 100644 --- a/addons/mail/static/src/widgets/form_renderer/tests/form_renderer_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/widgets/form_renderer_tests.js @@ -18,7 +18,6 @@ const { triggerEvent } = dom; QUnit.module('mail', {}, function () { QUnit.module('widgets', {}, function () { -QUnit.module('form_renderer', {}, function () { QUnit.module('form_renderer_tests.js', { async beforeEach() { await beforeEach(this); @@ -1109,4 +1108,3 @@ QUnit.test('chatter does not flicker when the form view is re-rendered', async f }); }); -}); diff --git a/addons/mail/static/src/widgets/notification_alert/tests/notification_alert_tests.js b/addons/mail/static/tests/qunit_suite_tests/widgets/notification_alert_tests.js similarity index 97% rename from addons/mail/static/src/widgets/notification_alert/tests/notification_alert_tests.js rename to addons/mail/static/tests/qunit_suite_tests/widgets/notification_alert_tests.js index 15911984c33..d00c0bee140 100644 --- a/addons/mail/static/src/widgets/notification_alert/tests/notification_alert_tests.js +++ b/addons/mail/static/tests/qunit_suite_tests/widgets/notification_alert_tests.js @@ -6,7 +6,6 @@ import FormView from 'web.FormView'; QUnit.module('mail', {}, function () { QUnit.module('widgets', {}, function () { -QUnit.module('notification_alert', {}, function () { QUnit.module('notification_alert_tests.js', { async beforeEach() { await beforeEach(this); @@ -108,4 +107,3 @@ QUnit.test('notification_alert widget: no notification alert when default', asyn }); }); -}); diff --git a/addons/sms/__manifest__.py b/addons/sms/__manifest__.py index b690a9607c9..c8ffc63f7bb 100644 --- a/addons/sms/__manifest__.py +++ b/addons/sms/__manifest__.py @@ -52,7 +52,7 @@ The service is provided by the In App Purchase Odoo platform. ], 'web.qunit_suite_tests': [ 'sms/static/tests/sms_widget_test.js', - 'sms/static/src/components/*/tests/*.js', + 'sms/static/tests/qunit_suite_tests/**/*.js', ], 'web.assets_qweb': [ 'sms/static/src/components/*/*.xml', diff --git a/addons/sms/static/src/components/message/tests/message_tests.js b/addons/sms/static/tests/qunit_suite_tests/components/message_tests.js similarity index 99% rename from addons/sms/static/src/components/message/tests/message_tests.js rename to addons/sms/static/tests/qunit_suite_tests/components/message_tests.js index 96dd8a79962..30926710784 100644 --- a/addons/sms/static/src/components/message/tests/message_tests.js +++ b/addons/sms/static/tests/qunit_suite_tests/components/message_tests.js @@ -12,7 +12,6 @@ import Bus from 'web.Bus'; QUnit.module('sms', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('message', {}, function () { QUnit.module('message_tests.js', { async beforeEach() { await beforeEach(this); @@ -176,4 +175,3 @@ QUnit.test('Notification Error', async function (assert) { }); }); -}); diff --git a/addons/sms/static/src/components/notification_list/tests/notification_list_notification_group_tests.js b/addons/sms/static/tests/qunit_suite_tests/components/notification_list_notification_group_tests.js similarity index 100% rename from addons/sms/static/src/components/notification_list/tests/notification_list_notification_group_tests.js rename to addons/sms/static/tests/qunit_suite_tests/components/notification_list_notification_group_tests.js diff --git a/addons/snailmail/__manifest__.py b/addons/snailmail/__manifest__.py index f2c6d68851d..6b6cf33e515 100644 --- a/addons/snailmail/__manifest__.py +++ b/addons/snailmail/__manifest__.py @@ -39,10 +39,10 @@ Allows users to send documents by post 'snailmail/static/src/models/*.js', ], 'web.tests_assets': [ - 'snailmail/static/tests/**/*', + 'snailmail/static/tests/helpers/*.js', ], 'web.qunit_suite_tests': [ - 'snailmail/static/src/components/*/tests/*.js', + 'snailmail/static/tests/qunit_suite_tests/**/*.js', ], 'web.assets_qweb': [ 'snailmail/static/src/components/*/*.xml', diff --git a/addons/snailmail/static/src/components/message/tests/message_tests.js b/addons/snailmail/static/tests/qunit_suite_tests/components/message_tests.js similarity index 99% rename from addons/snailmail/static/src/components/message/tests/message_tests.js rename to addons/snailmail/static/tests/qunit_suite_tests/components/message_tests.js index 8a973c2371b..58ce529fb25 100644 --- a/addons/snailmail/static/src/components/message/tests/message_tests.js +++ b/addons/snailmail/static/tests/qunit_suite_tests/components/message_tests.js @@ -11,7 +11,6 @@ import Bus from 'web.Bus'; QUnit.module('snailmail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('message', {}, function () { QUnit.module('message_tests.js', { async beforeEach() { await beforeEach(this); @@ -691,4 +690,3 @@ QUnit.test('Missing Required Fields', async function (assert) { }); }); -}); diff --git a/addons/snailmail/static/src/components/notification_list/tests/notification_list_notification_group_tests.js b/addons/snailmail/static/tests/qunit_suite_tests/components/notification_list_notification_group_tests.js similarity index 99% rename from addons/snailmail/static/src/components/notification_list/tests/notification_list_notification_group_tests.js rename to addons/snailmail/static/tests/qunit_suite_tests/components/notification_list_notification_group_tests.js index d84fde0527f..926d574932c 100644 --- a/addons/snailmail/static/src/components/notification_list/tests/notification_list_notification_group_tests.js +++ b/addons/snailmail/static/tests/qunit_suite_tests/components/notification_list_notification_group_tests.js @@ -6,7 +6,6 @@ import Bus from 'web.Bus'; QUnit.module('snailmail', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('notification_list', {}, function () { QUnit.module('notification_list_notification_group_tests.js', { async beforeEach() { await beforeEach(this); @@ -267,4 +266,3 @@ QUnit.test('grouped notifications by document model', async function (assert) { }); }); -}); diff --git a/addons/website_livechat/__manifest__.py b/addons/website_livechat/__manifest__.py index f195d41d501..fb968e94d88 100644 --- a/addons/website_livechat/__manifest__.py +++ b/addons/website_livechat/__manifest__.py @@ -43,11 +43,12 @@ Allow website visitors to chat with the collaborators. This module also brings a 'web.assets_tests': [ 'website_livechat/static/tests/tours/**/*', ], - 'web.qunit_suite_tests': [ - 'website_livechat/static/src/components/*/tests/*.js', - 'website_livechat/static/tests/*.js', + 'web.tests_assets': [ 'website_livechat/static/tests/helpers/*.js', ], + 'web.qunit_suite_tests': [ + 'website_livechat/static/tests/qunit_suite_tests/**/*.js', + ], 'web.assets_qweb': [ 'website_livechat/static/src/components/*/*.xml', ], diff --git a/addons/website_livechat/static/src/components/discuss/tests/discuss_tests.js b/addons/website_livechat/static/tests/qunit_suite_tests/components/discuss_tests.js similarity index 99% rename from addons/website_livechat/static/src/components/discuss/tests/discuss_tests.js rename to addons/website_livechat/static/tests/qunit_suite_tests/components/discuss_tests.js index ee5468309d8..fd7a92c904c 100644 --- a/addons/website_livechat/static/src/components/discuss/tests/discuss_tests.js +++ b/addons/website_livechat/static/tests/qunit_suite_tests/components/discuss_tests.js @@ -7,7 +7,6 @@ import { QUnit.module('website_livechat', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('discuss', {}, function () { QUnit.module('discuss_tests.js', { async beforeEach() { await beforeEach(this); @@ -264,4 +263,3 @@ QUnit.test('non-livechat channel should not show visitor banner', async function }); }); -}); diff --git a/addons/website_livechat/static/tests/messaging_notification_handler_tests.js b/addons/website_livechat/static/tests/qunit_suite_tests/messaging_notification_handler_tests.js similarity index 100% rename from addons/website_livechat/static/tests/messaging_notification_handler_tests.js rename to addons/website_livechat/static/tests/qunit_suite_tests/messaging_notification_handler_tests.js diff --git a/addons/website_slides/__manifest__.py b/addons/website_slides/__manifest__.py index 86856915fe5..68c9752feff 100644 --- a/addons/website_slides/__manifest__.py +++ b/addons/website_slides/__manifest__.py @@ -97,7 +97,7 @@ Featuring 'website_slides/static/src/js/portal_chatter.js', ], 'web.assets_tests': [ - 'website_slides/static/src/tests/**/*', + 'website_slides/static/tests/tours/*.js', ], 'website.assets_editor': [ 'website_slides/static/src/js/website_slides.editor.js', @@ -112,10 +112,10 @@ Featuring 'website_slides/static/src/js/slides_embed.js', ], 'web.tests_assets': [ - 'website_slides/static/src/tests/helpers/*.js', + 'website_slides/static/tests/helpers/*.js', ], 'web.qunit_suite_tests': [ - 'website_slides/static/src/components/*/tests/*.js', + 'website_slides/static/tests/qunit_suite_tests/**/*.js', ], 'web.assets_qweb': [ 'website_slides/static/src/components/*/*.xml', diff --git a/addons/website_slides/static/src/tests/helpers/model_definitions_setup.js b/addons/website_slides/static/tests/helpers/model_definitions_setup.js similarity index 100% rename from addons/website_slides/static/src/tests/helpers/model_definitions_setup.js rename to addons/website_slides/static/tests/helpers/model_definitions_setup.js diff --git a/addons/website_slides/static/src/components/activity/tests/activity_tests.js b/addons/website_slides/static/tests/qunit_suite_tests/components/activity_tests.js similarity index 98% rename from addons/website_slides/static/src/components/activity/tests/activity_tests.js rename to addons/website_slides/static/tests/qunit_suite_tests/components/activity_tests.js index c042fd9b0c6..ac79dc96f58 100644 --- a/addons/website_slides/static/src/components/activity/tests/activity_tests.js +++ b/addons/website_slides/static/tests/qunit_suite_tests/components/activity_tests.js @@ -4,7 +4,6 @@ import { beforeEach, start } from '@mail/utils/test_utils'; QUnit.module('website_slides', {}, function () { QUnit.module('components', {}, function () { -QUnit.module('activity', {}, function () { QUnit.module('activity_tests.js', { async beforeEach() { await beforeEach(this); @@ -93,4 +92,3 @@ QUnit.test('refuse course access', async function (assert) { }); }); -}); diff --git a/addons/website_slides/static/src/tests/tours/slide_course_publisher_standard.js b/addons/website_slides/static/tests/tours/slide_course_publisher_standard.js similarity index 97% rename from addons/website_slides/static/src/tests/tours/slide_course_publisher_standard.js rename to addons/website_slides/static/tests/tours/slide_course_publisher_standard.js index dc8ea89c266..836a48aea68 100644 --- a/addons/website_slides/static/src/tests/tours/slide_course_publisher_standard.js +++ b/addons/website_slides/static/tests/tours/slide_course_publisher_standard.js @@ -1,7 +1,7 @@ /** @odoo-module **/ import tour from 'web_tour.tour'; -import slidesTourTools from '@website_slides/tests/tours/slides_tour_tools'; +import slidesTourTools from '@website_slides/../tests/tours/slides_tour_tools'; /** * Global use case: diff --git a/addons/website_slides/static/src/tests/tours/slides_course_member.js b/addons/website_slides/static/tests/tours/slides_course_member.js similarity index 100% rename from addons/website_slides/static/src/tests/tours/slides_course_member.js rename to addons/website_slides/static/tests/tours/slides_course_member.js diff --git a/addons/website_slides/static/src/tests/tours/slides_course_member_yt.js b/addons/website_slides/static/tests/tours/slides_course_member_yt.js similarity index 100% rename from addons/website_slides/static/src/tests/tours/slides_course_member_yt.js rename to addons/website_slides/static/tests/tours/slides_course_member_yt.js diff --git a/addons/website_slides/static/src/tests/tours/slides_course_publisher.js b/addons/website_slides/static/tests/tours/slides_course_publisher.js similarity index 97% rename from addons/website_slides/static/src/tests/tours/slides_course_publisher.js rename to addons/website_slides/static/tests/tours/slides_course_publisher.js index c2c15e24ff8..7d3f32eef00 100644 --- a/addons/website_slides/static/src/tests/tours/slides_course_publisher.js +++ b/addons/website_slides/static/tests/tours/slides_course_publisher.js @@ -1,7 +1,7 @@ /** @odoo-module **/ import tour from 'web_tour.tour'; -import slidesTourTools from '@website_slides/tests/tours/slides_tour_tools'; +import slidesTourTools from '@website_slides/../tests/tours/slides_tour_tools'; /** * Global use case: diff --git a/addons/website_slides/static/src/tests/tours/slides_full_screen_web_editor.js b/addons/website_slides/static/tests/tours/slides_full_screen_web_editor.js similarity index 100% rename from addons/website_slides/static/src/tests/tours/slides_full_screen_web_editor.js rename to addons/website_slides/static/tests/tours/slides_full_screen_web_editor.js diff --git a/addons/website_slides/static/src/tests/tours/slides_tour_tools.js b/addons/website_slides/static/tests/tours/slides_tour_tools.js similarity index 100% rename from addons/website_slides/static/src/tests/tours/slides_tour_tools.js rename to addons/website_slides/static/tests/tours/slides_tour_tools.js