From f339ed6ff60334f0ddbd243dcfc311c8d60b2c52 Mon Sep 17 00:00:00 2001 From: svs-odoo Date: Wed, 12 Sep 2018 12:11:24 +0200 Subject: [PATCH] [FIX] web: avoid annoying xdg-open prompt Due to the route beginning with 'test: ', it was interpreted like a protocol and on some OS (ubuntu for example), a xdg-open prompt pops up. So, the window looses focus and some tests will fail because of that. --- addons/web/static/tests/chrome/action_manager_tests.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/web/static/tests/chrome/action_manager_tests.js b/addons/web/static/tests/chrome/action_manager_tests.js index 95e5742e95f..82bf9f5c3d3 100644 --- a/addons/web/static/tests/chrome/action_manager_tests.js +++ b/addons/web/static/tests/chrome/action_manager_tests.js @@ -1906,7 +1906,7 @@ QUnit.module('ActionManager', { start: function () { var self = this; return this._super.apply(this, arguments).then(function () { - self.iframe.src = 'test: ' + self.iframe.getAttribute('src'); + self.iframe.src = 'test ' + self.iframe.getAttribute('src'); }); } }); @@ -1921,7 +1921,7 @@ QUnit.module('ActionManager', { if (route === '/report/check_wkhtmltopdf') { return $.when('broken'); } - if (route === 'test: /report/html/some_report') { + if (route === 'test /report/html/some_report') { return $.when(); } return this._super.apply(this, arguments); @@ -1946,7 +1946,7 @@ QUnit.module('ActionManager', { '/web/action/load', '/report/check_wkhtmltopdf', 'notification', - 'test: /report/html/some_report', // report client action's iframe + 'test /report/html/some_report', // report client action's iframe ]); actionManager.destroy();