From 804507ef4925cafdf5349a3b7fa1e41dbca87ff7 Mon Sep 17 00:00:00 2001 From: Julien Mougenot Date: Wed, 11 Mar 2020 09:38:30 +0000 Subject: [REF] *: Adapt all module tests to the new control panel Use of the new control panel helpers to increase consistency and change the assertions according to the new DOM/behaviour (e.g. components removed instead of turning invisible). Part of task 2196029 Co-authored-by: Mathieu Duckerts-Antoine --- addons/mail/static/tests/document_thread_window_tests.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'addons/mail/static/tests/document_thread_window_tests.js') diff --git a/addons/mail/static/tests/document_thread_window_tests.js b/addons/mail/static/tests/document_thread_window_tests.js index d10f32c1e89..f01ab0925f2 100644 --- a/addons/mail/static/tests/document_thread_window_tests.js +++ b/addons/mail/static/tests/document_thread_window_tests.js @@ -91,7 +91,7 @@ QUnit.test('open a document thread in a thread window', async function (assert) assert.expect(6); var messagingMenu = new MessagingMenu(); - testUtils.mock.addMockEnvironment(messagingMenu, { + await testUtils.mock.addMockEnvironment(messagingMenu, { services: this.services, data: this.data, session: this.session, @@ -129,7 +129,7 @@ QUnit.test('expand a document thread window', async function (assert) { assert.expect(4); var messagingMenu = new MessagingMenu(); - testUtils.mock.addMockEnvironment(messagingMenu, { + await testUtils.mock.addMockEnvironment(messagingMenu, { services: this.services, data: this.data, session: this.session, @@ -177,7 +177,7 @@ QUnit.test('post messages in a document thread window', async function (assert) res_id: 1, }; var messagingMenu = new MessagingMenu(); - testUtils.mock.addMockEnvironment(messagingMenu, { + await testUtils.mock.addMockEnvironment(messagingMenu, { services: this.services, data: this.data, session: this.session, @@ -229,7 +229,7 @@ QUnit.test('post messages in a document thread window', async function (assert) QUnit.test('open, fold, unfold and close a document thread window', async function (assert) { assert.expect(20); var messagingMenu = new MessagingMenu(); - testUtils.mock.addMockEnvironment(messagingMenu, { + await testUtils.mock.addMockEnvironment(messagingMenu, { services: this.services, data: this.data, session: this.session, @@ -285,7 +285,7 @@ QUnit.test('do not open thread window on fetch message failure', async function assert.expect(4); var messagingMenu = new MessagingMenu(); - testUtils.addMockEnvironment(messagingMenu, { + await testUtils.mock.addMockEnvironment(messagingMenu, { services: this.services, data: this.data, session: this.session, -- cgit v1.2.3