diff --git a/addons/mail/static/src/components/composer_suggestion/composer_suggestion_channel_tests.js b/addons/mail/static/src/components/composer_suggestion/composer_suggestion_channel_tests.js index f8409de2da9..047fc997b49 100644 --- a/addons/mail/static/src/components/composer_suggestion/composer_suggestion_channel_tests.js +++ b/addons/mail/static/src/components/composer_suggestion/composer_suggestion_channel_tests.js @@ -50,6 +50,7 @@ QUnit.test('channel mention suggestion displayed', async function (assert) { const channel = this.env.models['mail.thread'].create({ id: 7, name: "General", + model: 'mail.channel', }); await this.createComposerSuggestion({ composerLocalId: thread.composer.localId, @@ -77,6 +78,7 @@ QUnit.test('channel mention suggestion correct data', async function (assert) { const channel = this.env.models['mail.thread'].create({ id: 7, name: "General", + model: 'mail.channel', }); await this.createComposerSuggestion({ composerLocalId: thread.composer.localId, @@ -114,6 +116,7 @@ QUnit.test('partner mention suggestion active', async function (assert) { const channel = this.env.models['mail.thread'].create({ id: 7, name: "General", + model: 'mail.channel', }); await this.createComposerSuggestion({ composerLocalId: thread.composer.localId, diff --git a/addons/mail/static/src/components/discuss/tests/discuss_moderation_tests.js b/addons/mail/static/src/components/discuss/tests/discuss_moderation_tests.js index 04ca8b08e18..2afd997a42b 100644 --- a/addons/mail/static/src/components/discuss/tests/discuss_moderation_tests.js +++ b/addons/mail/static/src/components/discuss/tests/discuss_moderation_tests.js @@ -986,7 +986,7 @@ QUnit.test('as moderator, new pending moderation message posted by someone else' // simulate receiving the message const messageData = { - author_id: 10, // random id, different than current partner + author_id: [10, 'john doe'], // random id, different than current partner body: "not empty", channel_ids: [], // server do NOT return channel_id of the message if pending moderation id: 1, // random unique id diff --git a/addons/website_slides/static/src/components/activity/activity_tests.js b/addons/website_slides/static/src/components/activity/activity_tests.js index d8e465a4237..d754428cf62 100644 --- a/addons/website_slides/static/src/components/activity/activity_tests.js +++ b/addons/website_slides/static/src/components/activity/activity_tests.js @@ -55,6 +55,7 @@ QUnit.test('grant course access', async function (assert) { }, }); const activity = this.env.models['mail.activity'].create({ + id: 100, canWrite: true, thread: [['insert', { id: 100, @@ -94,6 +95,7 @@ QUnit.test('refuse course access', async function (assert) { }, }); const activity = this.env.models['mail.activity'].create({ + id: 100, canWrite: true, thread: [['insert', { id: 100,