summaryrefslogtreecommitdiff
path: root/addons/snailmail/static
diff options
context:
space:
mode:
authorXavier Dubuc <xdu@odoo.com>2020-09-04 16:08:57 +0000
committerXavier Dubuc <xdu@odoo.com>2020-09-18 07:27:33 +0000
commitca457e990c87cd0405a2b7416a6c8064a9a83e21 (patch)
tree4994ce07b35be4c88d69ce06638b3e8e45a21816 /addons/snailmail/static
parent6e83898e17d4aac93ce11b20d589b5a637eb6a8c (diff)
[FIX] mail: fix notification partners display in popover
Handle notification creation in convertData correctly. task-2324260 closes odoo/odoo#57970 X-original-commit: 7305bcf4edcbaa31b86bdc7b4ece460f30515c27 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/snailmail/static')
-rw-r--r--addons/snailmail/static/src/components/message/message_tests.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/addons/snailmail/static/src/components/message/message_tests.js b/addons/snailmail/static/src/components/message/message_tests.js
index f4dde33e651..69c16c571f5 100644
--- a/addons/snailmail/static/src/components/message/message_tests.js
+++ b/addons/snailmail/static/src/components/message/message_tests.js
@@ -74,7 +74,7 @@ QUnit.test('Sent', async function (assert) {
);
assert.containsOnce(
document.body,
- '.o_Message_notificationIconContainer',
+ '.o_Message_notificationIconClickable',
"should display the notification icon container"
);
assert.containsOnce(
@@ -89,7 +89,7 @@ QUnit.test('Sent', async function (assert) {
);
await afterNextRender(() => {
- document.querySelector('.o_Message_notificationIconContainer').click();
+ document.querySelector('.o_Message_notificationIconClickable').click();
});
assert.containsOnce(
document.body,
@@ -145,7 +145,7 @@ QUnit.test('Canceled', async function (assert) {
);
assert.containsOnce(
document.body,
- '.o_Message_notificationIconContainer',
+ '.o_Message_notificationIconClickable',
"should display the notification icon container"
);
assert.containsOnce(
@@ -160,7 +160,7 @@ QUnit.test('Canceled', async function (assert) {
);
await afterNextRender(() => {
- document.querySelector('.o_Message_notificationIconContainer').click();
+ document.querySelector('.o_Message_notificationIconClickable').click();
});
assert.containsOnce(
document.body,
@@ -216,7 +216,7 @@ QUnit.test('Pending', async function (assert) {
);
assert.containsOnce(
document.body,
- '.o_Message_notificationIconContainer',
+ '.o_Message_notificationIconClickable',
"should display the notification icon container"
);
assert.containsOnce(
@@ -231,7 +231,7 @@ QUnit.test('Pending', async function (assert) {
);
await afterNextRender(() => {
- document.querySelector('.o_Message_notificationIconContainer').click();
+ document.querySelector('.o_Message_notificationIconClickable').click();
});
assert.containsOnce(
document.body,
@@ -295,7 +295,7 @@ QUnit.test('No Price Available', async function (assert) {
);
assert.containsOnce(
document.body,
- '.o_Message_notificationIconContainer',
+ '.o_Message_notificationIconClickable',
"should display the notification icon container"
);
assert.containsOnce(
@@ -310,7 +310,7 @@ QUnit.test('No Price Available', async function (assert) {
);
await afterNextRender(() => {
- document.querySelector('.o_Message_notificationIconContainer').click();
+ document.querySelector('.o_Message_notificationIconClickable').click();
});
assert.containsOnce(
document.body,
@@ -382,7 +382,7 @@ QUnit.test('Credit Error', async function (assert) {
);
assert.containsOnce(
document.body,
- '.o_Message_notificationIconContainer',
+ '.o_Message_notificationIconClickable',
"should display the notification icon container"
);
assert.containsOnce(
@@ -397,7 +397,7 @@ QUnit.test('Credit Error', async function (assert) {
);
await afterNextRender(() => {
- document.querySelector('.o_Message_notificationIconContainer').click();
+ document.querySelector('.o_Message_notificationIconClickable').click();
});
assert.containsOnce(
document.body,
@@ -474,7 +474,7 @@ QUnit.test('Trial Error', async function (assert) {
);
assert.containsOnce(
document.body,
- '.o_Message_notificationIconContainer',
+ '.o_Message_notificationIconClickable',
"should display the notification icon container"
);
assert.containsOnce(
@@ -489,7 +489,7 @@ QUnit.test('Trial Error', async function (assert) {
);
await afterNextRender(() => {
- document.querySelector('.o_Message_notificationIconContainer').click();
+ document.querySelector('.o_Message_notificationIconClickable').click();
});
assert.containsOnce(
document.body,
@@ -574,7 +574,7 @@ QUnit.test('Format Error', async function (assert) {
);
assert.containsOnce(
document.body,
- '.o_Message_notificationIconContainer',
+ '.o_Message_notificationIconClickable',
"should display the notification icon container"
);
assert.containsOnce(
@@ -589,7 +589,7 @@ QUnit.test('Format Error', async function (assert) {
);
await afterNextRender(() => {
- document.querySelector('.o_Message_notificationIconContainer').click();
+ document.querySelector('.o_Message_notificationIconClickable').click();
});
assert.verifySteps(
['do_action'],
@@ -650,7 +650,7 @@ QUnit.test('Missing Required Fields', async function (assert) {
);
assert.containsOnce(
document.body,
- '.o_Message_notificationIconContainer',
+ '.o_Message_notificationIconClickable',
"should display the notification icon container"
);
assert.containsOnce(
@@ -665,7 +665,7 @@ QUnit.test('Missing Required Fields', async function (assert) {
);
await afterNextRender(() => {
- document.querySelector('.o_Message_notificationIconContainer').click();
+ document.querySelector('.o_Message_notificationIconClickable').click();
});
assert.verifySteps(
['do_action'],