+
+
+
+
+
+
-
-
-
-
![]()
-
+
-
-
-
-
-

-
-
-
-
-
-
-
![]()
-
-
-
-
-
-
-
-
-
- Uploading
-
-
diff --git a/addons/mail/static/tests/chatter_tests.js b/addons/mail/static/tests/chatter_tests.js
index ddfba7b8af1..56ee5076479 100644
--- a/addons/mail/static/tests/chatter_tests.js
+++ b/addons/mail/static/tests/chatter_tests.js
@@ -684,7 +684,7 @@ QUnit.test('chatter: Attachment viewer', function (assert) {
});
assert.strictEqual(form.$('.o_thread_message .o_attachment').length, 4,
"there should be three attachment on message");
- assert.strictEqual(form.$('.o_thread_message .o_attachment .caption a').first().attr('href'), '/web/content/1?download=true',
+ assert.strictEqual(form.$('.o_thread_message .o_attachment a').first().attr('href'), '/web/content/1?download=true',
"image caption should have correct download link");
// click on first image attachement
form.$('.o_thread_message .o_attachment .o_image_box .o_image_overlay').first().click();
@@ -699,7 +699,7 @@ QUnit.test('chatter: Attachment viewer', function (assert) {
// close attachment popup
$('.o_modal_fullscreen .o_viewer-header .o_close_btn').click();
// click on pdf attachement
- form.$('.o_thread_message .o_attachment .o_image_box .o_image_overlay').eq(3).click();
+ form.$('span:contains(Test PDF 1)').click();
assert.strictEqual($('.o_modal_fullscreen iframe[data-src*="/web/content/4"]').length, 1,
"Modal popup should open with the pdf preview");
// close attachment popup