diff --git a/config/environment/ui-test.php b/config/environment/ui-test.php index 4d68a6f9bae35fa4515a0aa01642275d52b5f65c..fefb038673bc88445850632bbab26734d25cc722 100644 --- a/config/environment/ui-test.php +++ b/config/environment/ui-test.php @@ -20,6 +20,12 @@ return array( return; } + if (!empty($request['module']) && $request['module'] == 'Overlay' + && !empty($request['action']) && $request['action'] == 'renderSidebar' + ) { + return; + } + $config = \Piwik\Config::getInstance(); $host = $config->tests['http_host']; $port = $config->tests['port']; diff --git a/tests/UI/specs/Overlay_spec.js b/tests/UI/specs/Overlay_spec.js index 07068e96f5a6a4806cfe3c9840c0223879995578..2a638700815f01da34c29410ce14c532a82ba53d 100644 --- a/tests/UI/specs/Overlay_spec.js +++ b/tests/UI/specs/Overlay_spec.js @@ -49,6 +49,14 @@ describe("Overlay", function () { }); page.sendMouseEvent('mousemove', pos); + page.evaluate(function () { + $('div#PIS_StatusBar', $('iframe').contents()).each(function () { + var html = $(this).html(); + html = html.replace(/localhost\:[0-9]+/g, 'localhost'); + $(this).html(html); + }); + }); + removeOptOutIframe(page); }, done); });