[MOV] mail, *: move tests

* = hr_holidays, im_livechat, sms, snailmail, website_livechat,
    website_slides

Move tests files into `static/tests`.

Task-2759560

closes odoo/odoo#86581

Related: odoo/enterprise#25375
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Louis Wicket (wil)
2022-03-18 16:07:29 +01:00
parent 1fc6f4261b
commit b9fd435b99
106 changed files with 42 additions and 159 deletions
+1 -2
View File
@@ -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',
@@ -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) {
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
+5 -3
View File
@@ -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',
],
@@ -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) {
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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) {
});
});
});
@@ -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)
});
});
});
@@ -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)
});
});
});
+3 -9
View File
@@ -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',
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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) {
});
});
});
@@ -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) {
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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) {
});
});
});
@@ -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) {
});
});
});
@@ -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) {
});
});
});
@@ -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) {
});
});
});
@@ -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) {
});
});
});
@@ -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
});
});
});
@@ -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) {
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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',
});
});
});
@@ -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
});
});
});
@@ -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) {
});
});
});
@@ -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) {
});
});
});
@@ -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) {
});
});
});
@@ -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) {
});
});
});
@@ -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 (
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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) {
});
});
});
@@ -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
});
});
});
@@ -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) {
});
});
});
@@ -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) {
});
});
});
@@ -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
});
});
});
@@ -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) {
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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) {
});
});
});
@@ -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 (
});
});
});
@@ -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
});
});
});
@@ -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) {
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
@@ -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) {
});
});
});
});
@@ -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) {
});
});
});
@@ -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
});
});
});
@@ -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
});
});
});
+1 -1
View File
@@ -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',
@@ -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) {
});
});
});
+2 -2
View File
@@ -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',
@@ -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) {
});
});
});
@@ -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) {
});
});
});
+4 -3
View File
@@ -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',
],
@@ -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
});
});
});
+3 -3
View File
@@ -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',
@@ -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) {
});
});
});

Some files were not shown because too many files have changed in this diff Show More