From 17611f4adc5e950b0a75a2a6615b1da3c956387f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Fri, 28 Aug 2020 12:53:38 +0000 Subject: [FIX] mail, *: fix opens and redirects, adapt messaging menu close MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit task-2244279 task-2262862 task-2274993 task-2277537 task-2282238 closes odoo/odoo#56745 X-original-commit: 109f202 Related: odoo/enterprise#12761 Signed-off-by: Alexandre Kühn (aku) Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/src/components/thread_view/thread_view_tests.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'addons/mail/static/src/components/thread_view/thread_view_tests.js') diff --git a/addons/mail/static/src/components/thread_view/thread_view_tests.js b/addons/mail/static/src/components/thread_view/thread_view_tests.js index 06832473b99..c8f41632ae3 100644 --- a/addons/mail/static/src/components/thread_view/thread_view_tests.js +++ b/addons/mail/static/src/components/thread_view/thread_view_tests.js @@ -304,7 +304,7 @@ QUnit.test('mark channel as fetched when a new message is loaded and as seen whe "Channel should have been fetched but not seen yet" ); - await afterNextRender(() => thread.composer.focus()); + await afterNextRender(() => document.querySelector('.o_ComposerTextInput_textarea').focus()); assert.verifySteps( ['rpc:channel_seen'], "Channel should have been marked as seen after threadView got the focus" @@ -355,6 +355,8 @@ QUnit.test('mark channel as fetched and seen when a new message is loaded if com const threadView = this.env.models['mail.thread_view'].create({ thread: [['link', thread]] }); await this.createThreadViewComponent(threadView, { hasComposer: true }); + + document.querySelector('.o_ComposerTextInput_textarea').focus(); const notifications = [ [['myDB', 'mail.channel', 100], { channelId: 100, -- cgit v1.2.3