diff options
| author | Vincent Schippefilt <vsc@odoo.com> | 2019-03-06 14:02:19 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-03-06 20:07:17 +0100 |
| commit | 1ae64793fa489b2c1d07408cd9671bc7126f78fa (patch) | |
| tree | 23d908222f4e705b908dd23ef3823c26daf3baf0 /addons/mail/static/tests/thread_window/moderation_thread_window_tests.js | |
| parent | aa900d976f6fbb10f3940639b4d918d31a7556ca (diff) | |
[REF] mail: adapt code after jQuery update
Part of task 1896658
Co-authored-by: Aaron Bohy <aab@odoo.com>
Co-authored-by: Christophe Matthieu <chm@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Co-authored-by: David Monjoie <dmo@odoo.com>
Co-authored-by: Martin Geubelle <mge@odoo.com>
Co-authored-by: svs-odoo <svs@odoo.com>
Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
Diffstat (limited to 'addons/mail/static/tests/thread_window/moderation_thread_window_tests.js')
| -rw-r--r-- | addons/mail/static/tests/thread_window/moderation_thread_window_tests.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/mail/static/tests/thread_window/moderation_thread_window_tests.js b/addons/mail/static/tests/thread_window/moderation_thread_window_tests.js index b35405a2243..732a5fe7938 100644 --- a/addons/mail/static/tests/thread_window/moderation_thread_window_tests.js +++ b/addons/mail/static/tests/thread_window/moderation_thread_window_tests.js @@ -84,7 +84,7 @@ QUnit.module('Moderation', { }, }); -QUnit.test('moderator: moderated channel with pending moderation message', function (assert) { +QUnit.test('moderator: moderated channel with pending moderation message', async function (assert) { assert.expect(5); this.data.initMessaging = { @@ -114,9 +114,10 @@ QUnit.test('moderator: moderated channel with pending moderation message', funct data: this.data, services: this.services, }); - + await testUtils.nextTick(); // detach channel 1, so that it opens corresponding thread window. parent.call('mail_service', 'getChannel', 1).detach(); + await testUtils.nextTick(); assert.strictEqual($('.o_thread_message ').length, 1, "should display a message in the thread window"); |
