diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-11-20 09:58:07 +0000 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-11-26 08:47:36 +0000 |
| commit | 341fb5f2406f1f7e43cdb36e6b0c52348468a6a8 (patch) | |
| tree | fe501e2f23795efc10c8238e299475b7a54daaa9 /addons/mail/static/tests/thread_window/blank_thread_window_tests.js | |
| parent | 07f6b8ef575441ca55a2452908fa8ec0ae5a6cc0 (diff) | |
[FIX] mail: no '#' prefix in DM name
Before this commit, DMs had the prefix '#' in their
displayed name (e.g. '#Demo User').
This commit fixes the issue by putting this prefix
only on non-chat DMs. In particular, mailboxes, DMs
and Livechats no longer show this prefix. This change
is also visible in the breadcrumb of the discuss app.
Task-ID 1911738
Diffstat (limited to 'addons/mail/static/tests/thread_window/blank_thread_window_tests.js')
| -rw-r--r-- | addons/mail/static/tests/thread_window/blank_thread_window_tests.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/mail/static/tests/thread_window/blank_thread_window_tests.js b/addons/mail/static/tests/thread_window/blank_thread_window_tests.js index 883494a4ec6..17654290c80 100644 --- a/addons/mail/static/tests/thread_window/blank_thread_window_tests.js +++ b/addons/mail/static/tests/thread_window/blank_thread_window_tests.js @@ -229,7 +229,7 @@ QUnit.test('open new DM chat from blank thread window', function (assert) { selectDef.then(function () { assert.strictEqual($('.o_thread_window').length, 1, "should be a single window"); - assert.strictEqual($('.o_thread_window_title').text().trim(), "#DemoUser1", + assert.strictEqual($('.o_thread_window_title').text().trim(), "DemoUser1", "should have thread window of the DM chat with 'DemoUser1'"); assert.strictEqual($('.o_composer_text_field').length, 1, "should have a composer in the DM chat window"); @@ -285,7 +285,7 @@ QUnit.test('open already detached DM chat from blank thread window', function (a assert.strictEqual($('.o_thread_window').length, 1, "should be a single window"); - assert.strictEqual($('.o_thread_window_title').text().trim(), "#DemoUser1", + assert.strictEqual($('.o_thread_window_title').text().trim(), "DemoUser1", "should have thread window of the DM chat with 'DemoUser1'"); assert.strictEqual($('.o_composer_text_field').length, 1, "should have a composer in the DM chat window"); @@ -304,7 +304,7 @@ QUnit.test('open already detached DM chat from blank thread window', function (a selectDef.then(function () { assert.strictEqual($('.o_thread_window').length, 1, "should now have a single thread window open"); - assert.strictEqual($('.o_thread_window_title').text().trim(), "#DemoUser1", + assert.strictEqual($('.o_thread_window_title').text().trim(), "DemoUser1", "the remaining thread window should be the DM chat with 'DemoUser1'"); self.unpatchAutocomplete(); |
