diff --git a/tests/UI/specs/Installation_spec.js b/tests/UI/specs/Installation_spec.js
index 6830091da63d5bad7d61329a48a006d61e490849..61190362380fd0beab721f7445e3b00049246f6b 100644
--- a/tests/UI/specs/Installation_spec.js
+++ b/tests/UI/specs/Installation_spec.js
@@ -121,6 +121,15 @@ describe("Installation", function () {
             });
             page.click('.btn');
             page.wait(3000);
+
+            // remove the port from URLs if any so UI tests won't fail if the port isn't 80
+            // TODO: code redundancy w/ UIIntegrationTest. can be fixed w/ new UI test DI environment type.
+            page.evaluate(function () {
+                $('pre').each(function () {
+                    var html = $(this).html().replace(/localhost\:[0-9]+/g, 'localhost');
+                    $(this).html(html);
+                });
+            });
         }, done);
     });