summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/thread_view/thread_view_tests.js
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2020-10-09 10:55:21 +0000
committerSébastien Theys <seb@odoo.com>2020-10-09 12:04:01 +0000
commitaa006658ea25abaa2b8d03003f1d4f9214fb6468 (patch)
tree06ba9046da4f2c4d6382c88a3075f3ec912b7ff9 /addons/mail/static/src/components/thread_view/thread_view_tests.js
parentde62d7bae2c466b74b0d9a83398c5f031233afdb (diff)
[FIX] mail: fix discuss search filters and related issues
- don't reset `stringifiedDomain` when changing thread (this led to the control panel displaying obsolete filters) - refresh non-main cache that are currently displayed when there is a known change of messages in the same thread's main cache - refresh non-main-cache on displaying them, to fetch potentially new messages - fix discuss "select all" conditions task-2171873 task-2282374 closes odoo/odoo#59631 X-original-commit: b89dc5f949b3ad062fc4197a4152066c207e1bf9 Related: odoo/enterprise#13958 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/thread_view/thread_view_tests.js')
-rw-r--r--addons/mail/static/src/components/thread_view/thread_view_tests.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/addons/mail/static/src/components/thread_view/thread_view_tests.js b/addons/mail/static/src/components/thread_view/thread_view_tests.js
index 320512a0f8c..2bf4c08a7a8 100644
--- a/addons/mail/static/src/components/thread_view/thread_view_tests.js
+++ b/addons/mail/static/src/components/thread_view/thread_view_tests.js
@@ -741,13 +741,17 @@ QUnit.test('basic rendering of canceled notification', async function (assert) {
}]],
});
await this.afterEvent({
- eventName: 'o-component-message-list-thread-cache-changed',
+ eventName: 'o-thread-view-hint-processed',
func: () => {
this.createThreadViewComponent(threadViewer.threadView);
},
message: "thread become loaded with messages",
- predicate: ({ threadViewer }) => {
- return threadViewer.thread.model === 'mail.channel' && threadViewer.thread.id === 11;
+ predicate: ({ hint, threadViewer }) => {
+ return (
+ hint.type === 'messages-loaded' &&
+ threadViewer.thread.model === 'mail.channel' &&
+ threadViewer.thread.id === 11
+ );
},
});