diff options
| author | ThanhDodeurOdoo <tso@odoo.com> | 2018-12-06 07:43:00 +0000 |
|---|---|---|
| committer | ThanhDodeurOdoo <tso@odoo.com> | 2018-12-06 19:09:34 +0000 |
| commit | 20cbb6dc0ba20c165f2ff1e6f1bcd418729ed186 (patch) | |
| tree | 3407919d53253e691af7a2b8acba963bde12a4fd /addons/document/static/tests | |
| parent | 7d85ab1eac6dbf33d56c6a1f8bf7e9e12bb8008e (diff) | |
Revert "[FIX] document: JS feature disabled"
This reverts commit 1dbb555a
Bring the sidebar attachment dropdown feature back.
This feature was removed due to be considered as useless,
but since some models can have attachement without a mail_thread,
this feature is still necessary.
task: #1908896
Diffstat (limited to 'addons/document/static/tests')
| -rw-r--r-- | addons/document/static/tests/document_tests.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/addons/document/static/tests/document_tests.js b/addons/document/static/tests/document_tests.js index 8aebe4894e0..33c081a28ac 100644 --- a/addons/document/static/tests/document_tests.js +++ b/addons/document/static/tests/document_tests.js @@ -1,10 +1,5 @@ odoo.define('document.tests', function (require) { "use strict"; - /** - * The feature tested here is disabled as it was replaced by another feature - * while still holding unfixed bugs and doing unnecessary rpc. - */ - return; var testUtils = require('web.test_utils'); var FormView = require('web.FormView'); @@ -78,6 +73,7 @@ odoo.define('document.tests', function (require) { }); assert.containsN(form.sidebar, '.o_sidebar_delete_attachment', 2, "there should be two attachments"); + testUtils.dom.click(form.sidebar.$('.o_dropdown_toggler_btn:contains("Attachment")')); testUtils.dom.click(form.sidebar.$('.o_sidebar_delete_attachment:eq(0)')); testUtils.dom.click($('.modal-footer .btn-primary')); assert.containsOnce(form.sidebar, '.o_sidebar_delete_attachment', "there should be only one attachment"); |
