[IMP] mail, *: make mail module's beforeEach functions async
*: calendar, hr, hr_holidays, im_livechat, note, sms, snailmail, website_livechat, website_slides. This commit prepares the ground for the model definitions PR. In order to reduce the noise, all mail module's beforeEach functions will be made async. task-2767820 closes odoo/odoo#84845 Related: odoo/enterprise#24489 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
@@ -7,8 +7,8 @@ import testUtils from 'web.test_utils';
|
||||
|
||||
QUnit.module('calendar', {}, function () {
|
||||
QUnit.module('ActivityMenu', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
Object.assign(this.data, {
|
||||
'calendar.event': {
|
||||
|
||||
@@ -15,8 +15,8 @@ import { dom, mock } from 'web.test_utils';
|
||||
|
||||
QUnit.module('hr', {}, function () {
|
||||
QUnit.module('M2XAvatarEmployee', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
// reset the cache before each test
|
||||
Many2OneAvatarEmployee.prototype.partnerIds = {};
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@ QUnit.module('hr_holidays', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('partner_im_status_icon', {}, function () {
|
||||
QUnit.module('partner_im_status_icon_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.createPartnerImStatusIcon = async partner => {
|
||||
await createRootMessagingComponent(this, "PartnerImStatusIcon", {
|
||||
|
||||
@@ -11,8 +11,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('thread_icon', {}, function () {
|
||||
QUnit.module('thread_icon_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.createThreadIcon = async thread => {
|
||||
await createRootMessagingComponent(this, "ThreadIcon", {
|
||||
|
||||
@@ -11,8 +11,8 @@ QUnit.module('hr_holidays', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('thread_view', {}, function () {
|
||||
QUnit.module('thread_view_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@ QUnit.module('im_livechat', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('chat_window_manager', {}, function () {
|
||||
QUnit.module('chat_window_manager_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start(Object.assign(
|
||||
|
||||
@@ -6,8 +6,8 @@ QUnit.module('im_livechat', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('composer', {}, function () {
|
||||
QUnit.module('composer_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
@@ -14,8 +14,8 @@ QUnit.module('im_livechat', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('discuss', {}, function () {
|
||||
QUnit.module('discuss_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@ QUnit.module('im_livechat', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('discuss_sidebar_category', {}, function () {
|
||||
QUnit.module('discuss_sidebar_category_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
|
||||
+2
-2
@@ -10,8 +10,8 @@ QUnit.module('im_livechat', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('discuss_sidebar_category_item', {}, function () {
|
||||
QUnit.module('discuss_sidebar_category_item_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@ QUnit.module('im_livechat', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('messaging_menu', {}, function () {
|
||||
QUnit.module('messaging_menu_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -12,8 +12,8 @@ QUnit.module('im_livechat', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('thread_icon', {}, function () {
|
||||
QUnit.module('thread_icon_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.createThreadIcon = async thread => {
|
||||
await createRootMessagingComponent(this, "ThreadIcon", {
|
||||
|
||||
+2
-2
@@ -12,8 +12,8 @@ QUnit.module('im_livechat', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('thread_textual_typing_status', {}, function () {
|
||||
QUnit.module('thread_textual_typing_status_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.createThreadTextualTypingStatusComponent = async thread => {
|
||||
await createRootMessagingComponent(this, "ThreadTextualTypingStatus", {
|
||||
|
||||
@@ -9,8 +9,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('activity', {}, function () {
|
||||
QUnit.module('activity_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
+2
-2
@@ -8,8 +8,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('activity_mark_done_popover', {}, function () {
|
||||
QUnit.module('activity_mark_done_popover_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
@@ -17,8 +17,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('attachment_box', {}, function () {
|
||||
QUnit.module('attachment_box_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -11,8 +11,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('attachment_image', {}, function () {
|
||||
QUnit.module('attachment_image_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
@@ -13,8 +13,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('attachment_list', {}, function () {
|
||||
QUnit.module('attachment_list_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('channel_invitation_form', {}, function () {
|
||||
QUnit.module('channel_invitation_form_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
|
||||
+2
-2
@@ -17,8 +17,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('chat_window_manager', {}, function () {
|
||||
QUnit.module('chat_window_manager_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start(Object.assign(
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('chatter', {}, function () {
|
||||
QUnit.module('chatter_suggested_recipients_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -6,8 +6,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('chatter', {}, function () {
|
||||
QUnit.module('chatter_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
@@ -8,8 +8,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('chatter_topbar', {}, function () {
|
||||
QUnit.module('chatter_topbar_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -23,8 +23,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('composer', {}, function () {
|
||||
QUnit.module('composer_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('composer_suggestion', {}, function () {
|
||||
QUnit.module('composer_suggestion_canned_response_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('composer_suggestion', {}, function () {
|
||||
QUnit.module('composer_suggestion_channel_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('composer_suggestion', {}, function () {
|
||||
QUnit.module('composer_suggestion_command_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('composer_suggestion', {}, function () {
|
||||
QUnit.module('composer_suggestion_partner_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
@@ -12,8 +12,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('dialog_manager', {}, function () {
|
||||
QUnit.module('dialog_manager_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign(
|
||||
|
||||
@@ -14,8 +14,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('discuss', {}, function () {
|
||||
QUnit.module('discuss_inbox_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -6,8 +6,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('discuss', {}, function () {
|
||||
QUnit.module('discuss_message_edit_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -11,8 +11,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('discuss', {}, function () {
|
||||
QUnit.module('discuss_pinned_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -13,8 +13,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('discuss', {}, function () {
|
||||
QUnit.module('discuss_sidebar_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -19,8 +19,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('discuss', {}, function () {
|
||||
QUnit.module('discuss_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start(Object.assign({}, params, {
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('discuss_mobile_mailbox_selection', {}, function () {
|
||||
QUnit.module('discuss_mobile_mailbox_selection_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign(
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('discuss_sidebar_category', {}, function () {
|
||||
QUnit.module('discuss_sidebar_category_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
|
||||
+2
-2
@@ -13,8 +13,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('discuss_sidebar_category_item', {}, function () {
|
||||
QUnit.module('discuss_sidebar_category_item_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -9,8 +9,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('file_uploader', {}, function () {
|
||||
QUnit.module('file_uploader_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
this.apps = [];
|
||||
|
||||
this.start = async params => {
|
||||
|
||||
@@ -12,8 +12,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('follow_button', {}, function () {
|
||||
QUnit.module('follow_button_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.createFollowButtonComponent = async (thread, otherProps = {}) => {
|
||||
const props = Object.assign({ threadLocalId: thread.localId }, otherProps);
|
||||
|
||||
@@ -16,8 +16,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('follower', {}, function () {
|
||||
QUnit.module('follower_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.createFollowerComponent = async (follower) => {
|
||||
await createRootMessagingComponent(this, "Follower", {
|
||||
|
||||
+2
-2
@@ -15,8 +15,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('follower_list_menu', {}, function () {
|
||||
QUnit.module('follower_list_menu_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.createFollowerListMenuComponent = async (thread, otherProps = {}) => {
|
||||
const props = Object.assign({ threadLocalId: thread.localId }, otherProps);
|
||||
|
||||
@@ -13,8 +13,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('follower_subtype', {}, function () {
|
||||
QUnit.module('follower_subtype_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.createFollowerSubtypeComponent = async ({ follower, followerSubtype }) => {
|
||||
const props = {
|
||||
|
||||
@@ -17,8 +17,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('message', {}, function () {
|
||||
QUnit.module('message_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
+2
-2
@@ -12,8 +12,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('message_seen_indicator', {}, function () {
|
||||
QUnit.module('message_seen_indicator_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.createMessageSeenIndicatorComponent = async ({ message, thread }, otherProps) => {
|
||||
const props = Object.assign(
|
||||
|
||||
@@ -14,8 +14,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('messaging_menu', {}, function () {
|
||||
QUnit.module('messaging_menu_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start(Object.assign({}, params, {
|
||||
|
||||
+2
-2
@@ -8,8 +8,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('notification_list', {}, function () {
|
||||
QUnit.module('notification_list_notification_group_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start(Object.assign({}, params, {
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('notification_list', {}, function () {
|
||||
QUnit.module('notification_list_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start(Object.assign({}, params, {
|
||||
|
||||
+2
-2
@@ -12,8 +12,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('partner_im_status_icon', {}, function () {
|
||||
QUnit.module('partner_im_status_icon_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.createPartnerImStatusIcon = async partner => {
|
||||
await createRootMessagingComponent(this, "PartnerImStatusIcon", {
|
||||
|
||||
@@ -12,8 +12,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('thread_icon', {}, function () {
|
||||
QUnit.module('thread_icon_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.createThreadIcon = async thread => {
|
||||
await createRootMessagingComponent(this, "ThreadIcon", {
|
||||
|
||||
+2
-2
@@ -8,8 +8,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('thread_needaction_preview', {}, function () {
|
||||
QUnit.module('thread_needaction_preview_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -6,8 +6,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('thread_preview', {}, function () {
|
||||
QUnit.module('thread_preview_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start(Object.assign({}, params, {
|
||||
|
||||
+2
-2
@@ -13,8 +13,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('thread_textual_typing_status', {}, function () {
|
||||
QUnit.module('thread_textual_typing_status_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.createThreadTextualTypingStatusComponent = async thread => {
|
||||
await createRootMessagingComponent(this, "ThreadTextualTypingStatus", {
|
||||
|
||||
@@ -13,8 +13,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('thread_view', {}, function () {
|
||||
QUnit.module('thread_view_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
@@ -11,8 +11,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('model', {}, function () {
|
||||
QUnit.module('model_field_command', {}, function () {
|
||||
QUnit.module('clear_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
data: this.data,
|
||||
|
||||
@@ -11,8 +11,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('model', {}, function () {
|
||||
QUnit.module('model_field_command', {}, function () {
|
||||
QUnit.module('insert_and_replace_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
data: this.data,
|
||||
|
||||
@@ -11,8 +11,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('model', {}, function () {
|
||||
QUnit.module('model_field_command', {}, function () {
|
||||
QUnit.module('insert_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
data: this.data,
|
||||
|
||||
@@ -11,8 +11,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('model', {}, function () {
|
||||
QUnit.module('model_field_command', {}, function () {
|
||||
QUnit.module('field_command_link_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
data: this.data,
|
||||
|
||||
@@ -11,8 +11,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('model', {}, function () {
|
||||
QUnit.module('model_field_command', {}, function () {
|
||||
QUnit.module('replace_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
data: this.data,
|
||||
|
||||
@@ -15,8 +15,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('model', {}, function () {
|
||||
QUnit.module('model_field_command', {}, function () {
|
||||
QUnit.module('set_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
data: this.data,
|
||||
|
||||
@@ -11,8 +11,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('model', {}, function () {
|
||||
QUnit.module('model_field_command', {}, function () {
|
||||
QUnit.module('unlink_all_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
data: this.data,
|
||||
|
||||
@@ -11,8 +11,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('model', {}, function () {
|
||||
QUnit.module('model_field_command', {}, function () {
|
||||
QUnit.module('unlink_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
data: this.data,
|
||||
|
||||
@@ -6,8 +6,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('models', {}, function () {
|
||||
QUnit.module('attachment', {}, function () {
|
||||
QUnit.module('attachment_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -9,8 +9,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('models', {}, function () {
|
||||
QUnit.module('message', {}, function () {
|
||||
QUnit.module('message_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -6,8 +6,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('models', {}, function () {
|
||||
QUnit.module('messaging', {}, function () {
|
||||
QUnit.module('messaging_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -6,8 +6,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('models', {}, function () {
|
||||
QUnit.module('messaging_menu', {}, function () {
|
||||
QUnit.module('messaging_menu_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env } = await start({ data: this.data, ...params });
|
||||
|
||||
@@ -7,8 +7,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('models', {}, function () {
|
||||
QUnit.module('thread', {}, function () {
|
||||
QUnit.module('thread_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -10,8 +10,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('utils', {}, function () {
|
||||
QUnit.module('throttle', {}, function () {
|
||||
QUnit.module('throttle_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
this.throttles = [];
|
||||
|
||||
this.start = async params => {
|
||||
|
||||
@@ -9,8 +9,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('utils', {}, function () {
|
||||
QUnit.module('timer', {}, function () {
|
||||
QUnit.module('timer_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
this.timers = [];
|
||||
|
||||
this.start = async (params) => {
|
||||
|
||||
@@ -21,8 +21,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('widgets', {}, function () {
|
||||
QUnit.module('form_renderer', {}, function () {
|
||||
QUnit.module('form_renderer_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
// FIXME archs could be removed once task-2248306 is done
|
||||
// The mockServer will try to get the list view
|
||||
|
||||
@@ -8,8 +8,8 @@ QUnit.module('mail', {}, function () {
|
||||
QUnit.module('widgets', {}, function () {
|
||||
QUnit.module('notification_alert', {}, function () {
|
||||
QUnit.module('notification_alert_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
let { widget } = await start(Object.assign({
|
||||
|
||||
@@ -8,8 +8,8 @@ import testUtils from 'web.test_utils';
|
||||
|
||||
QUnit.module('mail', {}, function () {
|
||||
QUnit.module('Chatter', {
|
||||
beforeEach: function () {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.data['res.partner'].records.push({ id: 11, im_status: 'online' });
|
||||
this.data['mail.activity.type'].records.push(
|
||||
@@ -372,8 +372,8 @@ QUnit.test('list activity exception widget with activity', async function (asser
|
||||
});
|
||||
|
||||
QUnit.module('FieldMany2ManyTagsEmail', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
Object.assign(this.data['res.users'].fields, {
|
||||
timmy: { string: "pokemon", type: "many2many", relation: 'partner_type' },
|
||||
|
||||
@@ -18,8 +18,8 @@ let target;
|
||||
|
||||
QUnit.module('mail', {}, function () {
|
||||
QUnit.module('M2XAvatarUser', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
// reset the cache before each test
|
||||
Many2OneAvatarUser.prototype.partnerIds = {};
|
||||
|
||||
@@ -12,8 +12,8 @@ import testUtils from 'web.test_utils';
|
||||
|
||||
QUnit.module('mail', {}, function () {
|
||||
QUnit.module('ActivityMenu', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
Object.assign(this.data, {
|
||||
'mail.activity.menu': {
|
||||
|
||||
@@ -11,9 +11,9 @@ const serviceRegistry = registry.category("services");
|
||||
|
||||
QUnit.module('mail', {}, function () {
|
||||
QUnit.module('Command Palette', {
|
||||
beforeEach() {
|
||||
async beforeEach() {
|
||||
serviceRegistry.add("command", commandService);
|
||||
beforeEach(this);
|
||||
await beforeEach(this);
|
||||
patchWithCleanup(browser, {
|
||||
clearTimeout() {},
|
||||
setTimeout(later, wait) {
|
||||
|
||||
@@ -7,8 +7,8 @@ import testUtils from 'web.test_utils';
|
||||
|
||||
QUnit.module('note', {}, function () {
|
||||
QUnit.module("ActivityMenu", {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
Object.assign(this.data, {
|
||||
'mail.activity.menu': {
|
||||
|
||||
@@ -15,8 +15,8 @@ QUnit.module('sms', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('message', {}, function () {
|
||||
QUnit.module('message_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
+2
-2
@@ -8,8 +8,8 @@ QUnit.module('sms', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('notification_list', {}, function () {
|
||||
QUnit.module('notification_list_notification_group_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -14,8 +14,8 @@ QUnit.module('snailmail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('message', {}, function () {
|
||||
QUnit.module('message_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
|
||||
+2
-2
@@ -8,8 +8,8 @@ QUnit.module('snailmail', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('notification_list', {}, function () {
|
||||
QUnit.module('notification_list_notification_group_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const res = await start(Object.assign({}, params, {
|
||||
|
||||
@@ -10,8 +10,8 @@ QUnit.module('website_livechat', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('discuss', {}, function () {
|
||||
QUnit.module('discuss_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, params, {
|
||||
|
||||
+2
-2
@@ -14,8 +14,8 @@ QUnit.module('website_livechat', {}, function () {
|
||||
QUnit.module('models', {}, function () {
|
||||
QUnit.module('messaging_notification_handler', {}, function () {
|
||||
QUnit.module('messaging_notification_handler_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
|
||||
this.start = async params => {
|
||||
const { env, widget } = await start(Object.assign({}, {
|
||||
|
||||
@@ -6,8 +6,8 @@ QUnit.module('website_slides', {}, function () {
|
||||
QUnit.module('components', {}, function () {
|
||||
QUnit.module('activity', {}, function () {
|
||||
QUnit.module('activity_tests.js', {
|
||||
beforeEach() {
|
||||
beforeEach(this);
|
||||
async beforeEach() {
|
||||
await beforeEach(this);
|
||||
this.start = async params => {
|
||||
const res = await start({ ...params, data: this.data });
|
||||
const { apps, env, widget } = res;
|
||||
|
||||
Reference in New Issue
Block a user