From 7f707200ada7200f737115feea2b6187621cd863 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 14 May 2018 19:01:08 +0200 Subject: [PATCH] [FIX] mail: adapt test to altered dom. See c265e47a6335e10467b748ff4a37808ed53263ca --- addons/mail/static/tests/chat_window_tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/tests/chat_window_tests.js b/addons/mail/static/tests/chat_window_tests.js index 578d0079b43..348b329986a 100644 --- a/addons/mail/static/tests/chat_window_tests.js +++ b/addons/mail/static/tests/chat_window_tests.js @@ -127,7 +127,7 @@ QUnit.module('mail', { chatWindow.$('.o_thread_message .o_attachment .o_image_box .o_image_overlay').first().click(); // check focus is on document viewer popup and then press escape to close it assert.strictEqual(document.activeElement, $('.o_modal_fullscreen')[0], "Modal popup should have focus"); - assert.strictEqual($('.o_modal_fullscreen img.o_viewer_img[src*="/web/image/1?unique=1"]').length, 1, + assert.strictEqual($('.o_modal_fullscreen img.o_viewer_img[data-src*="/web/image/1?unique=1"]').length, 1, "Modal popup should open with first image src"); // trigger ESCAPE keyup on document viewer popup var upKeyEvent = jQuery.Event("keyup", {which: 27});