diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-02-14 14:59:03 +0100 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-02-20 13:31:22 +0100 |
| commit | 9f2ec57a7e2dc8eb8eb87905ff50ab04e8bd8ddd (patch) | |
| tree | 62600fa06e73b9ed3b1a3ae83fa10d121584ba2f /addons/mail/static/tests/helpers/test_utils.js | |
| parent | 2a09baf0ed3360ac9ac47c71590b19a71605779e (diff) | |
[FIX] mail: tests: add basic rendering test for discuss
This commit adds a first test of discuss, which checks that the
essential DOM elements are present when we create a discuss widget.
In particular, there should be a sidebar that contains links to
channel_inbox and channel_starred.
Diffstat (limited to 'addons/mail/static/tests/helpers/test_utils.js')
| -rw-r--r-- | addons/mail/static/tests/helpers/test_utils.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/mail/static/tests/helpers/test_utils.js b/addons/mail/static/tests/helpers/test_utils.js index 05ffc12e7de..095da27be58 100644 --- a/addons/mail/static/tests/helpers/test_utils.js +++ b/addons/mail/static/tests/helpers/test_utils.js @@ -74,7 +74,8 @@ function createDiscuss(params) { })); var discuss = new Discuss(parent, params); discuss.set_cp_bus(new Widget()); - discuss.appendTo($('#qunit-fixture')); + var selector = params.debug ? 'body' : '#qunit-fixture'; + discuss.appendTo($(selector)); return discuss.call('chat_manager', 'isReady').then(function () { return discuss; |
